public class Object3d 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 |
---|
Object3d(Object position,
Object rotation,
Object size,
int absFlags,
Object c,
String modelPath,
String texturePath,
boolean hasLightMaterials,
boolean rigDebug,
IParsedExpression drawcondition,
String shadowtype,
List<Animation> animations)
Creates a new Polygon drawable.
|
Object3d(String modelPath,
boolean hasLightMaterials)
Creates default Polygon.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Animation> |
getAnimations() |
TreeSet<String> |
getChannels() |
String |
getModelPath() |
boolean |
isHasLightMaterials() |
boolean |
isRigDebug() |
void |
setAnimations(ArrayList<Animation> _animations) |
void |
setChannels(TreeSet<String> channels) |
void |
setHasLightMaterials(boolean hasLightMaterials) |
void |
setModelPath(String modelPath) |
void |
setRigDebug(boolean rigDebug) |
void |
setType(int type)
Set the primitive type (Disabled).
|
enableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, getColor, getDrawCondition, getShadowtype, getTexturePath, getType, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setShadowtype, setTexturePath
bindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, isCreated, setCreated, setPosition, setRotation, setSize
public Object3d(String modelPath, boolean hasLightMaterials)
modelPath
- resource path of the modelpublic Object3d(Object position, Object rotation, Object size, int absFlags, Object c, String modelPath, String texturePath, boolean hasLightMaterials, boolean rigDebug, IParsedExpression drawcondition, String shadowtype, List<Animation> animations)
position
- rotation
- size
- absFlags
- c
- modelPath
- texturePath
- drawcondition
- public void setType(int type)
setType
in class Primitive3d
type
- The type to set.public String getModelPath()
public void setModelPath(String modelPath)
_modelPath
- the _modelPath to setpublic boolean isHasLightMaterials()
public void setHasLightMaterials(boolean hasLightMaterials)
_hasLightMaterials
- the _hasLightMaterials to setpublic void setAnimations(ArrayList<Animation> _animations)
_animations
- the _animations to setpublic void setChannels(TreeSet<String> channels)
_channels
- the _channels to setpublic boolean isRigDebug()
public void setRigDebug(boolean rigDebug)
_rigDebug
- the _rigDebug to setCopyright © 2012. All Rights Reserved.