DGtal  1.5.beta
Board2D.cpp
1 
30 #include "DGtal/io/boards/Board2D.h"
32 
33 using namespace std;
34 
36 // class Board2D
38 
40 // Standard services - public :
41 
46 {
47 }
48 
54 DGtal::Board2D::Board2D( const Color & aBackgroundColor )
55  : LibBoard::Board( aBackgroundColor ),
56  myStyles()
57 {
59 }
60 
67  : LibBoard::Board( other ),
68  myStyles( other.myStyles )
69 {
70 }
71 
79 {
80  if ( this != &other )
81  {
83  myStyles = other.myStyles;
84  }
85  return *this;
86 }
87 
88 
90 // Interface - public :
91 
96 void
97 DGtal::Board2D::selfDisplay ( std::ostream & out ) const
98 {
99  out << "[Board2D]";
100 }
101 
106 bool
108 {
109  return true;
110 }
111 
112 
113 
115 // Internals - private :
116 
117 // //
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Definition: Board2D.h:71
bool isValid() const
Definition: Board2D.cpp:107
void selfDisplay(std::ostream &out) const
Definition: Board2D.cpp:97
Board2D(const Color &aBackgroundColor=Color::None)
Definition: Board2D.cpp:54
Board2D & operator=(const Board2D &other)
Definition: Board2D.cpp:78
StyleMapping myStyles
Definition: Board2D.h:165
Structure representing an RGB triple with alpha component.
Definition: Color.h:68
Board & operator=(const Board &other)
Definition: Board.cpp:116
void setUnit(Unit unit)
Definition: Board.cpp:239