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

#include <Board/Board.h>

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

◆ State()

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

Member Function Documentation

◆ unit() [1/3]

double LibBoard::Board::State::unit ( const double &  x)
inline

◆ unit() [2/3]

Point LibBoard::Board::State::unit ( const Point p)
inline

Definition at line 952 of file Board.h.

952 { return Point( p.x * unitFactor, p.y * unitFactor); }

References unitFactor.

◆ unit() [3/3]

void LibBoard::Board::State::unit ( Shape shape)
inline

Definition at line 953 of file Board.h.

953 { shape.scaleAll( unitFactor ); }

References LibBoard::Shape::scaleAll(), and unitFactor.

Field Documentation

◆ fillColor

DGtal::Color LibBoard::Board::State::fillColor

◆ font

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().

◆ fontSize

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().

◆ lineCap

Shape::LineCap LibBoard::Board::State::lineCap

◆ lineJoin

Shape::LineJoin LibBoard::Board::State::lineJoin

◆ lineStyle

Shape::LineStyle LibBoard::Board::State::lineStyle

◆ lineWidth

double LibBoard::Board::State::lineWidth

◆ penColor

DGtal::Color LibBoard::Board::State::penColor

◆ unitFactor

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:
LibBoard::Board::State::unitFactor
double unitFactor
Definition: Board.h:949
DGtal::Color::Black
static const Color Black
Definition: Color.h:389
LibBoard::Shape::MiterJoin
@ MiterJoin
Definition: Board/Shapes.h:61
LibBoard::Board::State::lineWidth
double lineWidth
Definition: Board.h:943
LibBoard::Board::State::lineCap
Shape::LineCap lineCap
Definition: Board.h:945
LibBoard::Board::State::fontSize
double fontSize
Definition: Board.h:948
LibBoard::Shape::SolidStyle
@ SolidStyle
Definition: Board/Shapes.h:62
LibBoard::Fonts::TimesRoman
@ TimesRoman
Definition: PSFonts.h:38
LibBoard::Board::State::penColor
DGtal::Color penColor
Definition: Board.h:941
LibBoard::Board::State::lineStyle
Shape::LineStyle lineStyle
Definition: Board.h:944
LibBoard::Board::State::fillColor
DGtal::Color fillColor
Definition: Board.h:942
LibBoard::Shape::ButtCap
@ ButtCap
Definition: Board/Shapes.h:60
DGtal::Color::None
static const Color None
Definition: Color.h:388
LibBoard::Board::State::font
Fonts::Font font
Definition: Board.h:947
Point
MyPointD Point
Definition: testClone2.cpp:383
LibBoard::Board::State::lineJoin
Shape::LineJoin lineJoin
Definition: Board.h:946