GeneralObject class provides the ability to extend the Inspire data model with a custom entity.
getIcon (self) hasRequiredReferences (self) requireRedraw (self) resurrect (self)
active : Bool¶
Returns or sets the object activeness.
Setting this on or off sets all children. Setting to True sets all the parents active too.
name : Attribute¶
Returns or sets the name of the object.
It can be any text string, including spaces, although it’s best to avoid using the following characters: ” ‘ * ? and $.
While these characters are allowed, they could create difficulties when you export the model to other applications.
visible : Bool¶
Determines whether the object is visible in the modeling window.
Setting this on or off sets all children. Setting to True sets all the parents visible too.
Shows the object in the Model Browser.
Specifies if the object can be moved using the move tool.
If yes then getting/setting the object.position must be implemented.
Can be True, False or a subset of “TX TY TZ RX RY RZ”.
Specifies the icon used to display in Model Browser, Object Tables etc
Returns whether object is in a valid state or not.
Called when references are destroyed and resurrected.
- If any references are destroyed then destroy self.
- If all references come back then resurrect self.
Marks the object that needs to be redrawn in the graphics window.
Brings back an object to active state, if zombie.
Only call from onReferenceResurrected.