Open CASCADE Technology
6.5.4
|
The primitive EllipsMarker
Every marker takes a reference point as an argument in
its constructor. CircleMarker and EllipsMarker take
another point as the center and PolylineMarker takes the
first point of its list as its origin.
The coordinates of the centre or origin point are offsets
with respect to the reference point.
#include <Graphic2d_EllipsMarker.hxx>
Public Member Functions | |
Graphic2d_EllipsMarker (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length aXPosition, const Quantity_Length aYPosition, const Quantity_Length X, const Quantity_Length Y, const Quantity_Length MajorRadius, const Quantity_Length MinorRadius, const Quantity_PlaneAngle anAngle) | |
Creates an ellipse marker with a reference point. The reference point is <aXPosition>, <aYPosition>. The center is <X>, <Y>. Angles are measured counterclockwise with 0 radian at 3 o'clock. Warning: Raises EllipsDefinitionError if the major radius or the minor radius is null. | |
void | Center (Quantity_Length &X, Quantity_Length &Y) const |
returns the coordinates of center | |
Quantity_Length | MajorRadius () const |
returns the radius of the ellipse marker | |
Quantity_Length | MinorRadius () const |
returns the radius of the ellipse marker | |
Quantity_PlaneAngle | Angle () const |
returns the angle of the ellipse | |
virtual void | Save (Aspect_FStream &aFStream) const |
Static Public Member Functions | |
static void | Retrieve (Aspect_IFStream &anIFStream, const Handle< Graphic2d_GraphicObject > &aGraphicObject) |
Protected Member Functions | |
void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
Draws the ellipse <me>. | |
virtual void | DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
Draws element <anIndex> of the ellips marker <me>. | |
virtual void | DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
Draws vertex <anIndex> of the ellips 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 ellipse <me> is picked, Standard_False if not. |
Graphic2d_EllipsMarker::Graphic2d_EllipsMarker | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
const Quantity_Length | aXPosition, | ||
const Quantity_Length | aYPosition, | ||
const Quantity_Length | X, | ||
const Quantity_Length | Y, | ||
const Quantity_Length | MajorRadius, | ||
const Quantity_Length | MinorRadius, | ||
const Quantity_PlaneAngle | anAngle | ||
) |
void Graphic2d_EllipsMarker::Center | ( | Quantity_Length & | X, |
Quantity_Length & | Y | ||
) | const |
void Graphic2d_EllipsMarker::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
virtual void Graphic2d_EllipsMarker::DrawElement | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
const Standard_Integer | anIndex | ||
) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
virtual void Graphic2d_EllipsMarker::DrawVertex | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
const Standard_Integer | anIndex | ||
) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
Standard_Boolean Graphic2d_EllipsMarker::Pick | ( | const Standard_ShortReal | X, |
const Standard_ShortReal | Y, | ||
const Standard_ShortReal | aPrecision, | ||
const Handle< Graphic2d_Drawer > & | aDrawer | ||
) | [protected, virtual] |
Implements Graphic2d_Primitive.
static void Graphic2d_EllipsMarker::Retrieve | ( | Aspect_IFStream & | anIFStream, |
const Handle< Graphic2d_GraphicObject > & | aGraphicObject | ||
) | [static] |
virtual void Graphic2d_EllipsMarker::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.