Open CASCADE Technology
6.5.4
|
The primitive Marker
#include <Graphic2d_Marker.hxx>
Public Member Functions | |
Graphic2d_Marker (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length X, const Quantity_Length Y) | |
Creates a pixel point marker at position <X>,<Y> | |
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. | |
void | Position (Quantity_Length &X, Quantity_Length &Y) const |
returns the coordinates of the position of the marker | |
void | Size (Quantity_Length &aW, Quantity_Length &aH) const |
returns the width and height of the marker | |
Standard_Integer | Index () const |
returns the index of marker in the map of markers | |
Quantity_PlaneAngle | Angle () const |
returns the angle of the marker | |
virtual void | Save (Aspect_FStream &aFStream) const |
Protected Member Functions | |
void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
Draws the marker <me>. | |
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 void | DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
Draws the vertex <aVertex> of the primitive <me>. |
Graphic2d_Marker::Graphic2d_Marker | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
const Quantity_Length | X, | ||
const Quantity_Length | Y | ||
) |
Graphic2d_Marker::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 |
||
) |
Quantity_PlaneAngle Graphic2d_Marker::Angle | ( | ) | const |
void Graphic2d_Marker::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
virtual void Graphic2d_Marker::DrawVertex | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
const Standard_Integer | aVertex | ||
) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
Standard_Integer Graphic2d_Marker::Index | ( | ) | const |
Standard_Boolean Graphic2d_Marker::Pick | ( | const Standard_ShortReal | X, |
const Standard_ShortReal | Y, | ||
const Standard_ShortReal | aPrecision, | ||
const Handle< Graphic2d_Drawer > & | aDrawer | ||
) | [protected, virtual] |
Implements Graphic2d_Primitive.
void Graphic2d_Marker::Position | ( | Quantity_Length & | X, |
Quantity_Length & | Y | ||
) | const |
virtual void Graphic2d_Marker::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
void Graphic2d_Marker::Size | ( | Quantity_Length & | aW, |
Quantity_Length & | aH | ||
) | const |