|
Open CASCADE Technology
6.7.1
|
Defines a specific context for selection.
It becomes possible to:
More...
#include <AIS_LocalContext.hxx>

Public Member Functions | |
| AIS_LocalContext () | |
| AIS_LocalContext (const Handle< AIS_InteractiveContext > &aCtx, const Standard_Integer anIndex, const Standard_Boolean LoadDisplayed=Standard_True, const Standard_Boolean AcceptStandardModes=Standard_True, const Standard_Boolean AcceptErase=Standard_False, const Standard_Boolean UseBothViewers=Standard_False) | |
| Constructor By Default, the displayed objects are automatically loaded. More... | |
| void | AcceptErase (const Standard_Boolean aStatus) |
| authorize or not others contexts to erase temporary displayed objects here; More... | |
| Standard_Boolean | AcceptErase () const |
| void | SetContext (const Handle< AIS_InteractiveContext > &aCtx) |
| const TCollection_AsciiString & | SelectionName () const |
| void | Terminate (const Standard_Boolean updateviewer=Standard_True) |
| Standard_Boolean | HasSameProjector (const Handle< Select3D_Projector > &aPrj) const |
| compares the current projector of the localContext with <aPrj> returns True if the projectors are identical. (no need to update projection of selection primitives when closing the local context).... More... | |
| void | Reactivate () |
| to be called when a upper local context was closed... useful to put pack the right projector... More... | |
| Standard_Boolean | Display (const Handle< AIS_InteractiveObject > &anInteractive, const Standard_Integer DisplayMode=0, const Standard_Boolean AllowShapeDecomposition=Standard_True, const Standard_Integer ActivationMode=0) |
| returns true if done... More... | |
| Standard_Boolean | Load (const Handle< AIS_InteractiveObject > &anInteractive, const Standard_Boolean AllowShapeDecomposition=Standard_True, const Standard_Integer ActivationMode=0) |
| loads <anInteractive> with nodisplay... returns true if done More... | |
| Standard_Boolean | Erase (const Handle< AIS_InteractiveObject > &anInteractive) |
| returns true if done... More... | |
| Standard_Boolean | Remove (const Handle< AIS_InteractiveObject > &aSelectable) |
| Standard_Boolean | ClearPrs (const Handle< AIS_InteractiveObject > &anInteractive, const Standard_Integer aMode) |
| void | SetShapeDecomposition (const Handle< AIS_InteractiveObject > &aStoredObject, const Standard_Boolean aStatus) |
| allows or forbids the shape decomposition into Activated Standard Mode for <aStoredObject> does nothing if the object doesn't inherits BasicShape from AIS More... | |
| void | Clear (const AIS_ClearMode atype=AIS_CM_All) |
| according to <atype> , clears the different parts of the selector (filters, modeof activation, objects...) More... | |
| void | ActivateMode (const Handle< AIS_InteractiveObject > &aSelectable, const Standard_Integer aMode) |
| optional : activation of a mode which is not 0 for a selectable... More... | |
| void | DeactivateMode (const Handle< AIS_InteractiveObject > &aSelectable, const Standard_Integer aMode) |
| void | Deactivate (const Handle< AIS_InteractiveObject > &aSelectable) |
| void | ActivateStandardMode (const TopAbs_ShapeEnum aType) |
| decomposition of shapes into <aType> More... | |
| void | DeactivateStandardMode (const TopAbs_ShapeEnum aType) |
| const TColStd_ListOfInteger & | StandardModes () const |
| void | AddFilter (const Handle< SelectMgr_Filter > &aFilter) |
| void | RemoveFilter (const Handle< SelectMgr_Filter > &aFilter) |
| const SelectMgr_ListOfFilter & | ListOfFilter () const |
| const Handle_SelectMgr_OrFilter & | Filter () const |
| void | SetAutomaticHilight (const Standard_Boolean aStatus) |
| if <aStatus> = True , the shapes or subshapes detected by the selector will be automatically hilighted in the main viewer. Else the user has to manage the detected shape outside the Shape Selector.... More... | |
| Standard_Boolean | AutomaticHilight () const |
| AIS_StatusOfDetection | MoveTo (const Standard_Integer Xpix, const Standard_Integer Ypix, const Handle< V3d_View > &aview) |
| Standard_Boolean | HasNextDetected () const |
| returns True if more than one entity was detected at the last Mouse position. More... | |
| Standard_Integer | HilightNextDetected (const Handle< V3d_View > &aView) |
| returns True if last detected. the next detected will be first one (endless loop) More... | |
| Standard_Integer | HilightPreviousDetected (const Handle< V3d_View > &aView) |
| Standard_Boolean | UnhilightLastDetected (const Handle< V3d_View > &aView) |
| returns True if something was done... More... | |
| AIS_StatusOfPick | Select (const Standard_Boolean updateviewer=Standard_True) |
| returns the number of selected More... | |
| AIS_StatusOfPick | ShiftSelect (const Standard_Boolean updateviewer=Standard_True) |
| AIS_StatusOfPick | Select (const Standard_Integer XPMin, const Standard_Integer YPMin, const Standard_Integer XPMax, const Standard_Integer YPMax, const Handle< V3d_View > &aView, const Standard_Boolean updateviewer=Standard_True) |
| AIS_StatusOfPick | ShiftSelect (const Standard_Integer XPMin, const Standard_Integer YPMin, const Standard_Integer XPMax, const Standard_Integer YPMax, const Handle< V3d_View > &aView, const Standard_Boolean updateviewer=Standard_True) |
| AIS_StatusOfPick | Select (const TColgp_Array1OfPnt2d &Polyline, const Handle< V3d_View > &aView, const Standard_Boolean updateviewer=Standard_True) |
| AIS_StatusOfPick | ShiftSelect (const TColgp_Array1OfPnt2d &Polyline, const Handle< V3d_View > &aView, const Standard_Boolean updateviewer=Standard_True) |
| void | HilightPicked (const Standard_Boolean updateviewer=Standard_True) |
| void | UnhilightPicked (const Standard_Boolean updateviewer=Standard_True) |
| void | UpdateSelected (const Standard_Boolean updateviewer=Standard_True) |
| void | UpdateSelected (const Handle< AIS_InteractiveObject > &anobj, const Standard_Boolean updateviewer=Standard_True) |
| Part of advanced selection highlighting mechanism. If no owners belonging to anobj are selected, calls anobj->ClearSelected(), otherwise calls anobj->HilightSelected(). This method can be used to avoid redrawing the whole selection belonging to several Selectable Objects. More... | |
| void | SetSelected (const Handle< AIS_InteractiveObject > &anobj, const Standard_Boolean updateviewer=Standard_True) |
| useful to update selection with objects coming from Collector or stack More... | |
| void | AddOrRemoveSelected (const Handle< AIS_InteractiveObject > &anobj, const Standard_Boolean updateviewer=Standard_True) |
| useful to update selection with objects coming from Collector or stack More... | |
| void | AddOrRemoveSelected (const TopoDS_Shape &aShape, const Standard_Boolean updateviewer=Standard_True) |
| void | AddOrRemoveSelected (const Handle< SelectMgr_EntityOwner > &Ownr, const Standard_Boolean updateviewer=Standard_True) |
| void | ClearSelected (const Standard_Boolean updateviewer=Standard_True) |
| Standard_Boolean | HasDetected () const |
| void | InitDetected () |
| Standard_Boolean | MoreDetected () const |
| void | NextDetected () |
| const TopoDS_Shape & | DetectedCurrentShape () const |
| Handle_AIS_InteractiveObject | DetectedCurrentObject () const |
| Standard_Boolean | HasDetectedShape () const |
| const TopoDS_Shape & | DetectedShape () const |
| Handle_AIS_InteractiveObject | DetectedInteractive () const |
| Handle_SelectMgr_EntityOwner | DetectedOwner () const |
| void | InitSelected () |
| Standard_Boolean | MoreSelected () const |
| void | NextSelected () |
| Standard_Boolean | HasShape () const |
| returns TRUE if the detected entity is a shape coming from a Decomposition of an element. More... | |
| const TopoDS_Shape & | SelectedShape () const |
| Handle_SelectMgr_EntityOwner | SelectedOwner () const |
| Standard_Boolean | IsSelected (const Handle< AIS_InteractiveObject > &aniobj) const |
| Standard_Boolean | IsSelected (const Handle< SelectMgr_EntityOwner > &anOwner) const |
| Handle_AIS_InteractiveObject | SelectedInteractive () const |
| Standard_Boolean | HasApplicative () const |
| returns TRUE if an interactive element was associated with the current picked entity. More... | |
| const Handle_Standard_Transient & | SelectedApplicative () const |
| void | SetDisplayPriority (const Handle< AIS_InteractiveObject > &anObject, const Standard_Integer Prior) |
| void | SetZLayer (const Handle< AIS_InteractiveObject > &theIObj, const Standard_Integer theLayerId) |
Set Z layer id for interactive object. The layer can be <br> specified for displayed object only. The Z layers can be used to display | |
| Standard_Integer | GetZLayer (const Handle< AIS_InteractiveObject > &theIObj) const |
Get Z layer id set for displayed interactive object. <br> If the object doesn't exists in context or has no computed presentations, | |
| Standard_Integer | DisplayedObjects (TColStd_MapOfTransient &theMapToFill) const |
| Standard_Boolean | IsIn (const Handle< AIS_InteractiveObject > &anObject) const |
| Standard_Boolean | IsDisplayed (const Handle< AIS_InteractiveObject > &anObject) const |
| Standard_Boolean | IsDisplayed (const Handle< AIS_InteractiveObject > &anObject, const Standard_Integer aMode) const |
| const TColStd_ListOfInteger & | SelectionModes (const Handle< AIS_InteractiveObject > &anObject) const |
| void | SubIntensityOn (const Handle< AIS_InteractiveObject > &anObject) |
| void | SubIntensityOff (const Handle< AIS_InteractiveObject > &anObject) |
| void | Hilight (const Handle< AIS_InteractiveObject > &anObject) |
| void | Hilight (const Handle< AIS_InteractiveObject > &anObject, const Quantity_NameOfColor aCol) |
| void | Unhilight (const Handle< AIS_InteractiveObject > &anObject) |
| Standard_Boolean | IsHilighted (const Handle< AIS_InteractiveObject > &anObject) const |
| Standard_Boolean | IsHilighted (const Handle< AIS_InteractiveObject > &anObject, Standard_Boolean &WithColor, Quantity_NameOfColor &HiCol) const |
| void | SetSensitivityMode (const StdSelect_SensitivityMode aMode) |
Sets the selection sensitivity mode. SM_WINDOW mode <br> uses the specified pixel tolerance to compute the sensitivity | |
| StdSelect_SensitivityMode | SensitivityMode () const |
| Returns the selection sensitivity mode. More... | |
| void | SetSensitivity (const Standard_Real aPrecision) |
| Define the current selection sensitivity for this local context according to the view size. More... | |
| Standard_Real | Sensitivity () const |
| Returns the selection sensitivity value. More... | |
| void | SetPixelTolerance (const Standard_Integer aPrecision=2) |
| Define the current selection sensitivity for this local context according to the view size. More... | |
| Standard_Integer | PixelTolerance () const |
| Returns the pixel tolerance. More... | |
| Standard_Boolean | BeginImmediateDraw () |
| initializes the list of presentations to be displayed returns False if No Local COnte More... | |
| Standard_Boolean | ImmediateAdd (const Handle< AIS_InteractiveObject > &anIObj, const Standard_Integer aMode=0) |
| returns True if <anIObj> has been stored in the list. More... | |
| Standard_Boolean | ImmediateRemove (const Handle< AIS_InteractiveObject > &anIObj, const Standard_Integer aMode=0) |
| returns True if <anIObj> has been removed from the list. More... | |
| Standard_Boolean | EndImmediateDraw (const Handle< V3d_View > &aView, const Standard_Boolean DoubleBuf=Standard_False) |
| returns True if the immediate display has been done. More... | |
| Standard_Boolean | IsImmediateModeOn () const |
| void | UpdateConversion () |
| void | UpdateSort () |
| void | LoadContextObjects () |
| void | UnloadContextObjects () |
| void | DisplayAreas (const Handle< V3d_View > &aviou) |
| void | ClearAreas (const Handle< V3d_View > &aView) |
| void | DisplaySensitive (const Handle< V3d_View > &aView) |
| void | ClearSensitive (const Handle< V3d_View > &aView) |
| const Handle_StdSelect_ViewerSelector3d & | MainSelector () const |
| Handle_SelectMgr_EntityOwner | FindSelectedOwnerFromIO (const Handle< AIS_InteractiveObject > &anIObj) const |
| Handle_SelectMgr_EntityOwner | FindSelectedOwnerFromShape (const TopoDS_Shape &aShape) const |
Public Member Functions inherited from MMgt_TShared | |
| virtual void | Delete () const |
| Memory deallocator for transient classes. 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 | ShallowDump (Standard_OStream &) const |
| virtual const Handle_Standard_Type & | DynamicType () const |
| Returns a type information object about this object. More... | |
| Standard_Boolean | IsInstance (const 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 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... | |
| virtual Handle_Standard_Transient | This () const |
| Returns a Handle which references this object. Must never be called to objects created in stack. More... | |
| Standard_Integer | GetRefCount () const |
| Get the reference counter of this object. More... | |
Friends | |
| Standard_Boolean | AIS_InteractiveContext::KeepTemporary (const Handle< AIS_InteractiveObject > &anIObj, const Standard_Integer InWhichLocal) |
Changes the status of a temporary object. It will be <br> kept at the neutral point, i.e. put in the list of | |
Defines a specific context for selection.
It becomes possible to:
+ Load InteractiveObjects with a mode to be <br>
activated + associate InteractiveObjects with a <br>
set of temporary selectable Objects.... + + <br>
activate StandardMode of selection for Entities <br>
inheriting BasicShape from AIS (Selection Of <br>
vertices, edges, wires,faces... + Add Filters <br>
acting on detected owners of sensitive primitives <br>
| AIS_LocalContext::AIS_LocalContext | ( | ) |
| AIS_LocalContext::AIS_LocalContext | ( | const Handle< AIS_InteractiveContext > & | aCtx, |
| const Standard_Integer | anIndex, | ||
| const Standard_Boolean | LoadDisplayed = Standard_True, |
||
| const Standard_Boolean | AcceptStandardModes = Standard_True, |
||
| const Standard_Boolean | AcceptErase = Standard_False, |
||
| const Standard_Boolean | UseBothViewers = Standard_False |
||
| ) |
Constructor By Default, the displayed objects are
automatically loaded.
| void AIS_LocalContext::AcceptErase | ( | const Standard_Boolean | aStatus | ) |
authorize or not others contexts to erase
temporary displayed objects here;
| Standard_Boolean AIS_LocalContext::AcceptErase | ( | ) | const |
| void AIS_LocalContext::ActivateMode | ( | const Handle< AIS_InteractiveObject > & | aSelectable, |
| const Standard_Integer | aMode | ||
| ) |
optional : activation of a mode which is not 0 for a selectable...
| void AIS_LocalContext::ActivateStandardMode | ( | const TopAbs_ShapeEnum | aType | ) |
decomposition of shapes into <aType>
| void AIS_LocalContext::AddFilter | ( | const Handle< SelectMgr_Filter > & | aFilter | ) |
| void AIS_LocalContext::AddOrRemoveSelected | ( | const Handle< AIS_InteractiveObject > & | anobj, |
| const Standard_Boolean | updateviewer = Standard_True |
||
| ) |
useful to update selection with objects coming from
Collector or stack
| void AIS_LocalContext::AddOrRemoveSelected | ( | const TopoDS_Shape & | aShape, |
| const Standard_Boolean | updateviewer = Standard_True |
||
| ) |
| void AIS_LocalContext::AddOrRemoveSelected | ( | const Handle< SelectMgr_EntityOwner > & | Ownr, |
| const Standard_Boolean | updateviewer = Standard_True |
||
| ) |
| Standard_Boolean AIS_LocalContext::AutomaticHilight | ( | ) | const |
| Standard_Boolean AIS_LocalContext::BeginImmediateDraw | ( | ) |
initializes the list of presentations to be displayed
returns False if No Local COnte
| void AIS_LocalContext::Clear | ( | const AIS_ClearMode | atype = AIS_CM_All | ) |
according to <atype> , clears the different parts of
the selector (filters, modeof activation, objects...)
| Standard_Boolean AIS_LocalContext::ClearPrs | ( | const Handle< AIS_InteractiveObject > & | anInteractive, |
| const Standard_Integer | aMode | ||
| ) |
| void AIS_LocalContext::ClearSelected | ( | const Standard_Boolean | updateviewer = Standard_True | ) |
| void AIS_LocalContext::Deactivate | ( | const Handle< AIS_InteractiveObject > & | aSelectable | ) |
| void AIS_LocalContext::DeactivateMode | ( | const Handle< AIS_InteractiveObject > & | aSelectable, |
| const Standard_Integer | aMode | ||
| ) |
| void AIS_LocalContext::DeactivateStandardMode | ( | const TopAbs_ShapeEnum | aType | ) |
| Handle_AIS_InteractiveObject AIS_LocalContext::DetectedCurrentObject | ( | ) | const |
| const TopoDS_Shape& AIS_LocalContext::DetectedCurrentShape | ( | ) | const |
| Handle_AIS_InteractiveObject AIS_LocalContext::DetectedInteractive | ( | ) | const |
| Handle_SelectMgr_EntityOwner AIS_LocalContext::DetectedOwner | ( | ) | const |
| const TopoDS_Shape& AIS_LocalContext::DetectedShape | ( | ) | const |
| Standard_Boolean AIS_LocalContext::Display | ( | const Handle< AIS_InteractiveObject > & | anInteractive, |
| const Standard_Integer | DisplayMode = 0, |
||
| const Standard_Boolean | AllowShapeDecomposition = Standard_True, |
||
| const Standard_Integer | ActivationMode = 0 |
||
| ) |
returns true if done...
| Standard_Integer AIS_LocalContext::DisplayedObjects | ( | TColStd_MapOfTransient & | theMapToFill | ) | const |
| Standard_Boolean AIS_LocalContext::EndImmediateDraw | ( | const Handle< V3d_View > & | aView, |
| const Standard_Boolean | DoubleBuf = Standard_False |
||
| ) |
returns True if the immediate display has been done.
| Standard_Boolean AIS_LocalContext::Erase | ( | const Handle< AIS_InteractiveObject > & | anInteractive | ) |
returns true if done...
| const Handle_SelectMgr_OrFilter& AIS_LocalContext::Filter | ( | ) | const |
| Handle_SelectMgr_EntityOwner AIS_LocalContext::FindSelectedOwnerFromIO | ( | const Handle< AIS_InteractiveObject > & | anIObj | ) | const |
| Handle_SelectMgr_EntityOwner AIS_LocalContext::FindSelectedOwnerFromShape | ( | const TopoDS_Shape & | aShape | ) | const |
| Standard_Integer AIS_LocalContext::GetZLayer | ( | const Handle< AIS_InteractiveObject > & | theIObj | ) | const |
Get Z layer id set for displayed interactive object. <br>
If the object doesn't exists in context or has no computed presentations,
the method returns -1.
| Standard_Boolean AIS_LocalContext::HasApplicative | ( | ) | const |
returns TRUE if an interactive element
was associated with the current picked entity.
| Standard_Boolean AIS_LocalContext::HasDetected | ( | ) | const |
| Standard_Boolean AIS_LocalContext::HasDetectedShape | ( | ) | const |
| Standard_Boolean AIS_LocalContext::HasNextDetected | ( | ) | const |
returns True if more than one entity
was detected at the last Mouse position.
| Standard_Boolean AIS_LocalContext::HasSameProjector | ( | const Handle< Select3D_Projector > & | aPrj | ) | const |
compares the current projector of the localContext
with <aPrj>
returns True if the projectors are identical.
(no need to update projection of selection primitives
when closing the local context)....
| Standard_Boolean AIS_LocalContext::HasShape | ( | ) | const |
returns TRUE if the detected entity is a shape
coming from a Decomposition of an element.
| void AIS_LocalContext::Hilight | ( | const Handle< AIS_InteractiveObject > & | anObject | ) |
| void AIS_LocalContext::Hilight | ( | const Handle< AIS_InteractiveObject > & | anObject, |
| const Quantity_NameOfColor | aCol | ||
| ) |
| Standard_Integer AIS_LocalContext::HilightNextDetected | ( | const Handle< V3d_View > & | aView | ) |
returns True if last detected. the next detected will
be first one (endless loop)
| void AIS_LocalContext::HilightPicked | ( | const Standard_Boolean | updateviewer = Standard_True | ) |
| Standard_Integer AIS_LocalContext::HilightPreviousDetected | ( | const Handle< V3d_View > & | aView | ) |
| Standard_Boolean AIS_LocalContext::ImmediateAdd | ( | const Handle< AIS_InteractiveObject > & | anIObj, |
| const Standard_Integer | aMode = 0 |
||
| ) |
returns True if <anIObj> has been stored in the list.
| Standard_Boolean AIS_LocalContext::ImmediateRemove | ( | const Handle< AIS_InteractiveObject > & | anIObj, |
| const Standard_Integer | aMode = 0 |
||
| ) |
returns True if <anIObj> has been removed from the list.
| void AIS_LocalContext::InitDetected | ( | ) |
| void AIS_LocalContext::InitSelected | ( | ) |
| Standard_Boolean AIS_LocalContext::IsDisplayed | ( | const Handle< AIS_InteractiveObject > & | anObject | ) | const |
| Standard_Boolean AIS_LocalContext::IsDisplayed | ( | const Handle< AIS_InteractiveObject > & | anObject, |
| const Standard_Integer | aMode | ||
| ) | const |
| Standard_Boolean AIS_LocalContext::IsHilighted | ( | const Handle< AIS_InteractiveObject > & | anObject | ) | const |
| Standard_Boolean AIS_LocalContext::IsHilighted | ( | const Handle< AIS_InteractiveObject > & | anObject, |
| Standard_Boolean & | WithColor, | ||
| Quantity_NameOfColor & | HiCol | ||
| ) | const |
| Standard_Boolean AIS_LocalContext::IsImmediateModeOn | ( | ) | const |
| Standard_Boolean AIS_LocalContext::IsIn | ( | const Handle< AIS_InteractiveObject > & | anObject | ) | const |
| Standard_Boolean AIS_LocalContext::IsSelected | ( | const Handle< AIS_InteractiveObject > & | aniobj | ) | const |
| Standard_Boolean AIS_LocalContext::IsSelected | ( | const Handle< SelectMgr_EntityOwner > & | anOwner | ) | const |
| const SelectMgr_ListOfFilter& AIS_LocalContext::ListOfFilter | ( | ) | const |
| Standard_Boolean AIS_LocalContext::Load | ( | const Handle< AIS_InteractiveObject > & | anInteractive, |
| const Standard_Boolean | AllowShapeDecomposition = Standard_True, |
||
| const Standard_Integer | ActivationMode = 0 |
||
| ) |
loads <anInteractive> with nodisplay...
returns true if done
| void AIS_LocalContext::LoadContextObjects | ( | ) |
| const Handle_StdSelect_ViewerSelector3d& AIS_LocalContext::MainSelector | ( | ) | const |
| Standard_Boolean AIS_LocalContext::MoreDetected | ( | ) | const |
| Standard_Boolean AIS_LocalContext::MoreSelected | ( | ) | const |
| AIS_StatusOfDetection AIS_LocalContext::MoveTo | ( | const Standard_Integer | Xpix, |
| const Standard_Integer | Ypix, | ||
| const Handle< V3d_View > & | aview | ||
| ) |
| void AIS_LocalContext::NextDetected | ( | ) |
| void AIS_LocalContext::NextSelected | ( | ) |
| Standard_Integer AIS_LocalContext::PixelTolerance | ( | ) | const |
Returns the pixel tolerance.
| void AIS_LocalContext::Reactivate | ( | ) |
to be called when a upper local context was closed...
useful to put pack the right projector...
| Standard_Boolean AIS_LocalContext::Remove | ( | const Handle< AIS_InteractiveObject > & | aSelectable | ) |
| void AIS_LocalContext::RemoveFilter | ( | const Handle< SelectMgr_Filter > & | aFilter | ) |
| AIS_StatusOfPick AIS_LocalContext::Select | ( | const Standard_Boolean | updateviewer = Standard_True | ) |
returns the number of selected
| AIS_StatusOfPick AIS_LocalContext::Select | ( | const Standard_Integer | XPMin, |
| const Standard_Integer | YPMin, | ||
| const Standard_Integer | XPMax, | ||
| const Standard_Integer | YPMax, | ||
| const Handle< V3d_View > & | aView, | ||
| const Standard_Boolean | updateviewer = Standard_True |
||
| ) |
| AIS_StatusOfPick AIS_LocalContext::Select | ( | const TColgp_Array1OfPnt2d & | Polyline, |
| const Handle< V3d_View > & | aView, | ||
| const Standard_Boolean | updateviewer = Standard_True |
||
| ) |
| const Handle_Standard_Transient& AIS_LocalContext::SelectedApplicative | ( | ) | const |
| Handle_AIS_InteractiveObject AIS_LocalContext::SelectedInteractive | ( | ) | const |
| Handle_SelectMgr_EntityOwner AIS_LocalContext::SelectedOwner | ( | ) | const |
| const TopoDS_Shape& AIS_LocalContext::SelectedShape | ( | ) | const |
| const TColStd_ListOfInteger& AIS_LocalContext::SelectionModes | ( | const Handle< AIS_InteractiveObject > & | anObject | ) | const |
| const TCollection_AsciiString& AIS_LocalContext::SelectionName | ( | ) | const |
| Standard_Real AIS_LocalContext::Sensitivity | ( | ) | const |
Returns the selection sensitivity value.
| StdSelect_SensitivityMode AIS_LocalContext::SensitivityMode | ( | ) | const |
Returns the selection sensitivity mode.
| void AIS_LocalContext::SetAutomaticHilight | ( | const Standard_Boolean | aStatus | ) |
if <aStatus> = True , the shapes or subshapes detected
by the selector will be automatically hilighted in the
main viewer.
Else the user has to manage the detected shape outside the
Shape Selector....
| void AIS_LocalContext::SetContext | ( | const Handle< AIS_InteractiveContext > & | aCtx | ) |
| void AIS_LocalContext::SetDisplayPriority | ( | const Handle< AIS_InteractiveObject > & | anObject, |
| const Standard_Integer | Prior | ||
| ) |
| void AIS_LocalContext::SetPixelTolerance | ( | const Standard_Integer | aPrecision = 2 | ) |
Define the current selection sensitivity for
this local context according to the view size.
| void AIS_LocalContext::SetSelected | ( | const Handle< AIS_InteractiveObject > & | anobj, |
| const Standard_Boolean | updateviewer = Standard_True |
||
| ) |
useful to update selection with objects coming from
Collector or stack
| void AIS_LocalContext::SetSensitivity | ( | const Standard_Real | aPrecision | ) |
Define the current selection sensitivity for
this local context according to the view size.
| void AIS_LocalContext::SetSensitivityMode | ( | const StdSelect_SensitivityMode | aMode | ) |
Sets the selection sensitivity mode. SM_WINDOW mode <br>
uses the specified pixel tolerance to compute the sensitivity
value, SM_VIEW mode allows to define the sensitivity manually.
| void AIS_LocalContext::SetShapeDecomposition | ( | const Handle< AIS_InteractiveObject > & | aStoredObject, |
| const Standard_Boolean | aStatus | ||
| ) |
| void AIS_LocalContext::SetZLayer | ( | const Handle< AIS_InteractiveObject > & | theIObj, |
| const Standard_Integer | theLayerId | ||
| ) |
Set Z layer id for interactive object. The layer can be <br>
specified for displayed object only. The Z layers can be used to display
temporarily presentations of some object in front of the other objects
in the scene. The ids for Z layers are generated by V3d_Viewer.
Note that Z layers differ from under-/overlayer in V3d_View:
under-/overlayer are intended for specific 2D drawings that appear
behind/in front of all 3D presentations, while SetZLayer() method
applies to regular 3D presentations and does not imply any specific
drawing methods.
| AIS_StatusOfPick AIS_LocalContext::ShiftSelect | ( | const Standard_Boolean | updateviewer = Standard_True | ) |
| AIS_StatusOfPick AIS_LocalContext::ShiftSelect | ( | const Standard_Integer | XPMin, |
| const Standard_Integer | YPMin, | ||
| const Standard_Integer | XPMax, | ||
| const Standard_Integer | YPMax, | ||
| const Handle< V3d_View > & | aView, | ||
| const Standard_Boolean | updateviewer = Standard_True |
||
| ) |
| AIS_StatusOfPick AIS_LocalContext::ShiftSelect | ( | const TColgp_Array1OfPnt2d & | Polyline, |
| const Handle< V3d_View > & | aView, | ||
| const Standard_Boolean | updateviewer = Standard_True |
||
| ) |
| const TColStd_ListOfInteger& AIS_LocalContext::StandardModes | ( | ) | const |
| void AIS_LocalContext::SubIntensityOff | ( | const Handle< AIS_InteractiveObject > & | anObject | ) |
| void AIS_LocalContext::SubIntensityOn | ( | const Handle< AIS_InteractiveObject > & | anObject | ) |
| void AIS_LocalContext::Terminate | ( | const Standard_Boolean | updateviewer = Standard_True | ) |
| void AIS_LocalContext::Unhilight | ( | const Handle< AIS_InteractiveObject > & | anObject | ) |
| Standard_Boolean AIS_LocalContext::UnhilightLastDetected | ( | const Handle< V3d_View > & | aView | ) |
returns True if something was done...
| void AIS_LocalContext::UnhilightPicked | ( | const Standard_Boolean | updateviewer = Standard_True | ) |
| void AIS_LocalContext::UnloadContextObjects | ( | ) |
| void AIS_LocalContext::UpdateConversion | ( | ) |
| void AIS_LocalContext::UpdateSelected | ( | const Standard_Boolean | updateviewer = Standard_True | ) |
| void AIS_LocalContext::UpdateSelected | ( | const Handle< AIS_InteractiveObject > & | anobj, |
| const Standard_Boolean | updateviewer = Standard_True |
||
| ) |
Part of advanced selection highlighting mechanism.
If no owners belonging to anobj are selected, calls anobj->ClearSelected(),
otherwise calls anobj->HilightSelected(). This method can be used to avoid
redrawing the whole selection belonging to several Selectable Objects.
| void AIS_LocalContext::UpdateSort | ( | ) |
|
friend |
Changes the status of a temporary object. It will be <br>
kept at the neutral point, i.e. put in the list of
displayed objects along withwith its temporary
attributes. These include display mode and
selection mode, for example.
Returns true if done.
inWhichLocal gives the local context in which anIObj
is displayed. By default, the index -1 refers to the last
Local Context opened.
1.8.5