X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fpen.h;fp=src%2Fbase%2Fpen.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=a49c3e71c535972d58a99435959cc9e0cb5025d2;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/pen.h b/src/base/pen.h deleted file mode 100644 index a49c3e7..0000000 --- a/src/base/pen.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef __PEN_H__ -#define __PEN_H__ - -#include "enums.h" -#include "color.h" -#include "flags.h" - -/** - * A pen stores attributes for painting such as line width, - * linetype, color, ... - * - * @author James Hammons - * @author Andrew Mustun - */ -class Pen: public Flags -{ - public: - 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); - RS2::LineWidth getWidth() const; - void setWidth(RS2::LineWidth w); - double getScreenWidth() const; - void setScreenWidth(double w); - const Color & getColor() const; - void setColor(const Color & c); - bool isValid(); - bool operator==(const Pen & p) const; - bool operator!=(const Pen & p) const; - - friend std::ostream & operator<<(std::ostream & os, const Pen & p); - - protected: - RS2::LineType lineType; - RS2::LineWidth width; - double screenWidth; - Color color; -}; - -#endif