]> Shamusworld >> Repos - architektonas/blobdiff - src/base/hatch.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / hatch.h
index 298f38c8fee13c2deaa4e5d7957fe35225fc2f57..6d1959b39868a0d04298ce88757240a8a476c2ef 100644 (file)
@@ -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;
 };