-- This will be one of the following:
-- - DS_Displayed: the Interactive Object is
-- displayed in the main viewer;
- -- - DS_Erased: the Interactive Object is erased in the collector;
- -- - DS_FullErased: the Interactive Object is erased
- -- but not in the collector;
+ -- - DS_Erased: the Interactive Object is hidden in main viewer;
-- - DS_Temporary: the Interactive Object is temporarily displayed;
-- - DS_None: the Interactive Object is nowhere displayed.
---Purpose: Stores information about objects in graphic context:
-- - Status Of Display : in the main viewer
- -- in the collector
- -- fully Erased
+ -- hidden in the main viewer
-- - Displayed Modes
-- - Active Selection Modes
-- - is the Interactive Object Current ?
---C++: inline
---Purpose: keeps the information of displayed modes in the
-- main viewer.
- -- (The convention is that the object is displayed
- -- with the mode 0 in the collector...)
-
+
SelectionModes(me) returns ListOfInteger from TColStd;
---C++: return const &
---C++: inline
---Purpose: keeps the active selection modes of the object
-- in the main viewer.
- -- (The convention is that the active selection mode
- -- for an object in the collector is the mode 0).
IsHilighted(me) returns Boolean from Standard;
---C++: inline
// in spite of the selection mode of the interactive object in Natural Point.
#define OCC166
-// An interactive Object being erased in the main viewer and put into collector should have the same selection mode.
-// It impacts the performance!
-#define OCC328
-
static Standard_Boolean AISDebugModeOn()
{
// static OSD_Environment aisdb("AISDEBUGMODE");
if(myWasLastMain)
return myLocalContexts(myCurLocalIndex)->Select(updateviewer);
else
- // picking was done in the collector, special processing is required...
{
myLocalContexts(myCurLocalIndex)->SetSelected(myLastPicked,updateviewer);
return AIS_SOP_OneSelected;
#ifdef OCC9026
if (!found) {
- //now iterate over all shapes loaded into the context (but inside the collector)
SelectMgr_DataMapIteratorOfDataMapOfIntegerSensitive aSensitiveIt (myMainVS->Primitives());
for (; aSensitiveIt.More(); aSensitiveIt.Next()) {
EO = Handle(SelectMgr_EntityOwner)::DownCast (aSensitiveIt.Value()->OwnerId());