IDrawable
Parent Interface for Simple geometric represetation of an entity or its part
Methods
| Method | Description |
|---|---|
| getProperties() | Non-geometric properties of geometric representation |
| getAllPoints() | Array of all points defining geometry |
| getEntityUID() | Unique identifier (line number) of entity that created this entity |
| setEntityUID(String value) | Unique identifier (line number) of entity that created this entity |
| getTransformedDrawable(Point3D[] newPoints) | Creates a new drawable using provided points and non-geometric properties of current drawable |
| getNewPropsDrawable(IDrawableProperties props) | Creates a new drawable using geometry of current drawable and provided non-geometric properties |
| accept(IExporterVisitor visitor) | Part of Visitor pattern with an |
getProperties()
IDrawableProperties getProperties()
Non-geometric properties of geometric representation
Returns: IDrawableProperties
getAllPoints()
Point3D[] getAllPoints()
Array of all points defining geometry
Returns: Point3D[]
getEntityUID()
String getEntityUID()
Unique identifier (line number) of entity that created this entity
Returns: String
setEntityUID(String value)
void setEntityUID(String value)
Unique identifier (line number) of entity that created this entity
getTransformedDrawable(Point3D[] newPoints)
IDrawable getTransformedDrawable(Point3D[] newPoints)
Creates a new drawable using provided points and non-geometric properties of current drawable
Parameters:
| Parameter | Type | Description |
|---|---|---|
| newPoints | Point3D[] | All points defining new geometry |
Returns: IDrawable - New drawable with new geometry and current non-geometric properties
getNewPropsDrawable(IDrawableProperties props)
IDrawable getNewPropsDrawable(IDrawableProperties props)
Creates a new drawable using geometry of current drawable and provided non-geometric properties
Parameters:
| Parameter | Type | Description |
|---|---|---|
| props | IDrawableProperties | New non-geometric properties |
Returns: IDrawable - New drawable with current geometry and new non-geometric properties
accept(IExporterVisitor visitor)
void accept(IExporterVisitor visitor)
Part of Visitor pattern with an
Parameters:
| Parameter | Type | Description |
|---|---|---|
| visitor | IExporterVisitor | An to render geometry |