public abstract class Entity extends SceneObject
name, properties
Modifier | Constructor and Description |
---|---|
protected |
Entity()
Initializes a new instance of the
Entity class. |
|
Entity(java.lang.String name)
Initializes a new instance of the
Entity class. |
Modifier and Type | Method and Description |
---|---|
protected RenderableResource |
createRenderableResource(Renderer renderer)
Sub-class can override this to provide hardware-accelerated rendering ability.
|
BoundingBox |
getBoundingBox()
Gets the bounding box of current entity in its object space coordinate system.
|
boolean |
getExcluded()
Gets wheather to exclude this entity during exporting.
|
Node |
getParentNode()
Gets the first parent node, if set the first parent node, this entity will be detached from other parent nodes.
|
java.util.ArrayList<Node> |
getParentNodes()
Gets all parent nodes, an entity can be attached to multiple parent nodes for geometry instancing
|
void |
setExcluded(boolean value)
Sets wheather to exclude this entity during exporting.
|
void |
setParentNode(Node value)
Sets the first parent node, if set the first parent node, this entity will be detached from other parent nodes.
|
getScene
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public Entity(java.lang.String name)
Entity
class.name
- Name.protected Entity()
Entity
class.public java.util.ArrayList<Node> getParentNodes()
public boolean getExcluded()
public void setExcluded(boolean value)
value
- New valuepublic Node getParentNode()
public void setParentNode(Node value)
value
- New valueprotected RenderableResource createRenderableResource(Renderer renderer)
RenderableResource
per each node
The RenderableResource
will send render request to render queue when it's chosen by the renderer.renderer
- public BoundingBox getBoundingBox()