/// \param isEnabled a boolean value
bool enableUpdateViewer(const bool isEnabled);
+ /// Returns myEnableUpdateViewer flag
bool isUpdateEnabled() const { return myEnableUpdateViewer; }
/// Updates the viewer
/// \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);
+
+ 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);
+
signals:
/// Signal on object display
/// \param theObject a data object
/// 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;
};