Circle Class Reference
[Shapes]

Circle shape node. More...

#include <Circle.h>

Inheritance diagram for Circle:

Inheritance graph
[legend]
Collaboration diagram for Circle:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Circle (float radius, int steps)
 Constructs a new Circle of given radius and resolution.
 Circle (const std::string &name, float radius, int steps)
 Constructs a new Circle of given radius and resolution.
 Circle (const Circle &copy)
 Copy constructor for Circle.
Shape::ShapeType type ()
 Returns the Circle's type.
float radius ()
 Returns the Circle's radius.

Protected Member Functions

void draw ()
 Called when a Node is to be drawn.


Detailed Description

Circle shape node.

The Circle class is type of Shape which draws a circle of a given radius with a given resolution.


Constructor & Destructor Documentation

Circle::Circle ( float  radius,
int  steps 
)

Constructs a new Circle of given radius and resolution.

Parameters:
radius radius of the circle
steps number of points along the edge of the circle

Circle::Circle ( const std::string &  name,
float  radius,
int  steps 
)

Constructs a new Circle of given radius and resolution.

Parameters:
name name of the Node
radius radius of the circle
steps number of points along the edge of the circle


Member Function Documentation

Shape::ShapeType Circle::type (  )  [inline, virtual]

Returns the Circle's type.

Returns:
returns the type Shape::ST_CIRCLE

Reimplemented from Shape.

void Circle::draw (  )  [protected, virtual]

Called when a Node is to be drawn.

Override this method in subclasses to tell a Node how to draw itself on the screen. Drawing should take place in object space (the parent Nodes will apply their own transforms to the rendering stack).

Reimplemented from Node.


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

Generated on Fri Feb 22 15:56:20 2008 for Scene2D by  doxygen 1.5.5