-- Modifications in Management of hilight of detected entities
-- VTN 23/11/99 BUC60614 Avoid to crash because
-- myStdFilters array is too short.
--- GG : BUC60688 25/05/00 Add SetSensitivity() methods
--- GG : IMP150501 Remove oboslete method DragTo
--- (See AIS_InteractiveContext)
--- ZSV : IMP160701 Add InitDetected(),MoreDetected(),NextDetected(),
--- DetectedCurrentShape(),DetectedCurrentObject()
--- methods
-
class LocalContext from AIS inherits TShared from MMgt
Shape from TopoDS,
View from V3d,
PresentationManager3d from PrsMgr,
- Projector from Select3D,
IndexedMapOfOwner from SelectMgr,
EntityOwner from SelectMgr,
OrFilter from SelectMgr,
Terminate(me: mutable; updateviewer : Boolean from Standard = Standard_True);
- HasSameProjector(me;aPrj:Projector from Select3D)
- returns Boolean from Standard;
- ---Purpose: 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)....
-
Reactivate(me:mutable);
---Purpose: to be called when a upper local context was closed...
-- useful to put pack the right projector...
HasShape(me) returns Boolean from Standard;
---Purpose: returns TRUE if the detected entity is a shape
-- coming from a Decomposition of an element.
+ HasSelectedShape(me) returns Boolean from Standard;
+ ---Purpose: returns true if current selection is not empty
+ -- and the owner of selected object contains a shape.
+ -- This method does not take into account decomposition
+ -- status of detected shape.
SelectedShape(me) returns Shape from TopoDS;
SelectedOwner(me) returns EntityOwner from SelectMgr;
anObject: InteractiveObject from AIS;
Prior : Integer from Standard);
- SetZLayer( me : mutable;
- theIObj : InteractiveObject from AIS;
- theLayerId : Integer from Standard );
- ---Purpose: Set Z layer id for interactive object. The layer can be
- -- 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.
-
- GetZLayer( me;
- theIObj : InteractiveObject from AIS )
- returns Integer from Standard;
- ---Purpose: Get Z layer id set for displayed interactive object.
- -- If the object doesn't exists in context or has no computed presentations,
- -- the method returns -1.
-
DisplayedObjects(me;theMapToFill : in out MapOfTransient from TColStd)
returns Integer from Standard;
WithColor : out Boolean from Standard;
HiCol : out NameOfColor from Quantity)
returns Boolean from Standard;
-
- SetSensitivityMode(me : mutable;
- aMode : SensitivityMode from StdSelect) is static;
- ---Level: Public
- ---Purpose: Sets the selection sensitivity mode. SM_WINDOW mode
- -- uses the specified pixel tolerance to compute the sensitivity
- -- value, SM_VIEW mode allows to define the sensitivity manually.
-
- SensitivityMode(me) returns SensitivityMode from StdSelect;
- ---Level: Public
- ---Purpose: Returns the selection sensitivity mode.
-
- SetSensitivity(me:mutable;
- aPrecision: Real from Standard);
- ---Level: Public
- ---Purpose: Define the current selection sensitivity for
- -- this local context according to the view size.
-
- Sensitivity (me) returns Real from Standard;
- ---Level: Public
- ---Purpose: Returns the selection sensitivity value.
SetPixelTolerance(me:mutable;
- aPrecision: Integer from Standard = 2);
+ aPrecision: Real from Standard = 2);
---Level: Public
---Purpose: Define the current selection sensitivity for
-- this local context according to the view size.
- PixelTolerance(me) returns Integer from Standard;
+ PixelTolerance(me) returns Real from Standard;
---Level: Public
---Purpose: Returns the pixel tolerance.
---Category: INTERNAL METHODS;
- UpdateConversion(me:mutable);
-
- UpdateSort(me:mutable);
-
-
- Status(me) returns AsciiString from TCollection is private;
+ Status(me) returns AsciiString from TCollection;
Status(me;anObject : InteractiveObject from AIS)
- returns any LocalStatus from AIS is private;
+ returns any LocalStatus from AIS;
---C++: return const&
UnloadContextObjects(me:mutable);
Process(me : mutable;
- anObject : SelectableObject from SelectMgr;
- WithProj: Boolean from Standard = Standard_True) is static private;
+ anObject : SelectableObject from SelectMgr) is static private;
- Process(me:mutable;
- WithProj: Boolean from Standard = Standard_True) is static private;
+ Process(me:mutable) is static private;
- ActivateStandardModes(me:mutable;anObject: SelectableObject from SelectMgr;
- WithProj: Boolean from Standard = Standard_True) is static private;
+ ActivateStandardModes(me:mutable;anObject: SelectableObject from SelectMgr) is static private;
manageDetected (me : mutable;
thePickOwner : EntityOwner from SelectMgr;
ComesFromDecomposition(me; aPickedIndex : Integer from Standard)
returns Boolean from Standard is static private;
-
- DisplayAreas(me:mutable;aviou:View from V3d);
-
- ClearAreas (me:mutable;
- aView: View from V3d) is static;
- ---Level: Internal
-
HasFilters(me;aType:ShapeEnum from TopAbs)
returns Boolean from Standard is private;
ClearSensitive(me:mutable;aView:View from V3d) is static;
- MainSelector(me) returns any ViewerSelector3d from StdSelect;
+ MainSelector(me) returns ViewerSelector3d from StdSelect;
---C++: inline
---C++: return const&
-- This variable is used by following functions:
-- InitDetected(), MoreDetected(), NextDetected(), DetectedCurrentShape(), DetectedCurrentObject().
-friends
-
- KeepTemporary from InteractiveContext from AIS(me:mutable;anIObj:InteractiveObject from AIS;WhichMode : Integer from Standard = -1)
-
end LocalContext;