public class Text3d extends Primitive3d
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, PRIMITIVE_TYPE_ARROW, PRIMITIVE_TYPE_BOX, PRIMITIVE_TYPE_CYLINDER, PRIMITIVE_TYPE_DOME, PRIMITIVE_TYPE_OBJECT3D, PRIMITIVE_TYPE_SKY, PRIMITIVE_TYPE_SOUND, PRIMITIVE_TYPE_SPHERE, PRIMITIVE_TYPE_TERRAIN, PRIMITIVE_TYPE_TEXT3D, PRIMITIVE_TYPE_TORUS, SHADOW_CAST, SHADOW_OFF, SHADOW_RECEIVE| Constructor and Description |
|---|
Text3d(Object position,
Object rotation,
Object size,
int absFlags,
Object c,
String texturePath,
String text,
IParsedExpression drawcondition,
String shadowtype)
Creates a new Polygon drawable.
|
Text3d(String text)
Creates default Text3d.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getReplacedText(DrawableCombiner3d dc,
Object obj,
String text,
IViewport3d vp) |
String |
getText()
Returns the model path.
|
void |
setType(int type)
Set the primitive type (Disabled).
|
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, getColor, getDrawCondition, getShadowtype, getTexturePath, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setShadowtype, setTexturePathbindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, isCreated, setCreated, setPosition, setRotation, setSizepublic Text3d(String text)
modelPath - resource path of the modelpublic Text3d(Object position, Object rotation, Object size, int absFlags, Object c, String texturePath, String text, IParsedExpression drawcondition, String shadowtype)
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 Primitive3dtype - The type to set.public String getText()
public static final String getReplacedText(DrawableCombiner3d dc, Object obj, String text, IViewport3d vp)
Copyright © 2012. All Rights Reserved.