Class Primitive3d
- java.lang.Object
- 
- jadex.extension.envsupport.observer.graphics.drawable3d.AbstractVisual3d
- 
- jadex.extension.envsupport.observer.graphics.drawable3d.Primitive3d
 
 
- 
- Direct Known Subclasses:
- Cylinder3d,- Dome3d,- Effect,- Object3d,- PointLight3d,- Sky3d,- Sound3d,- Terrain3d,- Text3d,- Torus3d
 
 public class Primitive3d extends AbstractVisual3d 
- 
- 
Field SummaryFields Modifier and Type Field Description static intABSOLUTE_POSITIONstatic intABSOLUTE_ROTATIONstatic intABSOLUTE_SIZEprotected java.lang.Objectcolor_Color or Color binding of the primitive.protected IParsedExpressiondrawconditionThe condition deciding if the drawable should be drawn.protected booleanenableDCPosEnable DrawableCombiner positionprotected booleanenableDCRotEnable DrawableCombiner positionprotected booleanenableDCSizeEnable DrawableCombiner positionprotected java.lang.StringmaterialPath_Path to the Materialstatic intPRIMITIVE_TYPE_ARROWstatic intPRIMITIVE_TYPE_BOXstatic intPRIMITIVE_TYPE_CYLINDERstatic intPRIMITIVE_TYPE_DIRECTIONALLIGHTstatic intPRIMITIVE_TYPE_DOMEstatic intPRIMITIVE_TYPE_EFFECTstatic intPRIMITIVE_TYPE_OBJECT3Dstatic intPRIMITIVE_TYPE_POINTLIGHTstatic intPRIMITIVE_TYPE_QUADstatic intPRIMITIVE_TYPE_SKYstatic intPRIMITIVE_TYPE_SOUNDstatic intPRIMITIVE_TYPE_SPHEREstatic intPRIMITIVE_TYPE_TERRAINstatic intPRIMITIVE_TYPE_TEXT3Dstatic intPRIMITIVE_TYPE_TORUSprotected java.lang.Object[]renderinfosCached render informationstatic java.lang.StringSHADOW_CASTstatic java.lang.StringSHADOW_OFFstatic java.lang.StringSHADOW_RECEIVEprotected java.lang.StringshadowtypePrimitive shadowprotected java.lang.StringtexturePath_Path to the Textureprotected inttypePrimitive type
 - 
Constructor SummaryConstructors Constructor Description Primitive3d()Primitive3d(int type)Primitive3d(int type, java.lang.Object position, IParsedExpression drawcondition)Primitive3d(int type, java.lang.Object position, java.lang.Object c, IParsedExpression drawcondition)Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, int absFlags, java.lang.Object c, java.lang.String materialPath, java.lang.String texturePath, IParsedExpression drawcondition, java.lang.String shadowtype, java.util.ArrayList<SpatialControl> controler)Initializes the drawable.Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, IParsedExpression drawcondition)Initializes the drawable.Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, java.lang.Object c)Initializes the drawable.Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, java.lang.Object c, IParsedExpression drawcondition, java.lang.String shadowtype)Initializes the drawable.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableAbsolutePosition(boolean enable)Enables using absolute positioning.voidenableAbsoluteRotation(boolean enable)Enables using absolute rotation.voidenableAbsoluteSize(boolean enable)Enables using absolute scaling.java.lang.ObjectgetColor()Gets the color or color binding of the drawablejava.util.ArrayList<SpatialControl>getControler()IParsedExpressiongetDrawCondition()Gets the draw condition.java.lang.StringgetMaterialPath()java.lang.StringgetShadowtype()java.lang.StringgetTexturePath()Returns the texture path.intgetType()Get the primitive type.booleanisRelativePosition()Tests if primitive is using relative positioning.booleanisRelativeRotation()Tests if primitive is using relative rotation.booleanisRelativeSize()Tests if primitive is using relative scaling.voidsetColor(java.lang.Object c)Sets a new color or binding for the drawablevoidsetControler(java.util.ArrayList<SpatialControl> controler)voidsetDrawCondition(IParsedExpression drawcondition)Sets the draw condition.voidsetMaterialPath(java.lang.String materialPath_)voidsetShadowtype(java.lang.String shadowtype)voidsetTexturePath(java.lang.String texturepath)Set the texture path.voidsetType(int type)Set the primitive type.- 
Methods inherited from class jadex.extension.envsupport.observer.graphics.drawable3d.AbstractVisual3dbindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
 
- 
 
- 
- 
- 
Field Detail- 
ABSOLUTE_POSITIONpublic static final int ABSOLUTE_POSITION - See Also:
- Constant Field Values
 
 - 
ABSOLUTE_SIZEpublic static final int ABSOLUTE_SIZE - See Also:
- Constant Field Values
 
 - 
ABSOLUTE_ROTATIONpublic static final int ABSOLUTE_ROTATION - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_SPHEREpublic static final int PRIMITIVE_TYPE_SPHERE - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_BOXpublic static final int PRIMITIVE_TYPE_BOX - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_CYLINDERpublic static final int PRIMITIVE_TYPE_CYLINDER - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_ARROWpublic static final int PRIMITIVE_TYPE_ARROW - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_DOMEpublic static final int PRIMITIVE_TYPE_DOME - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_TORUSpublic static final int PRIMITIVE_TYPE_TORUS - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_OBJECT3Dpublic static final int PRIMITIVE_TYPE_OBJECT3D - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_TEXT3Dpublic static final int PRIMITIVE_TYPE_TEXT3D - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_SKYpublic static final int PRIMITIVE_TYPE_SKY - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_TERRAINpublic static final int PRIMITIVE_TYPE_TERRAIN - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_SOUNDpublic static final int PRIMITIVE_TYPE_SOUND - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_POINTLIGHTpublic static final int PRIMITIVE_TYPE_POINTLIGHT - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_DIRECTIONALLIGHTpublic static final int PRIMITIVE_TYPE_DIRECTIONALLIGHT - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_EFFECTpublic static final int PRIMITIVE_TYPE_EFFECT - See Also:
- Constant Field Values
 
 - 
PRIMITIVE_TYPE_QUADpublic static final int PRIMITIVE_TYPE_QUAD - See Also:
- Constant Field Values
 
 - 
SHADOW_OFFpublic static final java.lang.String SHADOW_OFF - See Also:
- Constant Field Values
 
 - 
SHADOW_CASTpublic static final java.lang.String SHADOW_CAST - See Also:
- Constant Field Values
 
 - 
SHADOW_RECEIVEpublic static final java.lang.String SHADOW_RECEIVE - See Also:
- Constant Field Values
 
 - 
enableDCPosprotected boolean enableDCPos Enable DrawableCombiner position
 - 
enableDCSizeprotected boolean enableDCSize Enable DrawableCombiner position
 - 
enableDCRotprotected boolean enableDCRot Enable DrawableCombiner position
 - 
color_protected java.lang.Object color_ Color or Color binding of the primitive.
 - 
texturePath_protected java.lang.String texturePath_ Path to the Texture
 - 
materialPath_protected java.lang.String materialPath_ Path to the Material
 - 
drawconditionprotected IParsedExpression drawcondition The condition deciding if the drawable should be drawn.
 - 
renderinfosprotected java.lang.Object[] renderinfos Cached render information
 - 
typeprotected int type Primitive type
 - 
shadowtypeprotected java.lang.String shadowtype Primitive shadow
 
- 
 - 
Constructor Detail- 
Primitive3dpublic Primitive3d() 
 - 
Primitive3dpublic Primitive3d(int type) 
 - 
Primitive3dpublic Primitive3d(int type, java.lang.Object position, IParsedExpression drawcondition)
 - 
Primitive3dpublic Primitive3d(int type, java.lang.Object position, java.lang.Object c, IParsedExpression drawcondition)
 - 
Primitive3dpublic Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, IParsedExpression drawcondition)Initializes the drawable.- Parameters:
- position- position or position-binding
- xrotation- xrotation or rotation-binding
- yrotation- yrotation or rotation-binding
- zrotation- zrotation or rotation-binding
- size- size or size-binding
- c- the drawable's color or color binding
 
 - 
Primitive3dpublic Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, java.lang.Object c)Initializes the drawable.- Parameters:
- position- position or position-binding
- xrotation- xrotation or rotation-binding
- yrotation- yrotation or rotation-binding
- zrotation- zrotation or rotation-binding
- size- size or size-binding
- c- the drawable's color or color binding
 
 - 
Primitive3dpublic Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, java.lang.Object c, IParsedExpression drawcondition, java.lang.String shadowtype)Initializes the drawable.- Parameters:
- position- position or position-binding
- xrotation- xrotation or rotation-binding
- yrotation- yrotation or rotation-binding
- zrotation- zrotation or rotation-binding
- size- size or size-binding
- c- the drawable's color or color binding
 
 - 
Primitive3dpublic Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, int absFlags, java.lang.Object c, java.lang.String materialPath, java.lang.String texturePath, IParsedExpression drawcondition, java.lang.String shadowtype, java.util.ArrayList<SpatialControl> controler)Initializes the drawable.- Parameters:
- position- position or position-binding
- xrotation- xrotation or rotation-binding
- yrotation- yrotation or rotation-binding
- zrotation- zrotation or rotation-binding
- size- size or size-binding
- absFlags- flags for setting position, size and rotation as absolutes
- c- the drawable's color or color binding
 
 
- 
 - 
Method Detail- 
getTypepublic int getType() Get the primitive type.- Returns:
- The type.
 
 - 
setTypepublic void setType(int type) Set the primitive type.- Parameters:
- type- The type to set.
 
 - 
enableAbsolutePositionpublic void enableAbsolutePosition(boolean enable) Enables using absolute positioning.- Parameters:
- enable- true, to use the drawable's value as an absolute.
 
 - 
enableAbsoluteSizepublic void enableAbsoluteSize(boolean enable) Enables using absolute scaling.- Parameters:
- enable- true, to use the drawable's value as an absolute.
 
 - 
enableAbsoluteRotationpublic void enableAbsoluteRotation(boolean enable) Enables using absolute rotation.- Parameters:
- enable- true, to use the drawable's value as an absolute.
 
 - 
isRelativePositionpublic boolean isRelativePosition() Tests if primitive is using relative positioning.- Returns:
- true, if the drawable's value is an absolute.
 
 - 
isRelativeSizepublic boolean isRelativeSize() Tests if primitive is using relative scaling.- Returns:
- true, if the drawable's value is an absolute.
 
 - 
isRelativeRotationpublic boolean isRelativeRotation() Tests if primitive is using relative rotation.- Returns:
- true, if the drawable's value is an absolute.
 
 - 
setDrawConditionpublic void setDrawCondition(IParsedExpression drawcondition) Sets the draw condition.- Parameters:
- drawcondition- the draw condition
 
 - 
getDrawConditionpublic IParsedExpression getDrawCondition() Gets the draw condition.- Returns:
- the draw condition
 
 - 
getColorpublic java.lang.Object getColor() Gets the color or color binding of the drawable- Returns:
- color or color binding of the drawable
 
 - 
setColorpublic void setColor(java.lang.Object c) Sets a new color or binding for the drawable- Parameters:
- c- new color or binding
 
 - 
setTexturePathpublic void setTexturePath(java.lang.String texturepath) Set the texture path.
 - 
getTexturePathpublic java.lang.String getTexturePath() Returns the texture path.- Returns:
- The texture path.
 
 - 
getShadowtypepublic java.lang.String getShadowtype() - Returns:
- the shadowtype
 
 - 
setShadowtypepublic void setShadowtype(java.lang.String shadowtype) - Parameters:
- shadowtype- the shadowtype to set
 
 - 
getMaterialPathpublic java.lang.String getMaterialPath() 
 - 
setMaterialPathpublic void setMaterialPath(java.lang.String materialPath_) 
 - 
getControlerpublic java.util.ArrayList<SpatialControl> getControler() - Returns:
- the controler
 
 - 
setControlerpublic void setControler(java.util.ArrayList<SpatialControl> controler) - Parameters:
- controler- the controler to set
 
 
- 
 
-