public class Primitive3d extends AbstractVisual3d
Modifier and Type | Field and Description |
---|---|
static int |
ABSOLUTE_POSITION |
static int |
ABSOLUTE_ROTATION |
static int |
ABSOLUTE_SIZE |
protected java.lang.Object |
color_
Color or Color binding of the primitive.
|
protected IParsedExpression |
drawcondition
The condition deciding if the drawable should be drawn.
|
protected boolean |
enableDCPos
Enable DrawableCombiner position
|
protected boolean |
enableDCRot
Enable DrawableCombiner position
|
protected boolean |
enableDCSize
Enable DrawableCombiner position
|
protected java.lang.String |
materialPath_
Path to the Material
|
static int |
PRIMITIVE_TYPE_ARROW |
static int |
PRIMITIVE_TYPE_BOX |
static int |
PRIMITIVE_TYPE_CYLINDER |
static int |
PRIMITIVE_TYPE_DIRECTIONALLIGHT |
static int |
PRIMITIVE_TYPE_DOME |
static int |
PRIMITIVE_TYPE_EFFECT |
static int |
PRIMITIVE_TYPE_OBJECT3D |
static int |
PRIMITIVE_TYPE_POINTLIGHT |
static int |
PRIMITIVE_TYPE_QUAD |
static int |
PRIMITIVE_TYPE_SKY |
static int |
PRIMITIVE_TYPE_SOUND |
static int |
PRIMITIVE_TYPE_SPHERE |
static int |
PRIMITIVE_TYPE_TERRAIN |
static int |
PRIMITIVE_TYPE_TEXT3D |
static int |
PRIMITIVE_TYPE_TORUS |
protected java.lang.Object[] |
renderinfos
Cached render information
|
static java.lang.String |
SHADOW_CAST |
static java.lang.String |
SHADOW_OFF |
static java.lang.String |
SHADOW_RECEIVE |
protected java.lang.String |
shadowtype
Primitive shadow
|
protected java.lang.String |
texturePath_
Path to the Texture
|
protected int |
type
Primitive type
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
enableAbsolutePosition(boolean enable)
Enables using absolute positioning.
|
void |
enableAbsoluteRotation(boolean enable)
Enables using absolute rotation.
|
void |
enableAbsoluteSize(boolean enable)
Enables using absolute scaling.
|
java.lang.Object |
getColor()
Gets the color or color binding of the drawable
|
java.util.ArrayList<SpatialControl> |
getControler() |
IParsedExpression |
getDrawCondition()
Gets the draw condition.
|
java.lang.String |
getMaterialPath() |
java.lang.String |
getShadowtype() |
java.lang.String |
getTexturePath()
Returns the texture path.
|
int |
getType()
Get the primitive type.
|
boolean |
isRelativePosition()
Tests if primitive is using relative positioning.
|
boolean |
isRelativeRotation()
Tests if primitive is using relative rotation.
|
boolean |
isRelativeSize()
Tests if primitive is using relative scaling.
|
void |
setColor(java.lang.Object c)
Sets a new color or binding for the drawable
|
void |
setControler(java.util.ArrayList<SpatialControl> controler) |
void |
setDrawCondition(IParsedExpression drawcondition)
Sets the draw condition.
|
void |
setMaterialPath(java.lang.String materialPath_) |
void |
setShadowtype(java.lang.String shadowtype) |
void |
setTexturePath(java.lang.String texturepath)
Set the texture path.
|
void |
setType(int type)
Set the primitive type.
|
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
public static final int ABSOLUTE_POSITION
public static final int ABSOLUTE_SIZE
public static final int ABSOLUTE_ROTATION
public static final int PRIMITIVE_TYPE_SPHERE
public static final int PRIMITIVE_TYPE_BOX
public static final int PRIMITIVE_TYPE_CYLINDER
public static final int PRIMITIVE_TYPE_ARROW
public static final int PRIMITIVE_TYPE_DOME
public static final int PRIMITIVE_TYPE_TORUS
public static final int PRIMITIVE_TYPE_OBJECT3D
public static final int PRIMITIVE_TYPE_TEXT3D
public static final int PRIMITIVE_TYPE_SKY
public static final int PRIMITIVE_TYPE_TERRAIN
public static final int PRIMITIVE_TYPE_SOUND
public static final int PRIMITIVE_TYPE_POINTLIGHT
public static final int PRIMITIVE_TYPE_DIRECTIONALLIGHT
public static final int PRIMITIVE_TYPE_EFFECT
public static final int PRIMITIVE_TYPE_QUAD
public static final java.lang.String SHADOW_OFF
public static final java.lang.String SHADOW_CAST
public static final java.lang.String SHADOW_RECEIVE
protected boolean enableDCPos
protected boolean enableDCSize
protected boolean enableDCRot
protected java.lang.Object color_
protected java.lang.String texturePath_
protected java.lang.String materialPath_
protected IParsedExpression drawcondition
protected java.lang.Object[] renderinfos
protected int type
protected java.lang.String shadowtype
public Primitive3d()
public Primitive3d(int type)
public Primitive3d(int type, java.lang.Object position, IParsedExpression drawcondition)
public Primitive3d(int type, java.lang.Object position, java.lang.Object c, IParsedExpression drawcondition)
public Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, IParsedExpression drawcondition)
position
- position or position-bindingxrotation
- xrotation or rotation-bindingyrotation
- yrotation or rotation-bindingzrotation
- zrotation or rotation-bindingsize
- size or size-bindingc
- the drawable's color or color bindingpublic Primitive3d(int type, java.lang.Object position, java.lang.Object rotation, java.lang.Object size, java.lang.Object c)
position
- position or position-bindingxrotation
- xrotation or rotation-bindingyrotation
- yrotation or rotation-bindingzrotation
- zrotation or rotation-bindingsize
- size or size-bindingc
- the drawable's color or color bindingpublic 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)
position
- position or position-bindingxrotation
- xrotation or rotation-bindingyrotation
- yrotation or rotation-bindingzrotation
- zrotation or rotation-bindingsize
- size or size-bindingc
- the drawable's color or color bindingpublic 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)
position
- position or position-bindingxrotation
- xrotation or rotation-bindingyrotation
- yrotation or rotation-bindingzrotation
- zrotation or rotation-bindingsize
- size or size-bindingabsFlags
- flags for setting position, size and rotation as absolutesc
- the drawable's color or color bindingpublic int getType()
public void setType(int type)
type
- The type to set.public void enableAbsolutePosition(boolean enable)
enable
- true, to use the drawable's value as an absolute.public void enableAbsoluteSize(boolean enable)
enable
- true, to use the drawable's value as an absolute.public void enableAbsoluteRotation(boolean enable)
enable
- true, to use the drawable's value as an absolute.public boolean isRelativePosition()
public boolean isRelativeSize()
public boolean isRelativeRotation()
public void setDrawCondition(IParsedExpression drawcondition)
drawcondition
- the draw conditionpublic IParsedExpression getDrawCondition()
public java.lang.Object getColor()
public void setColor(java.lang.Object c)
c
- new color or bindingpublic void setTexturePath(java.lang.String texturepath)
public java.lang.String getTexturePath()
public java.lang.String getShadowtype()
public void setShadowtype(java.lang.String shadowtype)
shadowtype
- the shadowtype to setpublic java.lang.String getMaterialPath()
public void setMaterialPath(java.lang.String materialPath_)
public java.util.ArrayList<SpatialControl> getControler()
public void setControler(java.util.ArrayList<SpatialControl> controler)
controler
- the controler to set