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_Circle Class Reference

Constructs a primitive Circle

#include <Graphic2d_Circle.hxx>

Inheritance diagram for Graphic2d_Circle:
Inheritance graph
[legend]

Public Member Functions

 Graphic2d_Circle (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length X, const Quantity_Length Y, const Quantity_Length Radius)
 Creates a complete circle.
The center is <X>, <Y>.
The radius is <Radius>.
Warning: Raises CircleDefinitionError if the
radius is null.

 Graphic2d_Circle (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const Quantity_Length X, const Quantity_Length Y, const Quantity_Length Radius, const Quantity_PlaneAngle Alpha, const Quantity_PlaneAngle Beta)
 Creates an arc.
The center is <X>, <Y>.
The radius is <Radius>.
Angles are measured counterclockwise with 0 radian
at 3 o'clock.
Warning: Raises CircleDefinitionError if the
radius is null.

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

Quantity_Length Radius () const
 returns the radius of this circle

Quantity_PlaneAngle FirstAngle () const
 returns the first angle of the arc

Quantity_PlaneAngle SecondAngle () const
 returns the second angle of the arc

void SetCenter (const Quantity_Length X, const Quantity_Length Y)
 defines the coordinates of center of the circle

void SetRadius (const Quantity_Length theR)
 defines the radius of this circle

void SetAngles (const Quantity_PlaneAngle Alpha, const Quantity_PlaneAngle Beta)
 defines the angles of the arc

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 circle <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 circle <me> is picked,
Standard_False if not.


Constructor & Destructor Documentation


Member Function Documentation

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

Implements Graphic2d_Primitive.

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

Reimplemented from Graphic2d_Primitive.

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

Reimplemented from Graphic2d_Primitive.

Implements Graphic2d_Primitive.

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

Reimplemented from Graphic2d_Line.


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