public interface IModelPart
Interface for accepting and working with ICE modeling parts.
Modifier and Type | Method and Description |
---|---|
void |
addGeometry(Geometry geom)
Adds a Geometry instance to this entity.
|
void |
addGeometry(IController geom)
Adds a Geometry instance to this entity.
|
void |
addShape(INode shape)
Adds a shape to this entity.
|
void |
clearShapes()
Removes all shapes associated with this entity.
|
INode |
getShape(int index)
Returns the IShape at the specified index or null if it cannot be found.
|
java.util.List<INode> |
getShapes(boolean copy)
Returns a list of the shapes associated with this entity.
|
boolean |
hasShape(INode shape)
Returns true if the entity contains the supplied INode, false otherwise.
|
boolean |
isImmutable()
Returns true if the entity is immutable, false otherwise.
|
boolean |
isVisible()
Returns true if the entity is visible, false otherwise.
|
void |
removeGeometry(Geometry geom)
Removes a geometry from those displayed in the model.
|
void |
removeShape(INode shape)
Removes the supplied INode from this entity.
|
void |
setImmutable(boolean immutable)
Sets the entity to be immutable, which means it's values cannot be
changed (no new geometry or shapes).
|
void |
setVisible(boolean visible)
Sets the entity to be visible or not visible in the scene.
|
void addGeometry(IController geom)
Adds a Geometry instance to this entity.
geom
- an ICE Geometry instancevoid addGeometry(Geometry geom)
geom
- Geometry instancevoid addShape(INode shape)
shape
- An EAVP CSG INode instance.void removeGeometry(Geometry geom)
geom
- The geometry to be removed.void removeShape(INode shape)
shape
- The EAVP INode to remove.boolean hasShape(INode shape)
shape
- EAVP CSG INode to test forINode getShape(int index)
Returns the IShape at the specified index or null if it cannot be found.
index
- the index to retrieve the IShape atjava.util.List<INode> getShapes(boolean copy)
Returns a list of the shapes associated with this entity.
Optionally, a copy can be made of the list.
copy
- if true, the returned list will be a copyvoid clearShapes()
Removes all shapes associated with this entity.
void setImmutable(boolean immutable)
Sets the entity to be immutable, which means it's values cannot be changed (no new geometry or shapes).
immutable
- if true, the entity will be made immutable otherwise the
entity will be mutableboolean isImmutable()
Returns true if the entity is immutable, false otherwise.
void setVisible(boolean visible)
Sets the entity to be visible or not visible in the scene.
visible
- if true, the entity will be made visible otherwise the entity
will not be visibleboolean isVisible()
Returns true if the entity is visible, false otherwise.