pfcrender  1.0.1
QtGUI::QNanoCurvePainter Class Reference

The QNanoCurvePainter class This class is executed through the scene graph from the rendering thread and draws the actual geometry. It pulls its data from QNanoPaintedCurve before drawing. More...

#include <QNanoCurvePainter.h>

+ Inheritance diagram for QtGUI::QNanoCurvePainter:

Signals

void boundingBoxChanged (QRectF newBox)
 

Public Member Functions

 QNanoCurvePainter ()
 
void paint (QNanoPainter *p) override
 
void synchronize (QNanoQuickItem *item) override
 

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

QNanoPainter * p
 
QString modelstring
 
util::PolarVector2D pos
 
util::PolarVector2D p1
 
util::PolarVector2D p2
 
util::PolarVector2D p3
 
bool is_first_segment = true
 
QStack< util::PolarVector2Dstack {}
 
int cur_color_idx
 
double angle
 
QPointF coord_final
 
QPointF min
 
QPointF max
 
QRectF boundingBox
 
double rounding
 

Detailed Description

The QNanoCurvePainter class This class is executed through the scene graph from the rendering thread and draws the actual geometry. It pulls its data from QNanoPaintedCurve before drawing.

Constructor & Destructor Documentation

QtGUI::QNanoCurvePainter::QNanoCurvePainter ( )
inline

Member Function Documentation

void QtGUI::QNanoCurvePainter::add_segment ( )
inlineprivate
void QtGUI::QNanoCurvePainter::boundingBoxChanged ( QRectF  newBox)
signal
void QtGUI::QNanoCurvePainter::decAngle ( )
private
void QtGUI::QNanoCurvePainter::incAngle ( )
private
void QtGUI::QNanoCurvePainter::next_color ( )
private
void QtGUI::QNanoCurvePainter::paint ( QNanoPainter *  p)
override
void QtGUI::QNanoCurvePainter::parsing_finalize ( )
inlineprivate

Referenced by paint().

void QtGUI::QNanoCurvePainter::parsing_preamble ( )
inlineprivate

TODO: Get colors from config

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

Referenced by paint().

void QtGUI::QNanoCurvePainter::prev_color ( )
private
void QtGUI::QNanoCurvePainter::stackPop ( )
private
void QtGUI::QNanoCurvePainter::stackPush ( )
private
void QtGUI::QNanoCurvePainter::synchronize ( QNanoQuickItem item)
override

Member Data Documentation

double QtGUI::QNanoCurvePainter::angle
private
QRectF QtGUI::QNanoCurvePainter::boundingBox
private

Referenced by paint().

QPointF QtGUI::QNanoCurvePainter::coord_final
private
int QtGUI::QNanoCurvePainter::cur_color_idx
private

Referenced by paint().

bool QtGUI::QNanoCurvePainter::is_first_segment = true
private
QPointF QtGUI::QNanoCurvePainter::max
private

Referenced by paint().

QPointF QtGUI::QNanoCurvePainter::min
private

Referenced by paint().

QString QtGUI::QNanoCurvePainter::modelstring
private

Referenced by paint().

QNanoPainter* QtGUI::QNanoCurvePainter::p
private

Referenced by paint().

util::PolarVector2D QtGUI::QNanoCurvePainter::p1
private
util::PolarVector2D QtGUI::QNanoCurvePainter::p2
private
util::PolarVector2D QtGUI::QNanoCurvePainter::p3
private
util::PolarVector2D QtGUI::QNanoCurvePainter::pos
private
double QtGUI::QNanoCurvePainter::rounding
private
QStack<util::PolarVector2D> QtGUI::QNanoCurvePainter::stack {}
private

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