pfcrender  1.0.1
Plugins::Export::BboxParse Class Reference

The BboxParse class Iterates through the model string, calculating a bounding box from min- and max coordinates. More...

#include <BboxParse.h>

Public Member Functions

 BboxParse (const QString &mdl)
 
 BboxParse (const QString &mdl)
 

Static Public Member Functions

static QRectF getBbox (const QString &mdl)
 
static QRectF getBbox (const QString &mdl)
 

Public Attributes

QPointF min
 
QPointF max
 

Private Member Functions

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

Private Attributes

double seglen
 
double angle
 
double initial_angle
 
util::PolarVector2D pos
 
QStack< util::PolarVector2Dstack {}
 
int cur_color_idx = 0
 
QPointF coord_last_drawn
 
QPointF coord_final
 

Detailed Description

The BboxParse class Iterates through the model string, calculating a bounding box from min- and max coordinates.

Constructor & Destructor Documentation

Plugins::Export::BboxParse::BboxParse ( const QString &  mdl)
explicit
Plugins::Export::BboxParse::BboxParse ( const QString &  mdl)
explicit

Member Function Documentation

void Plugins::Export::BboxParse::add_segment ( )
inlineprivate
LSYS_STRING_PARSE_FUNC_DECL void Plugins::Export::BboxParse::add_segment ( )
private
void Plugins::Export::BboxParse::decAngle ( )
private
void Plugins::Export::BboxParse::decAngle ( )
inlineprivate
static QRectF Plugins::Export::BboxParse::getBbox ( const QString &  mdl)
static
QRectF Plugins::Export::BboxParse::getBbox ( const QString &  mdl)
static

References max, and min.

Referenced by Plugins::Export::PDF::PDF::printPDF().

void Plugins::Export::BboxParse::incAngle ( )
inlineprivate
void Plugins::Export::BboxParse::incAngle ( )
private
void Plugins::Export::BboxParse::next_color ( )
inlineprivate
void Plugins::Export::BboxParse::next_color ( )
private
void Plugins::Export::BboxParse::parsing_preamble ( )
private

References angle.

void Plugins::Export::BboxParse::parsing_preamble ( )
private
void Plugins::Export::BboxParse::prev_color ( )
private
void Plugins::Export::BboxParse::prev_color ( )
inlineprivate
void Plugins::Export::BboxParse::stackPop ( )
inlineprivate

References pos, and stack.

void Plugins::Export::BboxParse::stackPop ( )
private
void Plugins::Export::BboxParse::stackPush ( )
private
void Plugins::Export::BboxParse::stackPush ( )
inlineprivate

References pos, and stack.

Member Data Documentation

double Plugins::Export::BboxParse::angle
private
QPointF Plugins::Export::BboxParse::coord_final
private
QPointF Plugins::Export::BboxParse::coord_last_drawn
private
int Plugins::Export::BboxParse::cur_color_idx = 0
private
double Plugins::Export::BboxParse::initial_angle
private
QPointF Plugins::Export::BboxParse::max

Referenced by add_segment(), and getBbox().

QPointF Plugins::Export::BboxParse::min

Referenced by add_segment(), and getBbox().

util::PolarVector2D Plugins::Export::BboxParse::pos
private
double Plugins::Export::BboxParse::seglen
private
QStack< util::PolarVector2D > Plugins::Export::BboxParse::stack {}
private

Referenced by stackPop(), and stackPush().


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