public class Text3d extends Primitive3d
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_text
Model path.
|
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, color_, drawcondition, enableDCPos, enableDCRot, enableDCSize, materialPath_, PRIMITIVE_TYPE_ARROW, PRIMITIVE_TYPE_BOX, PRIMITIVE_TYPE_CYLINDER, PRIMITIVE_TYPE_DIRECTIONALLIGHT, PRIMITIVE_TYPE_DOME, PRIMITIVE_TYPE_EFFECT, PRIMITIVE_TYPE_OBJECT3D, PRIMITIVE_TYPE_POINTLIGHT, PRIMITIVE_TYPE_QUAD, PRIMITIVE_TYPE_SKY, PRIMITIVE_TYPE_SOUND, PRIMITIVE_TYPE_SPHERE, PRIMITIVE_TYPE_TERRAIN, PRIMITIVE_TYPE_TEXT3D, PRIMITIVE_TYPE_TORUS, renderinfos, SHADOW_CAST, SHADOW_OFF, SHADOW_RECEIVE, shadowtype, texturePath_, type
Constructor and Description |
---|
Text3d(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,
java.lang.String text,
IParsedExpression drawcondition,
java.lang.String shadowtype,
java.util.ArrayList<SpatialControl> controler)
Creates a new Polygon drawable.
|
Text3d(java.lang.String text)
Creates default Text3d.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getReplacedText(DrawableCombiner3d dc,
java.lang.Object obj,
java.lang.String text,
IViewport3d vp) |
java.lang.String |
getText()
Returns the model path.
|
void |
setType(int type)
Set the primitive type (Disabled).
|
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, getColor, getControler, getDrawCondition, getMaterialPath, getShadowtype, getTexturePath, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setControler, setDrawCondition, setMaterialPath, setShadowtype, setTexturePath
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
public Text3d(java.lang.String text)
modelPath
- resource path of the modelpublic Text3d(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, java.lang.String text, 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
- modulation color or bindingmodelPath
- resource path of the texturepublic void setType(int type)
setType
in class Primitive3d
type
- The type to set.public java.lang.String getText()
public static final java.lang.String getReplacedText(DrawableCombiner3d dc, java.lang.Object obj, java.lang.String text, IViewport3d vp)