X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Displayer.h;h=5ad16e6bcc00bcbca8be10123dc301481f67ff87;hb=45314f99ce0639af40401746aab4917f076102f2;hp=a7eec2af01ce1e5e2e169c6ada9d760e3b746a02;hpb=902ee072b1eb3122ee3a3b8ce8c9722b5a671e0b;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Displayer.h b/src/XGUI/XGUI_Displayer.h index a7eec2af0..5ad16e6bc 100644 --- a/src/XGUI/XGUI_Displayer.h +++ b/src/XGUI/XGUI_Displayer.h @@ -227,7 +227,20 @@ class XGUI_EXPORT XGUI_Displayer: public QObject /// \param theUpdateViewer update viewer flag /// \return previously defined color on the object QColor setObjectColor(ObjectPtr theObject, const QColor& theColor, bool theUpdateViewer = true); + + /// Returns Trihedron object if it is displayed + Handle(AIS_InteractiveObject) getTrihedron() const; + /// Set trihedron active (used in selection) or non active + void activateTrihedron(bool theIsActive); + + /// Displays/erases thrihedron in current modes. It will be activated or deactivated + /// depending on the trihedron visible state and displayer active trihedron state + void displayTrihedron(bool theToDisplay) const; + + /// Returns true if the trihedron should be activated in current selection modes + bool isTrihedronActive() const { return myIsTrihedronActive; } + /// Converts shape type (TopAbs_ShapeEnum) to selection mode /// \param theShapeType a shape type from TopAbs_ShapeEnum static int getSelectionMode(int theShapeType); @@ -273,7 +286,8 @@ private: void deactivate(ObjectPtr theObject, const bool theUpdateViewer); /// Find a trihedron in a list of displayed presentations and deactivate it. - void deactivateTrihedron() const; + /// \param theUpdateViewer an update viewer flag + void deactivateTrihedron(const bool theUpdateViewer) const; /// Opens local context. Does nothing if it is already opened. void openLocalContext(); @@ -316,6 +330,9 @@ private: /// the enable update viewer flag bool myEnableUpdateViewer; + // Flag: use trihedgon for selection or not + bool myIsTrihedronActive; + /// A flag that update was requested but not done mutable bool myNeedUpdate; };