#include <Graphic2d_SetOfMarkers.hxx>
Inheritance diagram for Graphic2d_SetOfMarkers:
Public Member Functions | |
Standard_EXPORT | Graphic2d_SetOfMarkers (const Handle(Graphic2d_GraphicObject)&aGraphicObject) |
Creates an empty set of markers in the graphic object <agraphicobject>. . | |
Standard_EXPORT void | Add (const Quantity_Length X, const Quantity_Length Y) |
Add a pixel point marker in the set . | |
Standard_EXPORT void | Add (const Standard_Integer anIndex, const Quantity_Length X, const Quantity_Length Y, const Quantity_Length aWidth, const Quantity_Length anHeight, const Quantity_PlaneAngle anAngle=0.0) |
Add a marker of predefined index <anindex> in the set at position <x>,<y> and size <awidth>,<aheight>. Angle is measured counterclockwise with 0 radian at 3 o'clock. Trigger: Raises MarkerDefinitionError if the marker index is <= 0 or undefined in the MarkMap, or the marker size <aWidth,anHeight> is <= 0. . | |
Standard_EXPORT Standard_Integer | Length () const |
Returns the number of markers in the set. . | |
Standard_EXPORT void | Values (const Standard_Integer aRank, Standard_Integer &anIndex, Quantity_Length &X, Quantity_Length &Y, Quantity_Length &aW, Quantity_Length &aH, Quantity_PlaneAngle &anAngle) const |
Returns the marker type, position, sizes and angle and type from the set at rank <arank>. Warning: For the pixel point marker the returned <anindex> is NULL Trigger: Raises OutOfRange if <arank> is <1 or >Length() . | |
virtual Standard_EXPORT Standard_Boolean | SetElementsSelected () |
Declares that previously highlighted elements will be selected ones. . | |
virtual Standard_EXPORT Standard_Boolean | HasSelectedElements () |
virtual Standard_EXPORT void | ClearSelectedElements () |
Standard_EXPORT const TColStd_MapOfInteger & | GetSelectedElements () const |
Standard_EXPORT void | AddOrRemoveSelected (const Standard_Integer index) |
adds/removes marker to/from selection map. | |
virtual Standard_EXPORT void | Save (Aspect_FStream &aFStream) const |
Standard_EXPORT void | SetHighlightedLimit (const Standard_Integer number) |
sets limit of number elements to be highlighted. | |
Standard_EXPORT void | SetScaledWidth (const Standard_ShortReal width) |
Changes myScaledWidth field. As this value used in detection mechanism it should be reset after view transformation. . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Member Functions | |
Standard_EXPORT void | Draw (const Handle(Graphic2d_Drawer)&aDrawer) |
Draws the set of markers <me>. . | |
virtual Standard_EXPORT void | DrawElement (const Handle(Graphic2d_Drawer)&aDrawer, const Standard_Integer anIndex) |
Draws element <anindex> of the set <me>. . | |
virtual Standard_EXPORT void | DrawPickedElements (const Handle(Graphic2d_Drawer)&aDrawer) |
Draws the all picked elements of the primitive <me>. . | |
virtual Standard_EXPORT void | DrawSelectedElements (const Handle(Graphic2d_Drawer)&aDrawer) |
Draws the all selected elements of the primitive <me>. . | |
virtual Standard_EXPORT void | DrawVertex (const Handle(Graphic2d_Drawer)&aDrawer, const Standard_Integer anIndex) |
Draws vertex <anindex> of the set <me>. . | |
Standard_EXPORT Standard_Boolean | Pick (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal aPrecision, const Handle(Graphic2d_Drawer)&aDrawer) |
Returns Standard_True if one marker of the set <me> is picked, Standard_False if not. Warning: The PickIndex() method returns the rank of the picked marker if any. . | |
virtual Standard_EXPORT Standard_Boolean | Pick (const Standard_ShortReal X1, const Standard_ShortReal Y1, const Standard_ShortReal X2, const Standard_ShortReal Y2, const Handle(Graphic2d_Drawer)&aDrawer, const Graphic2d_PickMode aPickMode) |
Returns Standard_True if the primitive <me> is: included in rectangle (<aPickMode = PM_INCLUDE>), excluded from rectangle (<aPickMode = PM_EXLUDE>), intersected by rectangle (<aPickMode = PM_INTERSECT>), defined by Xmin, Ymin, Xmax, Ymax. Standard_False if not. . | |
virtual Standard_EXPORT Standard_Boolean | PickByCircle (const Standard_ShortReal x, const Standard_ShortReal y, const Standard_ShortReal radius, const Handle(Graphic2d_Drawer)&aDrawer, const Graphic2d_PickMode aPickMode) |
Returns Standard_True if the primitive <me> is picked, Standard_False if not. . | |
Private Member Functions | |
Standard_EXPORT void | DrawElements (const Handle(Graphic2d_Drawer)&aDrawer, const Handle(TShort_HArray1OfShortReal)&x, const Handle(TShort_HArray1OfShortReal)&y) |
Private Attributes | |
TColStd_SequenceOfInteger | myType |
TShort_SequenceOfShortReal | myX |
TShort_SequenceOfShortReal | myY |
TShort_SequenceOfShortReal | myWidth |
TShort_SequenceOfShortReal | myHeight |
TShort_SequenceOfShortReal | myAngle |
Handle_TColStd_HSequenceOfInteger | mySelIndices |
TColStd_MapOfInteger | myMapOfSelected |
Standard_Integer | myHLimit |
Standard_Boolean | mySuppressHigh |
Quantity_Length | myScaledWidth |
|
|
|
|
|
|
|
|
|
Reimplemented from Graphic2d_Primitive. |
|
Implements Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Primitive. |
|
|
|
Reimplemented from Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Primitive. |
|
|
|
Reimplemented from Graphic2d_Line. |
|
Reimplemented from Graphic2d_Primitive. |
|
|
|
Reimplemented from Graphic2d_Primitive. |
|
Implements Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Line. |
|
Reimplemented from Graphic2d_Primitive. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|