//! SelectMgr_ViewerSelector documentation
//! Warning: When a local context is open the sensitivity is apply on it
//! instead on the main context.
- Standard_EXPORT void SetPixelTolerance (const Standard_Real aPrecision = 2.0);
+ Standard_EXPORT void SetPixelTolerance (const Standard_Integer aPrecision = 2);
//! Returns the pixel tolerance.
- Standard_EXPORT Standard_Real PixelTolerance() const;
+ Standard_EXPORT Standard_Integer PixelTolerance() const;
+
+ //! Allows to manage sensitivity of a particular selection of interactive object theObject
+ //! and changes previous sensitivity value of all sensitive entities in selection with theMode
+ //! to the given theNewSensitivity.
+ Standard_EXPORT void SetSelectionSensitivity (const Handle(AIS_InteractiveObject)& theObject,
+ const Standard_Integer theMode,
+ const Standard_Integer theNewSensitivity);
//! Puts the location aLocation on the initial graphic
//! representation and the selection for the entity aniobj.
//! SizeOfObject * DeviationCoefficient.
Standard_EXPORT Standard_Real DeviationCoefficient() const;
- //! default 6degrees
+ //! default 12 degrees
Standard_EXPORT void SetDeviationAngle (const Standard_Real anAngle);
Standard_EXPORT Standard_Real DeviationAngle() const;
//! Returns True if drawing isoparameters on planes is enabled.
//! if <forUIsos> = False,
Standard_EXPORT Standard_Boolean IsoOnPlane() const;
-
+
+ //! Enables or disables on-triangulation build for isolines for a particular object.
+ //! In case if on-triangulation builder is disabled, default on-plane
+ //! builder will compute isolines for the object given.
+ Standard_EXPORT void IsoOnTriangulation (const Standard_Boolean theIsEnabled,
+ const Handle(AIS_InteractiveObject)& theObject);
+
+ //! Enables or disables on-triangulation build for isolines for default drawer.
+ //! In case if on-triangulation builder is disabled, default on-plane
+ //! builder will compute isolines for the object given.
+ Standard_EXPORT void IsoOnTriangulation (const Standard_Boolean theToSwitchOn);
+
+ //! Returns true if drawing isolines on triangulation algorithm is enabled.
+ Standard_EXPORT Standard_Boolean IsoOnTriangulation() const;
+
//! Sets the graphic basic aspect to the current presentation of
//! ALL selected objects.
//! When <globalChange> is TRUE , the full object presentation
//! Unhighlights previously selected owners and marks them as not selected.
//! Marks owner given as selected and highlights it.
+ //! Performs selection filters check.
Standard_EXPORT void SetSelected (const Handle(SelectMgr_EntityOwner)& theOwners,
const Standard_Boolean theToUpdateViewer = Standard_True);
//! Standard_False, the presentation of the Interactive
//! Object activates the selection mode; the object is
//! displayed but no viewer will be updated.
+ //! Performs selection filters check.
Standard_EXPORT void SetSelected (const Handle(AIS_InteractiveObject)& theObject,
const Standard_Boolean theToUpdateViewer = Standard_True);
void highlightSelected (const Handle(SelectMgr_EntityOwner)& theOwner,
const Quantity_NameOfColor theSelColor);
+ //! Helper function that unhighlights all owners that are stored in current AIS_Selection.
+ //! The function updates global status and selection state of owner and interactive object.
+ //! If the parameter <theIsToHilightSubIntensity> is set to true, interactive objects with sub-intensity
+ //! switched on in AIS_GlobalStatus will be highlighted with context's sub-intensity color.
+ void unhighlightSelected (const Standard_Boolean theIsToHilightSubIntensity = Standard_False);
+
AIS_DataMapOfIOStatus myObjects;
Handle(SelectMgr_SelectionManager) mgrSelector;
Handle(PrsMgr_PresentationManager3d) myMainPM;