This class allows the definition of a manager to which the graphic objects are associated. It allows them to be globally manipulated. It defines the global attributes. Keywords: Structure, Structure Manager, Update Mode, Destroy, Highlight, Visible.
More...
|
| Graphic3d_StructureManager (const Handle< Graphic3d_GraphicDriver > &theDriver) |
| Initializes the ViewManager. Currently creating of more than 100 viewer instances is not supported and leads to InitializationError and initialization failure. This limitation might be addressed in some future OCCT releases. Warning: Raises InitialisationError if the initialization of the ViewManager failed. More...
|
|
| ~Graphic3d_StructureManager () |
| Deletes the manager <me>. More...
|
|
virtual void | Update (const Graphic3d_ZLayerId theLayerId=Graphic3d_ZLayerId_UNKNOWN) const |
| Invalidates bounding box of specified ZLayerId. More...
|
|
virtual void | Remove () |
| Deletes and erases the 3D structure manager. More...
|
|
virtual void | Erase () |
| Erases all the structures. More...
|
|
void | DisplayedStructures (Graphic3d_MapOfStructure &SG) const |
| Returns the set of structures displayed in visualiser <me>. More...
|
|
void | HighlightedStructures (Graphic3d_MapOfStructure &SG) const |
| Returns the set of highlighted structures in a visualiser <me>. More...
|
|
virtual void | ReCompute (const Handle< Graphic3d_Structure > &theStructure) |
| Forces a new construction of the structure. if <theStructure> is displayed and TOS_COMPUTED. More...
|
|
virtual void | ReCompute (const Handle< Graphic3d_Structure > &theStructure, const Handle< Graphic3d_DataStructureManager > &theProjector) |
| Forces a new construction of the structure. if <theStructure> is displayed in <theProjector> and TOS_COMPUTED. More...
|
|
virtual void | Clear (Graphic3d_Structure *theStructure, const Standard_Boolean theWithDestruction) |
| Clears the structure. More...
|
|
virtual void | Connect (const Graphic3d_Structure *theMother, const Graphic3d_Structure *theDaughter) |
| Connects the structures. More...
|
|
virtual void | Disconnect (const Graphic3d_Structure *theMother, const Graphic3d_Structure *theDaughter) |
| Disconnects the structures. More...
|
|
virtual void | Display (const Handle< Graphic3d_Structure > &theStructure) |
| Display the structure. More...
|
|
virtual void | Erase (const Handle< Graphic3d_Structure > &theStructure) |
| Erases the structure. More...
|
|
virtual void | Highlight (const Handle< Graphic3d_Structure > &theStructure) |
| Highlights the structure. More...
|
|
virtual void | SetTransform (const Handle< Graphic3d_Structure > &theStructure, const Handle< TopLoc_Datum3D > &theTrsf) |
| Transforms the structure. More...
|
|
virtual void | ChangeDisplayPriority (const Handle< Graphic3d_Structure > &theStructure, const Standard_Integer theOldPriority, const Standard_Integer theNewPriority) |
| Changes the display priority of the structure <AStructure>. More...
|
|
virtual void | ChangeZLayer (const Handle< Graphic3d_Structure > &theStructure, const Graphic3d_ZLayerId theLayerId) |
| Change Z layer for structure. The Z layer mechanism allows to display structures in higher layers in overlay of structures in lower layers. More...
|
|
const Handle< Graphic3d_GraphicDriver > & | GraphicDriver () const |
| Returns the graphic driver of <me>. More...
|
|
Standard_Integer | Identification (Graphic3d_CView *theView) |
| Attaches the view to this structure manager and sets its identification number within the manager. More...
|
|
void | UnIdentification (Graphic3d_CView *theView) |
| Detach the view from this structure manager and release its identification. More...
|
|
const Graphic3d_IndexedMapOfView & | DefinedViews () const |
| Returns the group of views defined in the structure manager. More...
|
|
Standard_Integer | MaxNumOfViews () const |
| Returns the theoretical maximum number of definable views in the manager. Warning: It's not possible to accept an infinite number of definable views because each view must have an identification and we have different managers. More...
|
|
virtual Handle< Graphic3d_Structure > | Identification (const Standard_Integer AId) const |
| Returns the structure with the identification number <AId>. More...
|
|
virtual void | UnHighlight (const Handle< Graphic3d_Structure > &AStructure) |
| Suppress the highlighting on the structure <AStructure>. More...
|
|
virtual void | UnHighlight () |
| Suppresses the highlighting on all the structures in <me>. More...
|
|
void | RecomputeStructures () |
| Recomputes all structures in the manager. Resets Device Lost flag. More...
|
|
void | RecomputeStructures (const NCollection_Map< Graphic3d_Structure * > &theStructures) |
| Recomputes all structures from theStructures. More...
|
|
Handle< Graphic3d_ViewAffinity > | RegisterObject (const Handle< Standard_Transient > &theObject) |
|
void | UnregisterObject (const Handle< Standard_Transient > &theObject) |
|
Handle< Graphic3d_ViewAffinity > | ObjectAffinity (const Handle< Standard_Transient > &theObject) const |
|
Standard_Boolean | IsDeviceLost () const |
| Returns TRUE if Device Lost flag has been set and presentation data should be reuploaded onto graphics driver. More...
|
|
void | SetDeviceLost () |
| Sets Device Lost flag. More...
|
|
void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
| Dumps the content of me into the stream. More...
|
|
Public Member Functions inherited from Standard_Transient |
| Standard_Transient () |
| Empty constructor. More...
|
|
| Standard_Transient (const Standard_Transient &) |
| Copy constructor – does nothing. More...
|
|
Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. More...
|
|
virtual | ~Standard_Transient () |
| Destructor must be virtual. More...
|
|
virtual void | Delete () const |
| Memory deallocator for transient classes. More...
|
|
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| Returns a type descriptor about this object. More...
|
|
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| Returns a true value if this is an instance of Type. More...
|
|
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName. More...
|
|
Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
| Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
|
|
Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
|
|
Standard_Transient * | This () const |
| Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
|
|
Standard_Integer | GetRefCount () const |
| Get the reference counter of this object. More...
|
|
void | IncrementRefCounter () const |
| Increments the reference counter of this object. More...
|
|
Standard_Integer | DecrementRefCounter () const |
| Decrements the reference counter of this object; returns the decremented value. More...
|
|
This class allows the definition of a manager to which the graphic objects are associated. It allows them to be globally manipulated. It defines the global attributes. Keywords: Structure, Structure Manager, Update Mode, Destroy, Highlight, Visible.