public class Object3d extends Primitive3d
ABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, 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, SHADOW_CAST, SHADOW_OFF, SHADOW_RECEIVE
Constructor and Description |
---|
Object3d(Object position,
Object rotation,
Object size,
int absFlags,
Object c,
String modelPath,
String materialpath,
String texturePath,
boolean hasLightMaterials,
boolean rigDebug,
IParsedExpression drawcondition,
String shadowtype,
List<Animation> animations,
List<Materialfile> materials,
ArrayList<SpatialControl> controler)
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() |
ArrayList<Materialfile> |
getMaterials() |
String |
getModelPath() |
boolean |
isHasLightMaterials() |
boolean |
isRigDebug() |
void |
setAnimations(ArrayList<Animation> _animations) |
void |
setChannels(TreeSet<String> channels) |
void |
setHasLightMaterials(boolean hasLightMaterials) |
void |
setMaterials(ArrayList<Materialfile> materials) |
void |
setModelPath(String modelPath) |
void |
setRigDebug(boolean rigDebug) |
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 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 materialpath, String texturePath, boolean hasLightMaterials, boolean rigDebug, IParsedExpression drawcondition, String shadowtype, List<Animation> animations, List<Materialfile> materials, ArrayList<SpatialControl> controler)
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 setpublic ArrayList<Materialfile> getMaterials()
public void setMaterials(ArrayList<Materialfile> materials)
Copyright © 2013. All Rights Reserved.