KSD_EXPORT_CLASSclass TShape2D

A generic interface to a 2D dimensional shape.

Inheritance:


Public Methods

[more]virtual bool IsInside(const TPoint2D& V) const = 0
Returns true if the point is inside of this shape
[more]virtual void Move(int X, int Y) = 0
Move the shape by the amount given.
[more]virtual void MoveTo(int X, int Y) = 0
Moves the shape to the given lcation
[more]void Move(const TPoint2D& p)
Move the shape by the amount given.
[more]void MoveTo(const TPoint2D& p)
Moves the shape to the given lcation
[more]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.
ovirtual bool IsInside(const TPoint2D& V) const = 0
Returns true if the point is inside of this shape

ovirtual void Move(int X, int Y) = 0
Move the shape by the amount given. This works in an incremental fashion.

ovirtual void MoveTo(int X, int Y) = 0
Moves the shape to the given lcation

ovoid Move(const TPoint2D& p)
Move the shape by the amount given. This works in an incremental fashion.

ovoid MoveTo(const TPoint2D& p)
Moves the shape to the given lcation

ovirtual 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++.