Parallel Coordinate System with Time Series Data
PCAxis Class Reference

A PC Axis, which represents one axis in the PC System. It holds its positional values on the plane and the values of the data sets dependent on which attribute the axis represents. More...

#include <PCAxis.h>

Public Member Functions

 PCAxis (Calendar *calendarData, std::string attr_name, QVector2D pos, float height)
 Constructor. More...
 
 ~PCAxis ()
 Destructor. More...
 
void update (int days)
 Updates the given days. More...
 
void draw (Painter2D *painter2D, QPainter *qPainter)
 Draws. More...
 
void drawAtDrawPos (Painter2D *painter2D, QPainter *qPainter)
 Draw at draw position. More...
 
std::string toString ()
 Convert this object into a string representation. More...
 

Public Attributes

std::unordered_map< std::string, float > values
 
QVector2D pos
 
float height
 
float minVal
 
float maxVal
 
float days = 0
 
std::string attr_name
 
QVector2D drawPos
 
float drawHeight
 

Detailed Description

A PC Axis, which represents one axis in the PC System. It holds its positional values on the plane and the values of the data sets dependent on which attribute the axis represents.

Author
Depner, Gamsjaeger
Date
05.06.2021

Constructor & Destructor Documentation

◆ PCAxis()

PCAxis::PCAxis ( Calendar calendarData,
std::string  attr_name,
QVector2D  pos,
float  height 
)

Constructor.

creates a PC Axis

Parameters
calendarDatadata set of the Calendar
attr_nameattribute name of the axis
posposition of the Axis on the 2D plane
heightheight of the Axis
Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
[in,out]calendarDataIf non-null, information describing the calendar.
attr_nameName of the attribute.
posThe position.
heightThe height.

◆ ~PCAxis()

PCAxis::~PCAxis ( )

Destructor.

Author
Depner, Gamsjaeger
Date
05.06.2021

Member Function Documentation

◆ draw()

void PCAxis::draw ( Painter2D painter2D,
QPainter *  qPainter 
)

Draws.

draws the PCAxis

Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
[in,out]painter2DIf non-null, the painter 2D.
[in,out]qPainterIf non-null, the painter.

◆ drawAtDrawPos()

void PCAxis::drawAtDrawPos ( Painter2D painter2D,
QPainter *  qPainter 
)

Draw at draw position.

draws the PCAxis if it is part of a VP_Wall

Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
[in,out]painter2DIf non-null, the painter 2D.
[in,out]qPainterIf non-null, the painter.

◆ toString()

std::string PCAxis::toString ( )

Convert this object into a string representation.

Author
Depner, Gamsjaeger
Date
05.06.2021
Returns
A std::string that represents this object.

◆ update()

void PCAxis::update ( int  days)

Updates the given days.

updates the Axis acoording to the timestep days. The data set of Calendar at time point –Minimum Date + days– is used

Parameters
daysdays to add to the Minimum Date of Calendar
Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
daysThe days.

Member Data Documentation

◆ attr_name

std::string PCAxis::attr_name

Attribute name of the axis

◆ days

float PCAxis::days = 0

Time point of the axis (default: starts at day 0)

◆ drawHeight

float PCAxis::drawHeight

Height to draw Axis when in Wall

◆ drawPos

QVector2D PCAxis::drawPos

Pos to draw Axis when in Wall

◆ height

float PCAxis::height

Height of the Axis, Minimum and Maximum Value of Attribute

◆ maxVal

float PCAxis::maxVal

◆ minVal

float PCAxis::minVal

◆ pos

QVector2D PCAxis::pos

Position of the Axis on the plane

◆ values

std::unordered_map<std::string, float> PCAxis::values

each entity (like 'Bitcoin') is mapped as a string to its float value for this attribute at the specific time point


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