KSD_EXPORT_CLASSclass TShape2D
A generic interface to a 2D dimensional shape.
Inheritance:
Public Methods
-
virtual bool IsInside(const TPoint2D& V) const = 0
- Returns true if the point is inside of this shape
-
virtual void Move(int X, int Y) = 0
- Move the shape by the amount given.
-
virtual void MoveTo(int X, int Y) = 0
- Moves the shape to the given lcation
-
void Move(const TPoint2D& p)
- Move the shape by the amount given.
-
void MoveTo(const TPoint2D& p)
- Moves the shape to the given lcation
-
virtual void Visit(Visitor*) = 0
- Shape will perform visitor operation on self
Public Members
-
class Visitor
- Used to add new operations to a shape without modifying the source
Documentation
A generic interface to a 2D dimensional shape. Created for dealing in
screen space. The precision of the shape library is not suited to
complex physical simulations.
- virtual bool IsInside(const TPoint2D& V) const = 0
- Returns true if the point is inside of this shape
- virtual void Move(int X, int Y) = 0
- Move the shape by the amount given. This works in an incremental
fashion.
- virtual void MoveTo(int X, int Y) = 0
- Moves the shape to the given lcation
- void Move(const TPoint2D& p)
- Move the shape by the amount given. This works in an incremental
fashion.
- void MoveTo(const TPoint2D& p)
- Moves the shape to the given lcation
- virtual void Visit(Visitor*) = 0
- Shape will perform visitor operation on self
- Direct child classes:
- TRect
TLine
TCircle
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.