ContRap-Libraries
|
Class Point2D represents a point. More...
#include <primitives.h>
Public Member Functions | |
Point2D (double x=0.0, double y=0.0) | |
Creates a new point. | |
virtual | ~Point2D () |
Destructor. | |
Point2D (const Point2D &primitive) | |
Copy constructor. | |
Point2D & | operator= (const Point2D &primitive) |
Assignment operator. | |
virtual Type | get_type () const |
Type of the primitive. | |
virtual Primitive2D * | get_copy () |
Copies the current primitive. | |
void | set_style (PointStyle style) |
Sets the style of the point. | |
PointStyle | get_style () const |
Returns the style of the point. | |
Protected Attributes | |
PointStyle | style |
Style of the point. |
Class Point2D represents a point.
crp::Point2D::Point2D | ( | double | x = 0.0 , |
double | y = 0.0 |
||
) | [inline] |
Creates a new point.
The default point style is the cross style.
x | X-Coordinate |
y | Y-Coordinate |
virtual crp::Point2D::~Point2D | ( | ) | [inline, virtual] |
Destructor.
crp::Point2D::Point2D | ( | const Point2D & | primitive | ) | [inline] |
Copy constructor.
primitive | Primitive to copy |
virtual Primitive2D* crp::Point2D::get_copy | ( | ) | [inline, virtual] |
Copies the current primitive.
Implements crp::Primitive2D.
PointStyle crp::Point2D::get_style | ( | ) | const [inline] |
Returns the style of the point.
virtual Type crp::Point2D::get_type | ( | ) | const [inline, virtual] |
Assignment operator.
primitive | Object to assign |
void crp::Point2D::set_style | ( | PointStyle | style | ) | [inline] |
Sets the style of the point.
style | New point style |
PointStyle crp::Point2D::style [protected] |
Style of the point.