Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions
Graphic2d_Ellips Class Reference

The primitive Ellips

#include <Graphic2d_Ellips.hxx>

Inheritance diagram for Graphic2d_Ellips:
Inheritance graph
[legend]

Public Member Functions

 Graphic2d_Ellips (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length X, const Quantity_Length Y, const Quantity_Length MajorRadius, const Quantity_Length MinorRadius, const Quantity_PlaneAngle anAngle)
 Creates an ellipse.
The center is <X>, <Y>.
Angles are measured counterclockwise with 0 radian
at 3 o'clock.

void Center (Quantity_Length &X, Quantity_Length &Y) const
 returns the coordinates of center of the ellipse

Quantity_Length MajorRadius () const
 returns the radius of the ellipse

Quantity_Length MinorRadius () const
 returns the radius of the ellipse

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 circle <me>.

virtual void DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex)
 Draws vertex <anIndex> of the circle <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.


Constructor & Destructor Documentation


Member Function Documentation

void Graphic2d_Ellips::Draw ( const Handle< Graphic2d_Drawer > &  aDrawer) [protected, virtual]

Implements Graphic2d_Primitive.

virtual void Graphic2d_Ellips::DrawElement ( const Handle< Graphic2d_Drawer > &  aDrawer,
const Standard_Integer  anIndex 
) [protected, virtual]

Reimplemented from Graphic2d_Primitive.

virtual void Graphic2d_Ellips::DrawVertex ( const Handle< Graphic2d_Drawer > &  aDrawer,
const Standard_Integer  anIndex 
) [protected, virtual]

Reimplemented from Graphic2d_Primitive.

Implements Graphic2d_Primitive.

static void Graphic2d_Ellips::Retrieve ( Aspect_IFStream anIFStream,
const Handle< Graphic2d_GraphicObject > &  aGraphicObject 
) [static]
virtual void Graphic2d_Ellips::Save ( Aspect_FStream aFStream) const [virtual]

Reimplemented from Graphic2d_Line.


The documentation for this class was generated from the following file: