KSD_EXPORT_CLASSclass TCircle

A circle shape object.

Inheritance:


Public Methods

[more] TCircle()
[more] TCircle(int x, int y, unsigned int radius)
Create a circle centered at (x, y) with the given radius
[more] TCircle(const TPoint2D& point, unsigned int radius)
Create a circle centered at point with the given radius
[more] TCircle(const TPoint2D& center, const TPoint2D& point)
Create a circle centered at center, with the given point on its edge
[more]void SetCenter(const TPoint2D& V)
Set the center of the circle
[more]void SetCenter(int X, int Y)
Set the center of the cirlce
[more]void SetRadius(int r)
Set the radius of the circle
[more]TPoint2D GetCenter() const
Returns the center of the circle
[more]unsigned int GetRadius() const
Returns the radius of the circle
[more]void CreateCircle(const TPoint2D& center, const TPoint2D& point)
Creates a circle described by its center and a point on its edge
[more]void Set(const TPoint2D& _center, unsigned int _radius)
Sets circle attributes


Inherited from TShape2D:

Public Methods

ovirtual bool IsInside(const TPoint2D& V) const
ovirtual void Move(int X, int Y)
ovirtual void MoveTo(int X, int Y)
ovoid Move(const TPoint2D& p)
ovoid MoveTo(const TPoint2D& p)
ovirtual void Visit(Visitor*)

Public Members

class Visitor
Used to add new operations to a shape without modifying the source


Documentation

A circle shape object. Used to describe circular regions in screen space. It is not advised that you use it for anything more complex because TCircle is optimized for speed and size, not precision.
o TCircle()

o TCircle(int x, int y, unsigned int radius)
Create a circle centered at (x, y) with the given radius

o TCircle(const TPoint2D& point, unsigned int radius)
Create a circle centered at point with the given radius

o TCircle(const TPoint2D& center, const TPoint2D& point)
Create a circle centered at center, with the given point on its edge

ovoid SetCenter(const TPoint2D& V)
Set the center of the circle

ovoid SetCenter(int X, int Y)
Set the center of the cirlce

ovoid SetRadius(int r)
Set the radius of the circle

oTPoint2D GetCenter() const
Returns the center of the circle

ounsigned int GetRadius() const
Returns the radius of the circle

ovoid CreateCircle(const TPoint2D& center, const TPoint2D& point)
Creates a circle described by its center and a point on its edge

ovoid Set(const TPoint2D& _center, unsigned int _radius)
Sets circle attributes


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.