jjdh API

jjdh.opengl.exercises.sheet02.builder
Class GLAttributes

java.lang.Object
  extended by jjdh.opengl.exercises.sheet02.builder.GLAttributes

public class GLAttributes
extends Object

Author:
Jonas Jacobi, Dennis Heidsiek deprecated This class should be removed

Field Summary
private  Map<String,Object> attributes
           
private  ArrayList<float[]> colors
           
private  float[] position
           
private  float[] rotation
           
 
Constructor Summary
GLAttributes()
           
 
Method Summary
 void applyColor(javax.media.opengl.GL gl)
           
 void applyColor(javax.media.opengl.GL gl, int number)
           
 void changePositionRelative(float deltaX, float deltaY, float deltaZ)
           
 void ensureAttributes(String... names)
           
<T> T
getAttribute(String name)
           
 Map<String,Object> getAttributes()
           
 ArrayList<float[]> getColors()
           
 float[] getPosition()
           
 float[] getRotation()
           
 boolean hasAttribute(String name)
           
 boolean hasAttributes(String... names)
           
 void rotate(javax.media.opengl.GL gl)
           
 void setAttribute(String name, Object value)
           
 void setAttributes(Map<String,Object> attributes)
           
 void setColor(float[] color)
           
 void setColors(List<float[]> colors)
           
 void setPosition(float[] pos)
           
 void setPosition(float x, float y, float z)
           
 void setRotation(float[] rotation)
           
 void setRotation(float degree, float x, float y, float z)
           
 void translatePostion(javax.media.opengl.GL gl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rotation

private float[] rotation

position

private float[] position

colors

private ArrayList<float[]> colors

attributes

private Map<String,Object> attributes
Constructor Detail

GLAttributes

public GLAttributes()
Method Detail

setPosition

public void setPosition(float x,
                        float y,
                        float z)

changePositionRelative

public void changePositionRelative(float deltaX,
                                   float deltaY,
                                   float deltaZ)

setPosition

public void setPosition(float[] pos)

getPosition

public float[] getPosition()

setRotation

public void setRotation(float degree,
                        float x,
                        float y,
                        float z)

setRotation

public void setRotation(float[] rotation)

getRotation

public float[] getRotation()

setColors

public void setColors(List<float[]> colors)

setColor

public void setColor(float[] color)

getColors

public ArrayList<float[]> getColors()

setAttribute

public void setAttribute(String name,
                         Object value)

setAttributes

public void setAttributes(Map<String,Object> attributes)

getAttribute

public <T> T getAttribute(String name)

getAttributes

public Map<String,Object> getAttributes()

hasAttribute

public boolean hasAttribute(String name)

hasAttributes

public boolean hasAttributes(String... names)

ensureAttributes

public void ensureAttributes(String... names)
                      throws IllegalArgumentException
Throws:
IllegalArgumentException

translatePostion

public void translatePostion(javax.media.opengl.GL gl)

rotate

public void rotate(javax.media.opengl.GL gl)

applyColor

public void applyColor(javax.media.opengl.GL gl,
                       int number)

applyColor

public void applyColor(javax.media.opengl.GL gl)

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.