# Visualization
TKV2d
AIS2D

# AIS2D_InteractiveContext Class Reference

The InteractiveContext class allows you to manage
graphic behavior and selection of Interactive Objects
in one or more viewers.
.

`#include <AIS2D_InteractiveContext.hxx>`

## Public Member Functions

Standard_EXPORT | AIS2D_InteractiveContext (const Handle(V2d_Viewer)&MainViewer)
| Initiates <mainviewer> .
Standard_EXPORT | AIS2D_InteractiveContext (const Handle(V2d_Viewer)&MainViewer, const Handle(V2d_Viewer)&aCollector)
| Initiates the principal viewer and Collector(trash) viewer together .
Standard_EXPORT void | Display (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean UpdateVwr=Standard_True)
| Display when no local context is opened. if <aniobj> has no proper display mode, the defaut display mode of the session is used Same for the selection Mode (by default =0) .
Standard_EXPORT void | Display (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Integer aDispMode, const Standard_Integer aSelectMode, const Standard_Boolean UpdateVwr=Standard_True, const Standard_Boolean AllowDecomp=Standard_True)

Use only if a local context is opened. Displays the
<adispmode> the presentation of interactive object,
activates the selection mode <aselectmode> if
<updatevwr> = Standard_False, the object is
displayed but no viewer will be updated; CONVENTION :
<aselectmode> = -1 means no activation for <aniobj>
: it will be displayed but not selectable. (Option
only available for local context...)
<allowdecomp> = true means that <aniobj> is
able to have subshapes detected by selection mechanisms.
2 conditions: <aniobj> must be able to give a shape
selection modes fit the AIS2D_Shape
selection modes ( 1->vertex, 2->edges, 3->wires...)
.

Standard_EXPORT void | Load (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Integer SelMode=-1, const Standard_Boolean AllowDecomp=Standard_False)
| Available when opened local contexts only; option to load in the selector objects which will be selectable but not displayed. Nevertheless, they will be hilighted when detected by the selector. ex : be able to select center of a line without displaying all centers before selection process .
Standard_EXPORT void | Erase (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean UpdateVwr=Standard_True, const Standard_Boolean PutInCollector=Standard_True)
| Erases presentations in current local context, or failing that, in other local contexts which allow erasing. If <putincollector> is false, the object is erased but not put in the Collector. .
Standard_EXPORT void | EraseMode (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Integer aMode, const Standard_Boolean UpdateVwr=Standard_True)
| Selects an erase mode. Used only if more than one mode is displayed in the main viewer. If aMode is the Prs used by default, no erase mode is selected. .
Standard_EXPORT void | EraseAll (const Standard_Boolean PutInCollector=Standard_True, const Standard_Boolean updateVwr=Standard_True)
| Every erased object goes into the Collector viewer .
Standard_EXPORT void | DisplayAll (const Standard_Boolean OnlyFromCollector=Standard_True, const Standard_Boolean updateVwr=Standard_True)
| Displays all erased objects, in other words, all objects in the Collector viewer. .
Standard_EXPORT void | EraseSelected (const Standard_Boolean PutInCollector=Standard_True, const Standard_Boolean updateVwr=Standard_True)
| Erases selected objects if a local context is open. Erases current objects if there is no active local context. If a local context is open and if <updatevwr> equals Standard_False, the presentation of the Interactive Object activates the selection mode; the object is displayed but no viewer will be updated. .
Standard_EXPORT void | DisplaySelected (const Standard_Boolean updateVwr=Standard_True)
| Displays or erases selected objects if a local context is open. If no active local context is found, only current objects can be displayed or erased. .
Standard_EXPORT Standard_Boolean | KeepTemporary (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Integer InWhichLocal=-1)
| Changes the status of a temporary object it will be -- kept at the neutral point, i.e. put in the list of displayed objects, with its temporary attributes (displaymode,selection mode) returns true if done -- inWhichLocal means that gives the local context in which <aniobj> is displayed. By default, -1 means the last opened one .
Standard_EXPORT void | Redisplay (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean updateVwr=Standard_True, const Standard_Boolean allModes=Standard_False)
| Forces Recompute of the seen presentations of the object; if <allmodes>= True -> recomputes all the presentations . .
Standard_EXPORT Standard_Boolean | IsCurrent (const Handle(AIS2D_InteractiveObject)&anIObj) const
| Finds the current selected entity <aniobj> in Neutral Point. .
Standard_EXPORT Standard_Boolean | IsSelected (const Handle(AIS2D_InteractiveObject)&anIObj) const
| Confirms selection. Returns true if <aniobj> is selected in the interactive context .
Standard_EXPORT void | Highlight (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean updateVwr=Standard_True)
| Updates the display in the viewer to take dynamic detection into account. If a local context is open and if <updatevwr> equals Standard_False, the presentation of the Interactive Object activates the selection mode; the object is displayed but no viewer will be updated. .
Standard_EXPORT void | HighlightWithColor (const Handle(AIS2D_InteractiveObject)&anIObj, const Quantity_NameOfColor aCol, const Standard_Boolean updateVwr=Standard_True)
| Changes the color of the object in view <aniobj>. It paints this object the color passed as the argument <acol> If a local context is open and if <updatevwr> equals Standard_False, the presentation of the Interactive Object activates the selection mode; the object is displayed but no viewer will be updated. .
Standard_EXPORT void | Unhighlight (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean updateVwr=Standard_True)
| Removes hilighting from the entity <aniobj>. Updates the viewer. If a local context is open and if <updatevwr> equals Standard_False, the presentation of the Interactive Object activates the selection mode; the object is displayed but no viewer will be updated. .
void | SetPrecision (const Standard_Integer aPrec)
| Sets the precision of detection .
Standard_Integer | DetectPrecision () const
| Returns the precision of detection .
Standard_EXPORT void | Place (const Standard_Integer XPix, const Standard_Integer YPix, const Handle(V2d_View)&aView, const Handle(AIS2D_InteractiveObject)&anIO, const Standard_Boolean isTemporary=Standard_False)
| Places object <anio> to the pixel position (XPix, YPix) in the view <aview> is using TransientManager. It's possible to use without preliminary application of Display method. .
Standard_EXPORT void | Drag (const Standard_Integer XPix, const Standard_Integer YPix, const Handle(V2d_View)&aView, const Standard_Boolean isTemporary=Standard_True)
| Places selected objects to the pixel position (XPix, YPix) in the view <aview>. If <istemporary> is True, is used TransientManager. .
Standard_EXPORT AIS2D_StatusOfDetection | MoveTo (const Standard_Integer XPix, const Standard_Integer YPix, const Handle(V2d_View)&aView)
| Relays mouse position in pixels XPix and YPix to the interactive context selectors. This is done by the view <aview> passing this position to the main viewer and updating it. Functions in both Neutral Point and local contexts. .
Standard_EXPORT AIS2D_StatusOfDetection | MoveCircleTo (const Standard_Integer XPix, const Standard_Integer YPix, const Standard_Integer Radius, const Handle(V2d_View)&aView)
| Relays mouse position in circle <XPix, YPix> and <radius> to the interactive context selectors. This is done by the view <aview> passing this position to the main viewer and updating it. Functions in both Neutral Point and local contexts. .
Standard_EXPORT AIS2D_StatusOfDetection | MoveTo (const Standard_Integer Xmin, const Standard_Integer Ymin, const Standard_Integer Xmax, const Standard_Integer Ymax, const Handle(V2d_View)&aView)
| Relays mouse position in rectangle Xmin, Ymin, Xmax, Ymax to the interactive context selectors. This is done by the view <aview> passing this position to the main viewer and updating it. Functions in both Neutral Point and local contexts. .
Standard_EXPORT AIS2D_StatusOfPick | Select (const Standard_Boolean UpdateVwr=Standard_True)
| Stores and hilights the previous detected; Unhilights the previous picked. .
Standard_EXPORT AIS2D_StatusOfPick | ShiftSelect (const Standard_Boolean UpdateVwr=Standard_True)
| adds the last detected to the list of previous picked. if the last detected was already declared as picked, removes it from the Picked List.
Standard_EXPORT AIS2D_StatusOfPick | ShiftSelect (const Standard_Integer XPMin, const Standard_Integer YPMin, const Standard_Integer XPMax, const Standard_Integer YPMax, const Handle(V2d_View)&aView, const Standard_Boolean UpdateVwr=Standard_True)
| rectangle of selection ; adds new detected entities into the picked list, removes the detected entities that were already stored...
Standard_EXPORT void | SetHighlightColor (const Quantity_NameOfColor aCol)
| Allows to set the color used to show highlighted entities, that is, entities picked out by the mouse. .
Standard_EXPORT void | SetSelectionColor (const Quantity_NameOfColor aCol)
| Sets the color used to show selected entities .
Standard_EXPORT void | SetSubIntensityColor (const Quantity_NameOfColor aCol)
| Allows you to set the color used to show that an object is not currently selected .
Standard_Integer | DisplayMode () const
| Returns the display mode setting .
Quantity_NameOfColor | HighlightColor () const
| Returns the name of the color used to show highlighted entities, that is, entities picked out by the mouse .
Quantity_NameOfColor | SelectionColor () const
| Returns the name of the color used to show selected entities. .
Quantity_NameOfColor | SubIntensityColor () const
| Returns the name of the color used to show that an object is not currently selected. .
Standard_EXPORT void | SubIntensityOn (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean UpdateVwr=Standard_True)
| Highlights, and removes highlights from, the displayed object <aniobj> which is displayed at Neutral Point with subintensity color; available only for active local context. There is no effect if there is no local context. .
Standard_EXPORT void | SubIntensityOff (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean UpdateVwr=Standard_True)
| Removes the subintensity option for the entity <aniobj>. .
Standard_Boolean | IsCollectorClosed () const
void | CloseCollector ()
| Allows to close Collector .
Standard_EXPORT void | OpenCollector ()
| Allows to open Collector .
Standard_EXPORT Standard_Integer | OpenLocalContext (const Standard_Boolean UseDispObj=Standard_True, const Standard_Boolean AllowDecomposit=Standard_True, const Standard_Boolean AcceptEraseOfObj=Standard_False)
| Opens a local context of display and selection returns the index of new opened local context. Must be stored and used to close the local context. .
Standard_EXPORT void | CloseLocalContext (const Standard_Integer ind=-1, const Standard_Boolean updateVwr=Standard_True)
| close the current opened local context. Use <ind> to be sure to close the local context you Opened ! if <ind> == -1 the current local context is closed WITHOUT VERIFICATION. if <ind> is greater than the current opened local context, nothing is done.
Standard_EXPORT Standard_Integer | IndexOfCurrentLocal () const
| returns -1 if no opened local context.
Standard_EXPORT void | CloseAllContext (const Standard_Boolean updateVwr=Standard_True)
| Allows to close all local contexts at one go and return to Neutral Point. .
Standard_EXPORT void | SetCurrentObject (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean UpdateVwr=Standard_True)
| Updates the view of the current object in open context. Objects selected when there is no open local context are called current objects; those selected in open local context, selected objects. .
Standard_EXPORT void | AddOrRemoveCurObject (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean UpdateVwr=Standard_True)
| Allows to add a current object to the list of current objects or remove it from that list. Objects selected when there is no open local context are called current objects; those selected in open local context, selected objects. .
Standard_EXPORT void | UpdateCurrent ()
| updates the list of current objects i.e. hilights new current objects, unhighlights old current objects
Standard_EXPORT void | SetOkCurrent ()
| Returns the first current object in the list of current objects. .
Standard_EXPORT void | HighlightCurrent (const Standard_Boolean UpdateVwr=Standard_True)
| Highlights current objects. .
Standard_EXPORT void | UnhighlightCurrent (const Standard_Boolean UpdateVwr=Standard_True)
| Unhighlights current objects. .
Standard_EXPORT void | ClearCurrent (const Standard_Boolean UpdateVwr=Standard_True)
| Empties previous current objects in order to get the current objects detected by the selector using UpdateCurrent. .
Standard_EXPORT void | SetSelected (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean UpdateVwr=Standard_True)
| Puts the selected <aniobj> in the current objects list. .
Standard_EXPORT void | SetSelectedCurrent ()
| Puts the selected list in the current objects list. .
Standard_EXPORT void | UpdateSelected (const Standard_Boolean UpdateVwr=Standard_True)
| Updates the list of selected objects, i.e. hilights new selected objects, removes hilighting from former selected objects. .
Standard_EXPORT void | AddOrRemoveSelected (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean UpdateVwr=Standard_True)
| Allows you to add a selected object <aniobj> to the list of selected objects or remove it from that list. .
Standard_EXPORT void | HighlightSelected (const Standard_Boolean UpdateVwr=Standard_True)
| Highlights selected objects. .
Standard_EXPORT void | UnhighlightSelected (const Standard_Boolean UpdateVwr=Standard_True)
| UnHighlights selected objects. .
Standard_EXPORT void | ClearSelected (const Standard_Boolean UpdateVwr=Standard_True)
| Empties previous selected objects in order to get the selected objects detected by the selector using UpdateSelected. .
Standard_EXPORT Standard_Integer | NbSelected () const
| Returns number of objects selected in local context ( if opened ) or in neutral context .
Standard_EXPORT void | InitSelected ()
| Iteration .
Standard_EXPORT Standard_Boolean | MoreSelected () const
| Iteration .
Standard_EXPORT void | NextSelected ()
| Iteration .
Standard_EXPORT Handle_MMgt_TShared | SelectedObject () const
| Returns current selected object ( see InitSelected() .. ) The object type depends on highlight mode ( OBJECT, PRIMITIVE etc ) .
Standard_EXPORT AIS2D_DisplayStatus | DisplayStatus (const Handle(AIS2D_InteractiveObject)&anIObj) const
| Returns the display status of the entity <aniobj>. .
Standard_EXPORT AIS2D_PToListOfInt | DisplayedModes (const Handle(AIS2D_InteractiveObject)&anIObj) const
| Returns the list of active display modes for the entity <aniobj> .
Standard_EXPORT Standard_Boolean | IsDisplayed (const Handle(AIS2D_InteractiveObject)&anIObj) const
| Returns true if <aniobj> is displayed in the interactive context .
Standard_EXPORT Standard_Boolean | IsDisplayed (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Integer aMode) const
| Returns true if <aniobj> is displayed in the interactive context with <amode> display mode .
Standard_EXPORT Standard_Boolean | IsHighlighted (const Handle(AIS2D_InteractiveObject)&anIObj) const
| Returns true if the Interactive Object <aniobj> is highlighted in the interactive context. .
Standard_EXPORT Standard_Boolean | IsHighlighted (const Handle(AIS2D_InteractiveObject)&anIObj, Standard_Boolean &WithColor, Quantity_NameOfColor &theHiCol) const
| if <aniobj> is highlighted with a specific color <withcolor> will be returned TRUE <thehicol> gives the name of the hilightcolor
Standard_EXPORT Standard_Boolean | IsInCollector (const Handle(AIS2D_InteractiveObject)&anIObj) const
| Returns true if the entity <aniobj> is in the Collector viewer. .
Standard_EXPORT void | Status (const Handle(AIS2D_InteractiveObject)&anIObj, TCollection_ExtendedString &aStatus) const
| Modified the status of the entity <aniobj> .
Standard_EXPORT void | UpdateCurrentViewer ()
| Updates the current viewer, the viewer in Neutral Point. .
Standard_EXPORT void | UpdateCollector ()
| Updates the Collector viewer .
Handle_V2d_Viewer | CurrentViewer () const
| Returns the current viewer. .
Standard_Boolean | HasOpenedContext () const
| Returns true if there is an open context. .
Standard_EXPORT void | DisplayedObjects (AIS2D_ListOfIO &aListOfIO, const Standard_Boolean OnlyFromNeutral=Standard_False) const
| gives the list of displayed objects in the main viewer.
void | SetPickMode (const Graphic2d_PickMode aMode)
| Allows to provide settings for pick mode. .
Graphic2d_PickMode | GetPickMode () const
| Returns the pick mode .
Standard_EXPORT Standard_Integer | HighestIndex () const
Standard_EXPORT Standard_Integer | InitializeColor (const Quantity_Color &aColor)
| Initialize <acolor> in the color map .
Standard_EXPORT Standard_Integer | InitializeStyle (const Aspect_TypeOfLine aType)
| Initialize <atype> in the type map .
Standard_EXPORT Standard_Integer | InitializeWidth (const Aspect_WidthOfLine aWidth)
| Initialize <awidth> in the width map .
Standard_EXPORT Standard_Integer | InitializeMarker (const Aspect_TypeOfMarker aMark)
| Initialize <amark> in the mark map .
Standard_EXPORT Standard_Integer | InitializeFont (const Aspect_FontStyle &aFont)
| Initialize <afont> in the font map .
Standard_EXPORT void | ResetOriginalState (const Standard_Boolean updateVwr=Standard_True)
| to be used only with no opened local context.. displays and activates objects in their original state before local contexts were opened...
Standard_EXPORT void | BeginImmediateDraw (const Handle(V2d_View)&aView)
| switches on immediate mode
Standard_EXPORT void | ImmediateDraw (const Handle(AIS2D_InteractiveObject)&anIObj, const Handle(V2d_View)&aView)
| draws object <aniobj> into immediate mode
Standard_EXPORT void | EndImmediateDraw (const Handle(V2d_View)&aView)
| switches of immediate mode
Standard_EXPORT Standard_Boolean | IsImmediateModeOn (const Handle(V2d_View)&aView) const
| returns true if immediate mode is on
Standard_EXPORT void | SetDetectionMode (const AIS2D_TypeOfDetection mode)
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Protected Attributes

Handle_Aspect_GenericColorMap | myColorMap
Handle_Aspect_TypeMap | myTypeMap
Handle_Aspect_WidthMap | myWidthMap
Handle_Aspect_MarkMap | myMarkMap
Handle_Aspect_FontMap | myFontMap

## Private Member Functions

Standard_EXPORT AIS2D_StatusOfDetection | Detect (const Handle(Graphic2d_DisplayList)&dList, const Handle(V2d_View)&aView)
Standard_EXPORT void | GetDefModes (const Handle(AIS2D_InteractiveObject)&anIObj, Standard_Integer &Dmode, AIS2D_TypeOfDetection &HiMod, Standard_Integer &SelMode) const
| Returns display, highlight and selection modes of the <aniobj> .
Standard_EXPORT void | EraseGlobal (const Handle(AIS2D_InteractiveObject)&anIObj, const Standard_Boolean UpdateVwr=Standard_True, const Standard_Boolean PutInCollector=Standard_True)
Standard_EXPORT void | DrawObject (const Handle(AIS2D_InteractiveObject)&anObj, const Standard_Integer aDispMode)
Standard_EXPORT Standard_Boolean | AvailableToDetect (const Handle(AIS2D_InteractiveObject)&anObj) const
Standard_EXPORT void | DoDetectObject (const Handle(AIS2D_InteractiveObject)&anObj, const Handle(Graphic2d_TransientManager)&aDrawer)
Standard_EXPORT Standard_Boolean | IsIOPicked (const Handle(AIS2D_InteractiveObject)&anObj) const
Standard_EXPORT Standard_Boolean | IsPrimPicked (const Handle(AIS2D_InteractiveObject)&anObj, const Handle(Graphic2d_Primitive)&aPrim) const
Standard_EXPORT Standard_Boolean | IsElemPicked (const Handle(AIS2D_InteractiveObject)&anObj, const Handle(Graphic2d_Primitive)&aPrim, const Standard_Integer ind) const
Standard_EXPORT Standard_Boolean | IsElemSelected (const Handle(AIS2D_InteractiveObject)&anObj, const Handle(Graphic2d_Primitive)&aPrim, const Standard_Integer ind) const
Standard_EXPORT Standard_Boolean | IsIOSelected (const Handle(AIS2D_InteractiveObject)&anObj) const
Standard_EXPORT Standard_Boolean | IsPrimSelected (const Handle(AIS2D_InteractiveObject)&anObj, const Handle(Graphic2d_Primitive)&aPrim) const

## Private Attributes

Handle_V2d_Viewer | myMainVwr
Handle_V2d_Viewer | myCollectorVwr
Standard_Boolean | myIsCollClosed
AIS2D_DataMapOfIOStatus | myObjects
Standard_Integer | myDetectPrecision
Standard_Boolean | myResetDetect
Handle_AIS2D_InteractiveObject | myLastPicked
Handle_AIS2D_InteractiveObject | myLastinMain
Handle_AIS2D_InteractiveObject | myLastinColl
Handle_AIS2D_HSequenceOfIO | mySeqOfDetIO
Handle_AIS2D_HSequenceOfIO | mySeqOfSelIO
AIS2D_TypeOfDetection | myCurDetectMode
Standard_Boolean | myWasLastMain
Graphic2d_PickMode | myPickMode
Quantity_NameOfColor | myHighlightColor
Quantity_NameOfColor | mySelectionColor
Quantity_NameOfColor | mySubIntensity
Standard_Integer | myDisplayMode
AIS2D_DataMapOfLC | myLocalContexts
Standard_Integer | myCurLocalIndex
Handle_V2d_View | myLastMoveView
Standard_Integer | myCurSelected
Standard_Integer | myMaxSelected

## Constructor & Destructor Documentation

Standard_EXPORT AIS2D_InteractiveContext::AIS2D_InteractiveContext | ( | const Handle(V2d_Viewer)& | MainViewer | ) |

Standard_EXPORT AIS2D_InteractiveContext::AIS2D_InteractiveContext | ( | const Handle(V2d_Viewer)& | MainViewer,
|  | const Handle(V2d_Viewer)& | aCollector
| ) |

## Member Function Documentation

Standard_EXPORT void AIS2D_InteractiveContext::AddOrRemoveCurObject | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::AddOrRemoveSelected | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`
| ) |

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::AvailableToDetect | ( | const Handle(AIS2D_InteractiveObject)& | anObj | ) | const`[private]`

Standard_EXPORT void AIS2D_InteractiveContext::BeginImmediateDraw | ( | const Handle(V2d_View)& | aView | ) |

Standard_EXPORT void AIS2D_InteractiveContext::ClearCurrent | ( | const Standard_Boolean | UpdateVwr = `Standard_True` | ) |

Standard_EXPORT void AIS2D_InteractiveContext::ClearSelected | ( | const Standard_Boolean | UpdateVwr = `Standard_True` | ) |

Standard_EXPORT void AIS2D_InteractiveContext::CloseAllContext | ( | const Standard_Boolean | updateVwr = `Standard_True` | ) |

void AIS2D_InteractiveContext::CloseCollector | ( |  | ) | `[inline]`

Standard_EXPORT void AIS2D_InteractiveContext::CloseLocalContext | ( | const Standard_Integer | ind = `-1`,
|  | const Standard_Boolean | updateVwr = `Standard_True`
| ) |

Handle_V2d_Viewer AIS2D_InteractiveContext::CurrentViewer | ( |  | ) | const

Standard_EXPORT AIS2D_StatusOfDetection AIS2D_InteractiveContext::Detect | ( | const Handle(Graphic2d_DisplayList)& | dList,
|  | const Handle(V2d_View)& | aView
| ) | `[private]`

Standard_Integer AIS2D_InteractiveContext::DetectPrecision | ( |  | ) | const`[inline]`

Standard_EXPORT void AIS2D_InteractiveContext::Display | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Integer | aDispMode,
|  | const Standard_Integer | aSelectMode,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`,
|  | const Standard_Boolean | AllowDecomp = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::Display | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::DisplayAll | ( | const Standard_Boolean | OnlyFromCollector = `Standard_True`,
|  | const Standard_Boolean | updateVwr = `Standard_True`
| ) |

Standard_EXPORT AIS2D_PToListOfInt AIS2D_InteractiveContext::DisplayedModes | ( | const Handle(AIS2D_InteractiveObject)& | anIObj | ) | const

Standard_EXPORT void AIS2D_InteractiveContext::DisplayedObjects | ( | AIS2D_ListOfIO & | aListOfIO,
|  | const Standard_Boolean | OnlyFromNeutral = `Standard_False`
| ) | const

Standard_Integer AIS2D_InteractiveContext::DisplayMode | ( |  | ) | const`[inline]`

Standard_EXPORT void AIS2D_InteractiveContext::DisplaySelected | ( | const Standard_Boolean | updateVwr = `Standard_True` | ) |

Standard_EXPORT AIS2D_DisplayStatus AIS2D_InteractiveContext::DisplayStatus | ( | const Handle(AIS2D_InteractiveObject)& | anIObj | ) | const

Standard_EXPORT void AIS2D_InteractiveContext::DoDetectObject | ( | const Handle(AIS2D_InteractiveObject)& | anObj,
|  | const Handle(Graphic2d_TransientManager)& | aDrawer
| ) | `[private]`

Standard_EXPORT void AIS2D_InteractiveContext::Drag | ( | const Standard_Integer | XPix,
|  | const Standard_Integer | YPix,
|  | const Handle(V2d_View)& | aView,
|  | const Standard_Boolean | isTemporary = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::DrawObject | ( | const Handle(AIS2D_InteractiveObject)& | anObj,
|  | const Standard_Integer | aDispMode
| ) | `[private]`

Standard_EXPORT void AIS2D_InteractiveContext::EndImmediateDraw | ( | const Handle(V2d_View)& | aView | ) |

Standard_EXPORT void AIS2D_InteractiveContext::Erase | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`,
|  | const Standard_Boolean | PutInCollector = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::EraseAll | ( | const Standard_Boolean | PutInCollector = `Standard_True`,
|  | const Standard_Boolean | updateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::EraseGlobal | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`,
|  | const Standard_Boolean | PutInCollector = `Standard_True`
| ) | `[private]`

Standard_EXPORT void AIS2D_InteractiveContext::EraseMode | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Integer | aMode,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::EraseSelected | ( | const Standard_Boolean | PutInCollector = `Standard_True`,
|  | const Standard_Boolean | updateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::GetDefModes | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | Standard_Integer & | Dmode,
|  | AIS2D_TypeOfDetection & | HiMod,
|  | Standard_Integer & | SelMode
| ) | const`[private]`

Graphic2d_PickMode AIS2D_InteractiveContext::GetPickMode | ( |  | ) | const`[inline]`

Standard_EXPORT const AIS2D_InteractiveContext::Handle | ( | Standard_Type |  | ) | const

Standard_Boolean AIS2D_InteractiveContext::HasOpenedContext | ( |  | ) | const`[inline]`

Standard_EXPORT Standard_Integer AIS2D_InteractiveContext::HighestIndex | ( |  | ) | const

Standard_EXPORT void AIS2D_InteractiveContext::Highlight | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | updateVwr = `Standard_True`
| ) |

Quantity_NameOfColor AIS2D_InteractiveContext::HighlightColor | ( |  | ) | const`[inline]`

Standard_EXPORT void AIS2D_InteractiveContext::HighlightCurrent | ( | const Standard_Boolean | UpdateVwr = `Standard_True` | ) |

Standard_EXPORT void AIS2D_InteractiveContext::HighlightSelected | ( | const Standard_Boolean | UpdateVwr = `Standard_True` | ) |

Standard_EXPORT void AIS2D_InteractiveContext::HighlightWithColor | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Quantity_NameOfColor | aCol,
|  | const Standard_Boolean | updateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::ImmediateDraw | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Handle(V2d_View)& | aView
| ) |

Standard_EXPORT Standard_Integer AIS2D_InteractiveContext::IndexOfCurrentLocal | ( |  | ) | const

Standard_EXPORT Standard_Integer AIS2D_InteractiveContext::InitializeColor | ( | const Quantity_Color & | aColor | ) |

Standard_EXPORT Standard_Integer AIS2D_InteractiveContext::InitializeFont | ( | const Aspect_FontStyle & | aFont | ) |

Standard_EXPORT Standard_Integer AIS2D_InteractiveContext::InitializeMarker | ( | const Aspect_TypeOfMarker | aMark | ) |

Standard_EXPORT Standard_Integer AIS2D_InteractiveContext::InitializeStyle | ( | const Aspect_TypeOfLine | aType | ) |

Standard_EXPORT Standard_Integer AIS2D_InteractiveContext::InitializeWidth | ( | const Aspect_WidthOfLine | aWidth | ) |

Standard_EXPORT void AIS2D_InteractiveContext::InitSelected | ( |  | ) |

Standard_Boolean AIS2D_InteractiveContext::IsCollectorClosed | ( |  | ) | const`[inline]`

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsCurrent | ( | const Handle(AIS2D_InteractiveObject)& | anIObj | ) | const

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsDisplayed | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Integer | aMode
| ) | const

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsDisplayed | ( | const Handle(AIS2D_InteractiveObject)& | anIObj | ) | const

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsElemPicked | ( | const Handle(AIS2D_InteractiveObject)& | anObj,
|  | const Handle(Graphic2d_Primitive)& | aPrim,
|  | const Standard_Integer | ind
| ) | const`[private]`

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsElemSelected | ( | const Handle(AIS2D_InteractiveObject)& | anObj,
|  | const Handle(Graphic2d_Primitive)& | aPrim,
|  | const Standard_Integer | ind
| ) | const`[private]`

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsHighlighted | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | Standard_Boolean & | WithColor,
|  | Quantity_NameOfColor & | theHiCol
| ) | const

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsHighlighted | ( | const Handle(AIS2D_InteractiveObject)& | anIObj | ) | const

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsImmediateModeOn | ( | const Handle(V2d_View)& | aView | ) | const

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsInCollector | ( | const Handle(AIS2D_InteractiveObject)& | anIObj | ) | const

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsIOPicked | ( | const Handle(AIS2D_InteractiveObject)& | anObj | ) | const`[private]`

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsIOSelected | ( | const Handle(AIS2D_InteractiveObject)& | anObj | ) | const`[private]`

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsPrimPicked | ( | const Handle(AIS2D_InteractiveObject)& | anObj,
|  | const Handle(Graphic2d_Primitive)& | aPrim
| ) | const`[private]`

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsPrimSelected | ( | const Handle(AIS2D_InteractiveObject)& | anObj,
|  | const Handle(Graphic2d_Primitive)& | aPrim
| ) | const`[private]`

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::IsSelected | ( | const Handle(AIS2D_InteractiveObject)& | anIObj | ) | const

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::KeepTemporary | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Integer | InWhichLocal = `-1`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::Load | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Integer | SelMode = `-1`,
|  | const Standard_Boolean | AllowDecomp = `Standard_False`
| ) |

Standard_EXPORT Standard_Boolean AIS2D_InteractiveContext::MoreSelected | ( |  | ) | const

Standard_EXPORT AIS2D_StatusOfDetection AIS2D_InteractiveContext::MoveCircleTo | ( | const Standard_Integer | XPix,
|  | const Standard_Integer | YPix,
|  | const Standard_Integer | Radius,
|  | const Handle(V2d_View)& | aView
| ) |

Standard_EXPORT AIS2D_StatusOfDetection AIS2D_InteractiveContext::MoveTo | ( | const Standard_Integer | Xmin,
|  | const Standard_Integer | Ymin,
|  | const Standard_Integer | Xmax,
|  | const Standard_Integer | Ymax,
|  | const Handle(V2d_View)& | aView
| ) |

Standard_EXPORT AIS2D_StatusOfDetection AIS2D_InteractiveContext::MoveTo | ( | const Standard_Integer | XPix,
|  | const Standard_Integer | YPix,
|  | const Handle(V2d_View)& | aView
| ) |

Standard_EXPORT Standard_Integer AIS2D_InteractiveContext::NbSelected | ( |  | ) | const

Standard_EXPORT void AIS2D_InteractiveContext::NextSelected | ( |  | ) |

Standard_EXPORT void AIS2D_InteractiveContext::OpenCollector | ( |  | ) |

Standard_EXPORT Standard_Integer AIS2D_InteractiveContext::OpenLocalContext | ( | const Standard_Boolean | UseDispObj = `Standard_True`,
|  | const Standard_Boolean | AllowDecomposit = `Standard_True`,
|  | const Standard_Boolean | AcceptEraseOfObj = `Standard_False`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::Place | ( | const Standard_Integer | XPix,
|  | const Standard_Integer | YPix,
|  | const Handle(V2d_View)& | aView,
|  | const Handle(AIS2D_InteractiveObject)& | anIO,
|  | const Standard_Boolean | isTemporary = `Standard_False`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::Redisplay | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | updateVwr = `Standard_True`,
|  | const Standard_Boolean | allModes = `Standard_False`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::ResetOriginalState | ( | const Standard_Boolean | updateVwr = `Standard_True` | ) |

Standard_EXPORT AIS2D_StatusOfPick AIS2D_InteractiveContext::Select | ( | const Standard_Boolean | UpdateVwr = `Standard_True` | ) |

Standard_EXPORT Handle_MMgt_TShared AIS2D_InteractiveContext::SelectedObject | ( |  | ) | const

Quantity_NameOfColor AIS2D_InteractiveContext::SelectionColor | ( |  | ) | const`[inline]`

Standard_EXPORT void AIS2D_InteractiveContext::SetCurrentObject | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::SetDetectionMode | ( | const AIS2D_TypeOfDetection | mode | ) |

Standard_EXPORT void AIS2D_InteractiveContext::SetHighlightColor | ( | const Quantity_NameOfColor | aCol | ) |

Standard_EXPORT void AIS2D_InteractiveContext::SetOkCurrent | ( |  | ) |

void AIS2D_InteractiveContext::SetPickMode | ( | const Graphic2d_PickMode | aMode | ) | `[inline]`

void AIS2D_InteractiveContext::SetPrecision | ( | const Standard_Integer | aPrec | ) | `[inline]`

Standard_EXPORT void AIS2D_InteractiveContext::SetSelected | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::SetSelectedCurrent | ( |  | ) |

Standard_EXPORT void AIS2D_InteractiveContext::SetSelectionColor | ( | const Quantity_NameOfColor | aCol | ) |

Standard_EXPORT void AIS2D_InteractiveContext::SetSubIntensityColor | ( | const Quantity_NameOfColor | aCol | ) |

Standard_EXPORT AIS2D_StatusOfPick AIS2D_InteractiveContext::ShiftSelect | ( | const Standard_Integer | XPMin,
|  | const Standard_Integer | YPMin,
|  | const Standard_Integer | XPMax,
|  | const Standard_Integer | YPMax,
|  | const Handle(V2d_View)& | aView,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`
| ) |

Standard_EXPORT AIS2D_StatusOfPick AIS2D_InteractiveContext::ShiftSelect | ( | const Standard_Boolean | UpdateVwr = `Standard_True` | ) |

Standard_EXPORT void AIS2D_InteractiveContext::Status | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | TCollection_ExtendedString & | aStatus
| ) | const

Quantity_NameOfColor AIS2D_InteractiveContext::SubIntensityColor | ( |  | ) | const`[inline]`

Standard_EXPORT void AIS2D_InteractiveContext::SubIntensityOff | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::SubIntensityOn | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | UpdateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::Unhighlight | ( | const Handle(AIS2D_InteractiveObject)& | anIObj,
|  | const Standard_Boolean | updateVwr = `Standard_True`
| ) |

Standard_EXPORT void AIS2D_InteractiveContext::UnhighlightCurrent | ( | const Standard_Boolean | UpdateVwr = `Standard_True` | ) |

Standard_EXPORT void AIS2D_InteractiveContext::UnhighlightSelected | ( | const Standard_Boolean | UpdateVwr = `Standard_True` | ) |

Standard_EXPORT void AIS2D_InteractiveContext::UpdateCollector | ( |  | ) |

Standard_EXPORT void AIS2D_InteractiveContext::UpdateCurrent | ( |  | ) |

Standard_EXPORT void AIS2D_InteractiveContext::UpdateCurrentViewer | ( |  | ) |

Standard_EXPORT void AIS2D_InteractiveContext::UpdateSelected | ( | const Standard_Boolean | UpdateVwr = `Standard_True` | ) |

## Field Documentation

Handle_V2d_Viewer AIS2D_InteractiveContext::myCollectorVwr `[private]`

Handle_Aspect_GenericColorMap AIS2D_InteractiveContext::myColorMap `[protected]`

AIS2D_TypeOfDetection AIS2D_InteractiveContext::myCurDetectMode `[private]`

Standard_Integer AIS2D_InteractiveContext::myCurLocalIndex `[private]`

Standard_Integer AIS2D_InteractiveContext::myCurSelected `[private]`

Standard_Integer AIS2D_InteractiveContext::myDetectPrecision `[private]`

Standard_Integer AIS2D_InteractiveContext::myDisplayMode `[private]`

Handle_Aspect_FontMap AIS2D_InteractiveContext::myFontMap `[protected]`

Quantity_NameOfColor AIS2D_InteractiveContext::myHighlightColor `[private]`

Standard_Boolean AIS2D_InteractiveContext::myIsCollClosed `[private]`

Handle_AIS2D_InteractiveObject AIS2D_InteractiveContext::myLastinColl `[private]`

Handle_AIS2D_InteractiveObject AIS2D_InteractiveContext::myLastinMain `[private]`

Handle_V2d_View AIS2D_InteractiveContext::myLastMoveView `[private]`

Handle_AIS2D_InteractiveObject AIS2D_InteractiveContext::myLastPicked `[private]`

AIS2D_DataMapOfLC AIS2D_InteractiveContext::myLocalContexts `[private]`

Handle_V2d_Viewer AIS2D_InteractiveContext::myMainVwr `[private]`

Handle_Aspect_MarkMap AIS2D_InteractiveContext::myMarkMap `[protected]`

Standard_Integer AIS2D_InteractiveContext::myMaxSelected `[private]`

AIS2D_DataMapOfIOStatus AIS2D_InteractiveContext::myObjects `[private]`

Graphic2d_PickMode AIS2D_InteractiveContext::myPickMode `[private]`

Standard_Boolean AIS2D_InteractiveContext::myResetDetect `[private]`

Quantity_NameOfColor AIS2D_InteractiveContext::mySelectionColor `[private]`

Handle_AIS2D_HSequenceOfIO AIS2D_InteractiveContext::mySeqOfDetIO `[private]`

Handle_AIS2D_HSequenceOfIO AIS2D_InteractiveContext::mySeqOfSelIO `[private]`

Quantity_NameOfColor AIS2D_InteractiveContext::mySubIntensity `[private]`

Handle_Aspect_TypeMap AIS2D_InteractiveContext::myTypeMap `[protected]`

Standard_Boolean AIS2D_InteractiveContext::myWasLastMain `[private]`

Handle_Aspect_WidthMap AIS2D_InteractiveContext::myWidthMap `[protected]`

The documentation for this class was generated from the following files:

- AIS2D_InteractiveContext.hxx
- AIS2D_InteractiveContext.lxx