DGtal  1.3.beta
Board2D.cpp
1 
29 #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 // //
LibBoard::Board::setUnit
void setUnit(Unit unit)
Definition: Board.cpp:240
LibBoard::Board::UCentimeter
@ UCentimeter
Definition: Board.h:43
DGtal::Color
Structure representing an RGB triple with alpha component.
Definition: Color.h:66
DGtal::Board2D::myStyles
StyleMapping myStyles
Definition: Board2D.h:165
DGtal::Board2D::~Board2D
~Board2D()
Definition: Board2D.cpp:45
DGtal::Board2D::operator=
Board2D & operator=(const Board2D &other)
Definition: Board2D.cpp:78
LibBoard::Board::operator=
Board & operator=(const Board &other)
Definition: Board.cpp:117
DGtal::Board2D::Board2D
Board2D(const Color &aBackgroundColor=Color::None)
Definition: Board2D.cpp:54
DGtal::Board2D::selfDisplay
void selfDisplay(std::ostream &out) const
Definition: Board2D.cpp:97
LibBoard
Definition: Board.cpp:87
DGtal::Board2D::isValid
bool isValid() const
Definition: Board2D.cpp:107
DGtal::Board2D
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Definition: Board2D.h:70