public class Shape extends BasicMesh
Constructor and Description |
---|
Shape()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntity(IController newEntity)
Add a new entity to the part.
|
void |
addEntityToCategory(IController newEntity,
IMeshCategory category)
Adds a new child entity under the given category.
|
java.lang.Object |
clone() |
void |
copy(IMesh source)
Deep copies the contents of another AbstractMeshComponent into this one.
|
boolean |
equals(java.lang.Object otherObject) |
int |
hashCode() |
void |
register(IManagedUpdateableListener listener)
Register a listener to receive managed updates.
|
void |
setController(IController controller)
Setter method for the controller.
|
void |
setParent(IController parent)
Set the shape's parent shape.
|
void |
setProperty(IMeshProperty property,
java.lang.String value)
Set the given property, creating it in the map if it is not already
present.
|
getAllEntities, getController, getEntities, getEntitiesFromCategory, getEntitiesFromCategory, getEntityCategories, getProperties, getProperty, getPropertyMap, getRotation, getScale, getSize, getSkew, getSubscriptions, getTransformation, getTranslation, getType, removeEntity, setEntities, setProperties, setTransformation, setType, unregister, update
public void setParent(IController parent)
parent
- The new shape which serves as this shape's parent.public void setProperty(IMeshProperty property, java.lang.String value)
IMesh
setProperty
in interface IMesh
setProperty
in class BasicMesh
public void addEntity(IController newEntity)
IMesh
public void addEntityToCategory(IController newEntity, IMeshCategory category)
IMesh
addEntityToCategory
in interface IMesh
addEntityToCategory
in class BasicMesh
newEntity
- The new child entity to be addedcategory
- The new entity's categorypublic void setController(IController controller)
IMesh
setController
in interface IMesh
setController
in class BasicMesh
controller
- The IController which manages this componentpublic void copy(IMesh source)
IMesh
public void register(IManagedUpdateableListener listener)
IManagedUpdateable
register
in interface IManagedUpdateable
register
in class BasicMesh
listener
- The object which will receive future updates