#include <Graphic2d_Marker.hxx>
Inheritance diagram for Graphic2d_Marker:
Public Member Functions | |
Standard_EXPORT | Graphic2d_Marker (const Handle(Graphic2d_GraphicObject)&aGraphicObject, const Quantity_Length X, const Quantity_Length Y) |
Creates a pixel point marker at position <x>,<y> . | |
Standard_EXPORT | Graphic2d_Marker (const Handle(Graphic2d_GraphicObject)&aGraphicObject, 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) |
Creates the predefined marker index <anindex> at position <x>,<y> and size <awidth>,<aheight>. Angle is measured counterclockwise with 0 radian at 3 o'clock. . | |
Standard_EXPORT void | Position (Quantity_Length &X, Quantity_Length &Y) const |
returns the coordinates of the position of the marker | |
Standard_EXPORT void | Size (Quantity_Length &aW, Quantity_Length &aH) const |
returns the width and height of the marker | |
Standard_EXPORT Standard_Integer | Index () const |
returns the index of marker in the map of markers | |
Standard_EXPORT Quantity_PlaneAngle | Angle () const |
returns the angle of the marker | |
virtual Standard_EXPORT void | Save (Aspect_FStream &aFStream) const |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Protected Member Functions | |
Standard_EXPORT void | Draw (const Handle(Graphic2d_Drawer)&aDrawer) |
Draws the marker <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 the marker <me> is picked, Standard_False if not. Warning: Checks only if the point <x>, <y> is in the boundary rectangle of <me> . | |
virtual Standard_EXPORT void | DrawVertex (const Handle(Graphic2d_Drawer)&aDrawer, const Standard_Integer anIndex) |
Draws the vertex <avertex> of the primitive <me>. . | |
Private Attributes | |
Standard_Integer | myMarkIndex |
Standard_ShortReal | myX |
Standard_ShortReal | myY |
Standard_ShortReal | myWidth |
Standard_ShortReal | myHeight |
Standard_ShortReal | myAngle |
|
|
|
|
|
|
|
Implements Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Primitive. |
|
Reimplemented from Graphic2d_Line. |
|
|
|
Implements Graphic2d_Primitive. |
|
|
|
Reimplemented from Graphic2d_Line. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|