public interface IController extends IManagedUpdateable, IManagedUpdateableListener
Modifier and Type | Method and Description |
---|---|
void |
addEntity(IController newEntity)
Adds an entity to the model.
|
void |
addEntityToCategory(IController newEntity,
IMeshCategory category)
Add an entity to the part under the given category.
|
void |
copy(IController otherObject)
Deep copy the given object's data into this one.
|
void |
dispose()
Dispose the controller and its resources.
|
java.util.concurrent.atomic.AtomicBoolean |
getDisposed()
Checks whether or not this part and its resources have been disposed.
|
java.util.ArrayList<IController> |
getEntities()
Gets a list of all the part's children entities.
|
java.util.ArrayList<IController> |
getEntitiesFromCategory(IMeshCategory category)
Returns all the part's child entities of the given category
|
<T extends IController> |
getEntitiesFromCategory(IMeshCategory category,
java.lang.Class<T> returnType)
Return all of the part's children entities of a given category cast to a
list of the specified return type.
|
IMesh |
getModel()
Getter method for the part's model
|
java.lang.String |
getProperty(IMeshProperty property)
Get the specified property's value.
|
Representation |
getRepresentation()
Get a wrapper containing the part's representation as an object specific
to the application rendering it.
|
double[] |
getRotation()
Get the part's rotation in the x, y, and z directions
|
double[] |
getScale()
Get the part's scale in the x, y, and z directions.
|
double |
getSize()
Get the part's size.
|
double[] |
getSkew()
Get the part's skew in the x, y, and z directions
|
Transformation |
getTransformation()
Get the part's transformation.
|
double[] |
getTranslation()
Get the part's translation in the x, y, and z directions
|
UpdateableSubscriptionManager |
getUpdateManager()
Getter method for the update manager.
|
IView |
getView()
Getter method for the part's view.
|
boolean |
isRoot()
Checks whether the part is the root node of the tree.
|
boolean |
isSelected()
Checks whether the part is selected.
|
void |
refresh()
Alerts the view to refresh itself based on changes in the model
|
void |
removeEntity(IController entity)
Remove an entity from the part's child entities.
|
void |
setDisposed(boolean newDisposed)
Set the the controller as being disposed.
|
void |
setEntities(EntityMapEntry[] newEntities)
Set the mesh's map of entities to be equal to the provided map.
|
void |
setProperties(java.util.Map<IMeshProperty,java.lang.String> properties)
Set the mesh's properties according to the given map.
|
void |
setProperty(IMeshProperty property,
java.lang.String value)
Set the given property to a new value
|
void |
setRoot(boolean root)
Set the part as being the root node of the tree.
|
void |
setRotation(double x,
double y,
double z)
Set the part's rotation in the x, y, and x directions.
|
void |
setScale(double x,
double y,
double z)
Set the part's scale in the x, y, and x directions.
|
void |
setSelected(boolean selected)
Set the part as being selected.
|
void |
setSize(double newSize)
Set the part's size
|
void |
setSkew(double x,
double y,
double z)
Set the part's skew in the x, y, and x directions.
|
void |
setTransformation(Transformation newTransformation)
Set the part's transformation
|
void |
setTranslation(double x,
double y,
double z)
Set the part's translation in the x, y, and x directions.
|
void |
setView(BasicView newView)
Setter method for the model's view.
|
register, unregister
getSubscriptions, update
void refresh()
java.util.concurrent.atomic.AtomicBoolean getDisposed()
void setDisposed(boolean newDisposed)
IMesh getModel()
IView getView()
void setView(BasicView newView)
void addEntity(IController newEntity)
void dispose()
java.util.ArrayList<IController> getEntities()
java.util.ArrayList<IController> getEntitiesFromCategory(IMeshCategory category)
<T extends IController> java.util.ArrayList<T> getEntitiesFromCategory(IMeshCategory category, java.lang.Class<T> returnType)
category
- The category of entities to returnreturnType
- The class to which members of the category belong.java.lang.String getProperty(IMeshProperty property)
Representation getRepresentation()
double[] getRotation()
double[] getScale()
double getSize()
double[] getSkew()
Transformation getTransformation()
double[] getTranslation()
void removeEntity(IController entity)
void setProperty(IMeshProperty property, java.lang.String value)
void setRotation(double x, double y, double z)
void setScale(double x, double y, double z)
void setSize(double newSize)
void setSkew(double x, double y, double z)
void setTransformation(Transformation newTransformation)
void setTranslation(double x, double y, double z)
void addEntityToCategory(IController newEntity, IMeshCategory category)
newEntity
- The child entity to be added to this partcategory
- The category under which to add the new child entityboolean isRoot()
boolean isSelected()
void setEntities(EntityMapEntry[] newEntities)
newEntities
- void setProperties(java.util.Map<IMeshProperty,java.lang.String> properties)
properties
- The new map of properties for the mesh.void setRoot(boolean root)
root
- Whether the part is the root node or notvoid setSelected(boolean selected)
selected
- Whether the part is selected or not.UpdateableSubscriptionManager getUpdateManager()
void copy(IController otherObject)
otherObject
- The object to copy into this one.