DGtal  0.9.3beta
Public Member Functions | Data Fields
LibBoard::Board::State Struct Reference

#include <Board/Board.h>

Collaboration diagram for LibBoard::Board::State:

Public Member Functions

 State ()
double unit (const double &x)
Point unit (const Point &p)
void unit (Shape &shape)

Data Fields

DGtal::Color penColor
DGtal::Color fillColor
double lineWidth
Shape::LineStyle lineStyle
Shape::LineCap lineCap
Shape::LineJoin lineJoin
Fonts::Font font
double fontSize
double unitFactor

Detailed Description

Current graphical state for drawings made by the drawSomething() methods.

Definition at line 940 of file Board.h.

Constructor & Destructor Documentation

LibBoard::Board::State::State ( )

Definition at line 91 of file Board.cpp.

References DGtal::Color::Black, LibBoard::Shape::ButtCap, fillColor, font, fontSize, lineCap, lineJoin, lineStyle, lineWidth, LibBoard::Shape::MiterJoin, DGtal::Color::None, penColor, LibBoard::Shape::SolidStyle, LibBoard::Fonts::TimesRoman, and unitFactor.

92 {
95  lineWidth = 0.5;
100  fontSize = 11.0;
101  unitFactor = 1.0;
102 }
static const Color Black
Definition: Color.h:388
DGtal::Color fillColor
Definition: Board.h:942
Shape::LineJoin lineJoin
Definition: Board.h:946
static const Color None
Definition: Color.h:387
Shape::LineCap lineCap
Definition: Board.h:945
Shape::LineStyle lineStyle
Definition: Board.h:944
Fonts::Font font
Definition: Board.h:947
DGtal::Color penColor
Definition: Board.h:941

Member Function Documentation

double LibBoard::Board::State::unit ( const double &  x)
Point LibBoard::Board::State::unit ( const Point p)

Definition at line 952 of file Board.h.

References LibBoard::Point::x, and LibBoard::Point::y.

952 { return Point( p.x * unitFactor, p.y * unitFactor); }
void LibBoard::Board::State::unit ( Shape shape)

Definition at line 953 of file Board.h.

References LibBoard::Shape::scaleAll().

953 { shape.scaleAll( unitFactor ); }

Field Documentation

DGtal::Color LibBoard::Board::State::fillColor
Fonts::Font LibBoard::Board::State::font

The font.

Definition at line 947 of file Board.h.

Referenced by LibBoard::Board::drawText(), LibBoard::Board::setFont(), and State().

double LibBoard::Board::State::fontSize

The font size.

Definition at line 948 of file Board.h.

Referenced by LibBoard::Board::drawText(), LibBoard::Board::setFont(), LibBoard::Board::setFontSize(), and State().

Shape::LineCap LibBoard::Board::State::lineCap
Shape::LineJoin LibBoard::Board::State::lineJoin
Shape::LineStyle LibBoard::Board::State::lineStyle
double LibBoard::Board::State::lineWidth
DGtal::Color LibBoard::Board::State::penColor
double LibBoard::Board::State::unitFactor

The factor to be applied to arguments of the drawSomething() family.

Definition at line 949 of file Board.h.

Referenced by LibBoard::Board::operator<<(), LibBoard::Board::setUnit(), State(), and unit().

The documentation for this struct was generated from the following files: