|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.shape.AbstractShape
public abstract class AbstractShape
| Constructor Summary | |
|---|---|
AbstractShape()
|
|
| Method Summary | |
|---|---|
void |
add(Drawable theDrawable)
adds a drawable to the container specified by 'setChildContainer(Vector theChildrenContainer)' |
float[] |
getSortData()
returns the position of the shape as an array. |
float |
getSortValue()
returns the last sort value. |
int |
getTransformMode()
gets the transform mode. |
boolean |
isActive()
returns whether the drawable is active. |
boolean |
isSortable()
returns whether the this shape is transparent. |
Material |
material()
returns a reference to the material. |
Vector3f |
position()
returns the position as stored in the 'translation' of the matrix returned by 'transform()'. |
void |
position(float x,
float y)
|
void |
position(float x,
float y,
float z)
|
void |
position(Vector3f thePosition)
|
Vector3f |
rotation()
returns the reference to the rotation. note that this is not the same as the rotation stored in the transform matrix. |
void |
rotation(float x,
float y,
float z)
|
Vector3f |
scale()
returns the reference to the scale. |
void |
scale(float x,
float y)
|
void |
scale(float x,
float y,
float z)
|
void |
setActive(boolean theVisibility)
sets the active state of the shape. |
void |
setChildContainer(java.util.Vector<Drawable> theChildrenContainer)
sets a reference to a container of children used by 'add()' and 'remove()'. |
void |
setMaterialRef(Material theMaterial)
sets the referenced material for this shape. |
void |
setPositionRef(Vector3f thePosition)
sets the referenced position that is stored in the 'translation' of the matrix returned by 'transform()'. |
void |
setRotationRef(Vector3f theRotation)
sets the referenced rotation for this shape. |
void |
setScaleRef(Vector3f theScale)
sets the referenced scale for this shape. |
void |
setSortValue(float theSortValue)
caches the current sort value. |
void |
setTransformMode(int theTransformMode)
sets the transform mode. |
void |
setTransformRef(TransformMatrix4f theTransform)
sets the referenced transform matrix for this shape. |
TransformMatrix4f |
transform()
returns the reference to the transform matrix used by this shape. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gestalt.render.Drawable |
|---|
draw |
| Constructor Detail |
|---|
public AbstractShape()
| Method Detail |
|---|
public Material material()
public void setMaterialRef(Material theMaterial)
theMaterial - Materialpublic TransformMatrix4f transform()
public void setTransformRef(TransformMatrix4f theTransform)
theTransform - TransformMatrix4fpublic Vector3f position()
public void position(float x,
float y,
float z)
public void position(float x,
float y)
public void position(Vector3f thePosition)
public void setPositionRef(Vector3f thePosition)
thePosition - Vector3fpublic Vector3f scale()
public void scale(float x,
float y,
float z)
public void scale(float x,
float y)
public void setScaleRef(Vector3f theScale)
theScale - Vector3fpublic Vector3f rotation()
public void rotation(float x,
float y,
float z)
public void setRotationRef(Vector3f theRotation)
theRotation - Vector3fpublic void setTransformMode(int theTransformMode)
theTransformMode - intpublic int getTransformMode()
public void setActive(boolean theVisibility)
theVisibility - booleanpublic void setChildContainer(java.util.Vector<Drawable> theChildrenContainer)
theChildrenContainer - Vectorpublic float getSortValue()
Drawable
getSortValue in interface Drawablepublic float[] getSortData()
getSortData in interface Drawablepublic void setSortValue(float theSortValue)
Drawable
setSortValue in interface DrawabletheSortValue - floatpublic boolean isSortable()
isSortable in interface Drawablepublic boolean isActive()
Drawable
isActive in interface Drawablepublic void add(Drawable theDrawable)
add in interface DrawabletheDrawable - Drawable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||