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>
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
◆ PCAxis()
PCAxis::PCAxis |
( |
Calendar * |
calendarData, |
|
|
std::string |
attr_name, |
|
|
QVector2D |
pos, |
|
|
float |
height |
|
) |
| |
Constructor.
creates a PC Axis
- Parameters
-
calendarData | data set of the Calendar |
attr_name | attribute name of the axis |
pos | position of the Axis on the 2D plane |
height | height of the Axis |
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
[in,out] | calendarData | If non-null, information describing the calendar. |
| attr_name | Name of the attribute. |
| pos | The position. |
| height | The height. |
◆ ~PCAxis()
Destructor.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ draw()
void PCAxis::draw |
( |
Painter2D * |
painter2D, |
|
|
QPainter * |
qPainter |
|
) |
| |
Draws.
draws the PCAxis
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
[in,out] | painter2D | If non-null, the painter 2D. |
[in,out] | qPainter | If 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] | painter2D | If non-null, the painter 2D. |
[in,out] | qPainter | If 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
-
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
◆ attr_name
std::string PCAxis::attr_name |
Attribute name of the axis
◆ days
Time point of the axis (default: starts at day 0)
◆ drawHeight
Height to draw Axis when in Wall
◆ drawPos
QVector2D PCAxis::drawPos |
Pos to draw Axis when in Wall
◆ height
Height of the Axis, Minimum and Maximum Value of Attribute
◆ maxVal
◆ minVal
◆ 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: