/**
* Holds the data that defines a point.
*/
-class RS_PointData
+class PointData
{
public:
- RS_PointData(const Vector & pos)
+ PointData(const Vector & pos)
{
this->pos = pos;
}
- friend std::ostream & operator<<(std::ostream & os, const RS_PointData & pd)
+ friend std::ostream & operator<<(std::ostream & os, const PointData & pd)
{
os << "(" << pd.pos << ")";
return os;
*
* @author Andrew Mustun
*/
-class RS_Point: public RS_AtomicEntity
+class Point: public AtomicEntity
{
public:
- RS_Point(RS_EntityContainer * parent, const RS_PointData & d);
+ Point(EntityContainer * parent, const PointData & d);
- virtual RS_Entity * clone();
+ virtual Entity * clone();
virtual RS2::EntityType rtti() const;
virtual Vector getStartpoint() const;
virtual Vector getEndpoint() const;
virtual void moveStartpoint(const Vector & pos);
- RS_PointData getData() const;
+ PointData getData() const;
virtual VectorSolutions getRefPoints();
Vector getPos();
void setPos(const Vector & pos);
virtual Vector getNearestEndpoint(const Vector & coord, double * dist = NULL);
virtual Vector getNearestPointOnEntity(const Vector & coord,
- bool onEntity = true, double * dist = NULL, RS_Entity ** entity = NULL);
+ bool onEntity = true, double * dist = NULL, Entity ** entity = NULL);
virtual Vector getNearestCenter(const Vector & coord, double * dist = NULL);
virtual Vector getNearestMiddle(const Vector & coord, double * dist = NULL);
virtual Vector getNearestDist(double distance, const Vector & coord, double * dist = NULL);
- virtual double getDistanceToPoint(const Vector& coord, RS_Entity ** entity = NULL,
+ virtual double getDistanceToPoint(const Vector& coord, Entity ** entity = NULL,
RS2::ResolveLevel level = RS2::ResolveNone, double solidDist = RS_MAXDOUBLE);
virtual void move(Vector offset);
virtual void mirror(Vector axisPoint1, Vector axisPoint2);
virtual void draw(PaintInterface * painter, GraphicView * view, double patternOffset = 0.0);
- friend std::ostream & operator<<(std::ostream & os, const RS_Point & p);
+ friend std::ostream & operator<<(std::ostream & os, const Point & p);
/** Recalculates the borders of this entity. */
virtual void calculateBorders();
protected:
- RS_PointData data;
+ PointData data;
//Vector point;
};