A Vanishing Point Widget. It shows a separate Parallel Coordinate System which can be moved in time back and forwards.
More...
#include <VP_Widget.h>
|
| | VP_Widget (std::vector< PCAxis * > additionalAxes, float timeLimit, Calendar *calendarData) |
| | Constructor. More...
|
| |
| | ~VP_Widget () |
| | Destructor. More...
|
| |
| void | initAxis (PCAxis *a, std::vector< PCAxis > *alongTime, int day, bool borderLeft, bool borderRight) |
| | Initializes the axis. More...
|
| |
| void | init () |
| | Initializes this object. More...
|
| |
| void | updateAxis (PCAxis *a, std::vector< PCAxis > *alongTime, std::unordered_map< std::string, PCLine > *line_map, std::unordered_map< std::string, QVector2D > *wallvalue, PCAxis *wallAxis) |
| | Updates the axis. More...
|
| |
| void | update () |
| | Updates this object. More...
|
| |
| void | draw (Painter2D *painter2D, QPainter *qPainter) |
| | Draws. More...
|
| |
| void | clickWall (QVector2D mousePos) |
| | Click wall. More...
|
| |
| void | releaseWall () |
| | Releases the wall. More...
|
| |
| void | updateWall (QVector2D mousePos) |
| | Updates the wall described by mousePos. More...
|
| |
| QVector2D | calcBezier (float u, QVector2D p0, QVector2D p1, QVector2D p2, QVector2D p3) |
| | Calculates the bezier. More...
|
| |
A Vanishing Point Widget. It shows a separate Parallel Coordinate System which can be moved in time back and forwards.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ VP_Widget()
| VP_Widget::VP_Widget |
( |
std::vector< PCAxis * > |
additionalAxes, |
|
|
float |
timeLimit, |
|
|
Calendar * |
calendarData |
|
) |
| |
Constructor.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| [in,out] | additionalAxes | If non-null, the additional axes. |
| timeLimit | The time limit. |
| [in,out] | calendarData | If non-null, information describing the calendar. |
◆ ~VP_Widget()
| VP_Widget::~VP_Widget |
( |
| ) |
|
Destructor.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ calcBezier()
| QVector2D VP_Widget::calcBezier |
( |
float |
u, |
|
|
QVector2D |
p0, |
|
|
QVector2D |
p1, |
|
|
QVector2D |
p2, |
|
|
QVector2D |
p3 |
|
) |
| |
Calculates the bezier.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| u | A float to process. |
| p0 | The p 0. |
| p1 | The first QVector2D. |
| p2 | The second QVector2D. |
| p3 | The third QVector2D. |
- Returns
- The calculated bezier.
◆ clickWall()
| void VP_Widget::clickWall |
( |
QVector2D |
mousePos | ) |
|
Click wall.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| mousePos | The mouse position. |
◆ draw()
| void VP_Widget::draw |
( |
Painter2D * |
painter2D, |
|
|
QPainter * |
qPainter |
|
) |
| |
Draws.
- 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. |
◆ init()
Initializes this object.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ initAxis()
| void VP_Widget::initAxis |
( |
PCAxis * |
a, |
|
|
std::vector< PCAxis > * |
alongTime, |
|
|
int |
day, |
|
|
bool |
borderLeft, |
|
|
bool |
borderRight |
|
) |
| |
Initializes the axis.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| [in,out] | a | If non-null, the PCAxis to process. |
| [in,out] | alongTime | If non-null, the along time. |
| day | The day. |
| borderLeft | True to border left. |
| borderRight | True to border right. |
◆ releaseWall()
| void VP_Widget::releaseWall |
( |
| ) |
|
Releases the wall.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ update()
| void VP_Widget::update |
( |
| ) |
|
Updates this object.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ updateAxis()
| void VP_Widget::updateAxis |
( |
PCAxis * |
a, |
|
|
std::vector< PCAxis > * |
alongTime, |
|
|
std::unordered_map< std::string, PCLine > * |
line_map, |
|
|
std::unordered_map< std::string, QVector2D > * |
wallvalue, |
|
|
PCAxis * |
wallAxis |
|
) |
| |
Updates the axis.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| [in,out] | a | If non-null, the PCAxis to process. |
| [in,out] | alongTime | If non-null, the along time. |
| [in,out] | line_map | If non-null, the line map. |
| [in,out] | wallvalue | If non-null, the wallvalue. |
| [in,out] | wallAxis | If non-null, the wall axis. |
◆ updateWall()
| void VP_Widget::updateWall |
( |
QVector2D |
mousePos | ) |
|
Updates the wall described by mousePos.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| mousePos | The mouse position. |
◆ axes
| std::vector<PCAxis*> VP_Widget::axes |
◆ origVanishingPoint
| QVector2D VP_Widget::origVanishingPoint |
◆ ratio
| float VP_Widget::ratio = 1.10f |
◆ timeLimit
| float VP_Widget::timeLimit |
◆ vanishingPoint
| QVector2D VP_Widget::vanishingPoint |
◆ wall
◆ wallvalues
| std::vector<std::unordered_map<std::string, QVector2D> > VP_Widget::wallvalues |
The documentation for this class was generated from the following files: