pfcrender  1.0.1
Plugins::Export::SVG::QPainterParse Class Reference

#include <QPainterParse.h>

Public Member Functions

 QPainterParse (const QString &mdl, QPaintDevice &onto)
 

Private Member Functions

void parsing_preamble ()
 
void parsing_finalize ()
 
LSYS_STRING_PARSE_FUNC_DECL void add_segment ()
 
void next_color ()
 
void prev_color ()
 
void incAngle ()
 
void decAngle ()
 
void stackPush ()
 
void stackPop ()
 

Private Attributes

QPainter m_p
 
QPen m_pen
 
QRectF bounding_box
 
double seglen
 
double rounding
 
double angle
 
double initial_angle
 
util::PolarVector2D pos
 
QStack< util::PolarVector2Dstack {}
 
int cur_color_idx = 0
 
QPointF coord_last_drawn
 
QPointF coord_final
 

Constructor & Destructor Documentation

Plugins::Export::SVG::QPainterParse::QPainterParse ( const QString &  mdl,
QPaintDevice &  onto 
)
explicit

Member Function Documentation

void Plugins::Export::SVG::QPainterParse::add_segment ( )
inlineprivate
void Plugins::Export::SVG::QPainterParse::decAngle ( )
inlineprivate
void Plugins::Export::SVG::QPainterParse::incAngle ( )
inlineprivate
void Plugins::Export::SVG::QPainterParse::next_color ( )
inlineprivate

References cur_color_idx, m_p, and m_pen.

void Plugins::Export::SVG::QPainterParse::parsing_finalize ( )
private
void Plugins::Export::SVG::QPainterParse::parsing_preamble ( )
private

TODO: Get colors from config

References Common::Config_Registry::getInstance(), and Common::Config_Registry::getOpt().

void Plugins::Export::SVG::QPainterParse::prev_color ( )
inlineprivate

References cur_color_idx, m_p, and m_pen.

void Plugins::Export::SVG::QPainterParse::stackPop ( )
inlineprivate

References pos, and stack.

void Plugins::Export::SVG::QPainterParse::stackPush ( )
inlineprivate

References pos, and stack.

Member Data Documentation

double Plugins::Export::SVG::QPainterParse::angle
private

Referenced by decAngle(), and incAngle().

QRectF Plugins::Export::SVG::QPainterParse::bounding_box
private
QPointF Plugins::Export::SVG::QPainterParse::coord_final
private

Referenced by add_segment(), and parsing_finalize().

QPointF Plugins::Export::SVG::QPainterParse::coord_last_drawn
private

Referenced by add_segment(), and parsing_finalize().

int Plugins::Export::SVG::QPainterParse::cur_color_idx = 0
private

Referenced by next_color(), and prev_color().

double Plugins::Export::SVG::QPainterParse::initial_angle
private
QPainter Plugins::Export::SVG::QPainterParse::m_p
private
QPen Plugins::Export::SVG::QPainterParse::m_pen
private

Referenced by next_color(), and prev_color().

util::PolarVector2D Plugins::Export::SVG::QPainterParse::pos
private
double Plugins::Export::SVG::QPainterParse::rounding
private

Referenced by add_segment(), and parsing_finalize().

double Plugins::Export::SVG::QPainterParse::seglen
private
QStack<util::PolarVector2D> Plugins::Export::SVG::QPainterParse::stack {}
private

Referenced by stackPop(), and stackPush().


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