#include <AIS2D_InteractiveObject.hxx>
Inheritance diagram for AIS2D_InteractiveObject:
Public Member Functions | |
Standard_EXPORT | AIS2D_InteractiveObject () |
Initialize the Interactive Object . | |
Handle_Prs2d_Drawer | Attributes () const |
Returns the attributes settings . | |
virtual Standard_EXPORT void | SetAttributes (const Handle(Prs2d_Drawer)&aDrawer) |
Initializes the drawing tool <adrawer> . | |
virtual Standard_EXPORT void | UnsetAttributes () |
Clears settings provided by the drawing tool <adrawer> . | |
Standard_EXPORT void | SetAspect (const Handle(Prs2d_AspectRoot)&anAspect) |
Sets the attributes from Aspect <anaspect> to all primitives appropriate this Aspect. . | |
Standard_EXPORT void | SetAspect (const Handle(Prs2d_AspectRoot)&anAspect, const Handle(Graphic2d_Primitive)&aPrimitive) |
Sets the attributes from Aspect <anaspect> to primitive <aprimitive> Method works only for objects are linked with InteractiveContext . | |
Standard_EXPORT Handle_Prs2d_AspectRoot | GetAspect (const Handle(Graphic2d_Primitive)&aPrimitive) const |
Returns Aspect for primitive <aprimitive> Method works only for objects are linked with InteractiveContext . | |
Standard_EXPORT Standard_Boolean | HasAspect (const Handle(Graphic2d_Primitive)&aPrimitive) const |
Returns true if primitive <aprimitive> is linked with an aspect . | |
Standard_EXPORT Standard_Boolean | HasInteractiveContext () const |
Indicates whether the Interactive Object has a pointer to an interactive context. . | |
Standard_EXPORT Handle_AIS2D_InteractiveContext | GetContext () const |
Returns the context pointer to the interactive context. . | |
virtual Standard_EXPORT void | SetContext (const Handle(AIS2D_InteractiveContext)&aCntx) |
Places a link to <acntx>. The drawer of AIS2D_InteractiveObject is connected to the Default Drawer Of <acntx>. That Means that this method has to be redefined if computations depend on drawer values. . | |
Standard_Integer | DisplayMode () const |
Indicates the display mode of the Interactive Object . | |
Standard_Boolean | HasDisplayMode () const |
Returns True if the Interactive Object has a display mode setting. Otherwise, it is displayed in Neutral Point. . | |
void | SetDisplayMode (const Standard_Integer aMode) |
Allows to provide a setting <amode> for an Interactive Object's display mode. . | |
void | UnsetDisplayMode () |
Removes display mode settings from the Interactive object . | |
virtual Standard_Integer | DefaultDisplayMode () const |
Returns the default display mode. This method is to be implemented when the main mode is not mode 0. . | |
virtual Standard_Boolean | AcceptDisplayMode (const Standard_Integer aMode) const |
Returns true if the class of objects accepts the display mode <amode> . | |
AIS2D_TypeOfDetection | HighlightMode () const |
Returns the setting for highlight mode. . | |
Standard_Boolean | HasHighlightMode () const |
Returns true if the Interactive Object is in highlight mode . | |
void | SetHighlightMode (const AIS2D_TypeOfDetection aMode) |
Allows to provide settings for highlight mode. . | |
void | UnsetHighlightMode () |
Removes settings for highlight mode . | |
virtual AIS2D_TypeOfDetection | DefaultHighlightMode () const |
Returns the default highlight mode . | |
Standard_Integer | SelectionMode () const |
Indicates the selection mode of the Interactive Object . | |
Standard_Boolean | HasSelectionMode () const |
Allows you to change the selection mode of an Interactive Object . | |
void | SetSelectionMode (const Standard_Integer aMode) |
Allows to provide a setting <amode> for an Interactive Object's selection mode. . | |
void | UnsetSelectionMode () |
Removes settings for selection mode . | |
virtual Standard_Integer | DefaultSelectionMode () const |
Returns the default selection mode . | |
Standard_Integer | State () const |
void | SetState (const Standard_Integer aState) |
Standard_EXPORT void | SelectPrimitive (const Standard_Integer anIndex, const Standard_Boolean append) |
Selects primitive with index( TOD_PRIMITIVE mode only ) . | |
virtual Standard_EXPORT void | Save (Aspect_FStream &aFStream) const |
virtual Standard_EXPORT void | Retrieve (Aspect_IFStream &anIFStream) const |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Attributes | |
Handle_Prs2d_Drawer | myDrawer |
AIS2D_TypeOfDetection | myHighlightMode |
Private Member Functions | |
Standard_EXPORT Standard_Boolean | PrimitiveExist (const Prs2d_AspectName aName) const |
Standard_EXPORT void | AddDetectPrim (const Handle(Graphic2d_Primitive)&aPrim, const Standard_Integer anInd) |
Standard_EXPORT void | AddSelectPrim (const Handle(Graphic2d_Primitive)&aPrim, const Standard_Integer anInd) |
Standard_EXPORT void | RemoveSelectPrim (const Handle(Graphic2d_Primitive)&aPrim, const Standard_Integer anInd) |
Standard_EXPORT void | SetSelSeqPrim (const Handle(AIS2D_HSequenceOfPrimArchit)&aSeq) |
Standard_EXPORT void | ClearSeqDetPrim () |
Standard_EXPORT void | ClearSeqSelPrim () |
Standard_EXPORT Handle_AIS2D_HSequenceOfPrimArchit | GetDetectSeqPrim () const |
Standard_EXPORT Handle_AIS2D_HSequenceOfPrimArchit | GetSelectedSeqPrim () const |
Private Attributes | |
Handle_AIS2D_InteractiveContext | myICTX |
Standard_Integer | myDisplayMode |
Standard_Integer | mySelectionMode |
AIS2D_DataMapOfPrimAspects | myAspects |
Standard_Integer | myState |
Handle_AIS2D_HSequenceOfPrimArchit | myDetectedPrimSeq |
Handle_AIS2D_HSequenceOfPrimArchit | mySelectedPrimSeq |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from Graphic2d_GraphicObject. Reimplemented in AIS2D_ProjShape. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|