#ifndef __PEN_H__
#define __PEN_H__
-#include "rs.h"
+#include "enums.h"
#include "color.h"
#include "flags.h"
* @author James Hammons
* @author Andrew Mustun
*/
-class RS_Pen: public RS_Flags
+class Pen: public Flags
{
public:
- RS_Pen();
- RS_Pen(const RS_Color & c, RS2::LineWidth w, RS2::LineType t);
- RS_Pen(unsigned int f);
- virtual ~RS_Pen();
+ Pen();
+ Pen(const Color & c, RS2::LineWidth w, RS2::LineType t);
+ Pen(unsigned int f);
+ virtual ~Pen();
RS2::LineType getLineType() const;
void setLineType(RS2::LineType t);
void setWidth(RS2::LineWidth w);
double getScreenWidth() const;
void setScreenWidth(double w);
- const RS_Color & getColor() const;
- void setColor(const RS_Color & c);
+ const Color & getColor() const;
+ void setColor(const Color & c);
bool isValid();
- bool operator==(const RS_Pen & p) const;
- bool operator!=(const RS_Pen & p) const;
+ bool operator==(const Pen & p) const;
+ bool operator!=(const Pen & p) const;
- friend std::ostream & operator<<(std::ostream & os, const RS_Pen & p);
+ friend std::ostream & operator<<(std::ostream & os, const Pen & p);
protected:
RS2::LineType lineType;
RS2::LineWidth width;
double screenWidth;
- RS_Color color;
+ Color color;
};
#endif