DGtal
1.1.0
src
DGtal
io
boards
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
45
DGtal::Board2D::~Board2D
()
46
{
47
}
48
54
DGtal::Board2D::Board2D
(
const
Color
& aBackgroundColor )
55
:
LibBoard
::Board( aBackgroundColor ),
56
myStyles()
57
{
58
this->
setUnit
(
LibBoard::Board::UCentimeter
);
59
}
60
66
DGtal::Board2D::Board2D
(
const
Board2D
& other )
67
:
LibBoard
::Board( other ),
68
myStyles( other.myStyles )
69
{
70
}
71
77
DGtal::Board2D
&
78
DGtal::Board2D::operator=
(
const
Board2D
& other )
79
{
80
if
(
this
!= &other )
81
{
82
LibBoard::Board::operator=
( other );
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
107
DGtal::Board2D::isValid
()
const
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:67
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:71
Generated on Fri Oct 9 2020 08:57:43 for DGtal by
1.8.20