X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fhatch.h;h=6d1959b39868a0d04298ce88757240a8a476c2ef;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=298f38c8fee13c2deaa4e5d7957fe35225fc2f57;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/hatch.h b/src/base/hatch.h index 298f38c..6d1959b 100644 --- a/src/base/hatch.h +++ b/src/base/hatch.h @@ -7,20 +7,20 @@ /** * Holds the data that defines a hatch entity. */ -class RS_HatchData +class HatchData { public: /** * Default constructor. Leaves the data object uninitialized. */ - RS_HatchData() {} + HatchData() {} /** * @param solid true: solid fill, false: pattern. * @param scale Pattern scale or spacing. * @param pattern Pattern name. */ - RS_HatchData(bool solid, double scale, double angle, const QString & pattern) + HatchData(bool solid, double scale, double angle, const QString & pattern) { this->solid = solid; this->scale = scale; @@ -30,7 +30,7 @@ class RS_HatchData //std::cout << "RS_H__atchData: " << pattern.latin1() << "\n"; } - friend std::ostream & operator<<(std::ostream & os, const RS_HatchData & td) + friend std::ostream & operator<<(std::ostream & os, const HatchData & td) { os << "(" << td.pattern.toAscii().data() << ")"; return os; @@ -49,16 +49,16 @@ class RS_HatchData * @author James Hammons * @author Andrew Mustun */ -class RS_Hatch: public RS_EntityContainer +class Hatch: public EntityContainer { public: - RS_Hatch(RS_EntityContainer * parent, const RS_HatchData & d); - virtual ~RS_Hatch(); + Hatch(EntityContainer * parent, const HatchData & d); + virtual ~Hatch(); - virtual RS_Entity * clone(); + virtual Entity * clone(); virtual RS2::EntityType rtti() const; virtual bool isContainer() const; - RS_HatchData getData() const; + HatchData getData() const; bool validate(); int countLoops(); @@ -77,7 +77,7 @@ class RS_Hatch: public RS_EntityContainer void activateContour(bool on); virtual void draw(PaintInterface * painter, GraphicView * view, double patternOffset = 0.0); virtual double getLength(); - 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 rotate(Vector center, double angle); @@ -85,11 +85,11 @@ class RS_Hatch: public RS_EntityContainer virtual void mirror(Vector axisPoint1, Vector axisPoint2); virtual void stretch(Vector firstCorner, Vector secondCorner, Vector offset); - friend std::ostream & operator<<(std::ostream & os, const RS_Hatch & p); + friend std::ostream & operator<<(std::ostream & os, const Hatch & p); protected: - RS_HatchData data; - RS_EntityContainer * hatch; + HatchData data; + EntityContainer * hatch; bool updateRunning; bool needOptimization; };