// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _PrsMgr_PresentationManager_HeaderFile #define _PrsMgr_PresentationManager_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_PrsMgr_PresentationManager_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _TColStd_ListOfTransient_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Handle_PrsMgr_PresentableObject_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_Viewer_View_HeaderFile #include #endif #ifndef _Handle_PrsMgr_Presentation_HeaderFile #include #endif class Standard_NoSuchObject; class PrsMgr_PresentableObject; class Viewer_View; class PrsMgr_Presentation; //! This class represents any kind of entity able to collect
//! representations of an object, to show or erase them.
//! Example: StructureManager from Graphic3d
//! View from Graphic2d
class PrsMgr_PresentationManager : public MMgt_TShared { public: Standard_EXPORT virtual Standard_Boolean Is3D() const = 0; //! Displays the presentation of the object in the given
//! Presentation manager with the given mode.
//! The mode should be enumerated by the object which
//! inherits PresentableObject.
Standard_EXPORT void Display(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) ; //! erases the presentation of the object in the given
//! Presentation manager with the given mode.
Standard_EXPORT void Erase(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) ; //! Clears the presentation of the presentable object
//! aPresentableObject in this framework with the
//! display mode aMode.
Standard_EXPORT virtual void Clear(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) ; //! Highlights the presentation of the presentable object
//! aPresentableObject in this framework with the display mode aMode.
Standard_EXPORT void Highlight(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) ; //! Removes highlighting from the presentation of the
//! presentable object aPresentableObject in this
//! framework with the display mode aMode.
Standard_EXPORT void Unhighlight(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) ; //! Sets the display priority aNewPrior of the
//! presentable object aPresentableObject in this
//! framework with the display mode aMode.
Standard_EXPORT void SetDisplayPriority(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer amode,const Standard_Integer aNewPrior) const; //! Returns the display priority of the presentable object
//! aPresentableObject in this framework with the
//! display mode aMode.
Standard_EXPORT Standard_Integer DisplayPriority(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer amode) const; //! Returns true if the presentation of the presentable
//! object aPresentableObject in this framework with the
//! display mode aMode is displayed.
Standard_EXPORT Standard_Boolean IsDisplayed(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) const; //! Returns true if the presentation of the presentable
//! object aPresentableObject in this framework with the
//! display mode aMode is highlighted.
Standard_EXPORT Standard_Boolean IsHighlighted(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) const; //! Updates the presentation of the presentable object
//! aPresentableObject in this framework with the display mode aMode.
Standard_EXPORT void Update(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) const; //! initializes the list of Prs to be displayed in transient mode
Standard_EXPORT virtual void BeginDraw() ; //! Performs an iteration of the transient objects to look
//! for the presentable objects with the display mode aMode.
//! Appends the presentation of the presentable object
//! aPresentableObject with the mode aMode to the list
//! of objects in immediate mode.
Standard_EXPORT void Add(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) ; //! Performs an iteration of the transient objects to look
//! for the presentable objects with the display mode aMode.
//! Removes the presentation of the presentable object
//! aPresentableObject with the mode aMode from the
//! list of objects in immediate mode.
Standard_EXPORT void Remove(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) ; //! Allows rapid drawing of the view aView by avoiding
//! an update of the whole background. If DoubleBuffer
//! is true, the background is drawn.
Standard_EXPORT virtual void EndDraw(const Handle(Viewer_View)& aView,const Standard_Boolean DoubleBuffer = Standard_False) = 0; //! Returns true if immediate (transient) mode is on.
Standard_Boolean IsImmediateModeOn() const; //! Returns true if there is a presentation of the
//! presentable object aPresentableObject in this
//! framework, aPresentableObject having the display mode aMode.
Standard_EXPORT Standard_Boolean HasPresentation(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) const; //! Returns the presentation Presentation of the
//! presentable object aPresentableObject in this
//! framework. aPresentableObject has the display mode aMode.
Standard_EXPORT Handle_PrsMgr_Presentation Presentation(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) const; DEFINE_STANDARD_RTTI(PrsMgr_PresentationManager) protected: Standard_EXPORT PrsMgr_PresentationManager(); //! Adds a presentation of the presentable object
//! aPresentableObject to this framework.
//! aPresentableObject has the display mode aMode.
Standard_EXPORT void AddPresentation(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) ; //! Removes a presentation of the presentable object
//! aPresentableObject to this framework.
//! aPresentableObject has the display mode aMode.
Standard_EXPORT void RemovePresentation(const Handle(PrsMgr_PresentableObject)& aPresentableObject,const Standard_Integer aMode = 0) ; Standard_Boolean myImmediateMode; TColStd_ListOfTransient myImmediateList; private: //! Creates a new presentation in the presentation manager.
Standard_EXPORT virtual Handle_PrsMgr_Presentation newPresentation(const Handle(PrsMgr_PresentableObject)& aPresentableObject) = 0; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif