+++ /dev/null
-#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