A Wall of a VP_Widget. It basically shows the wall and the Lines of a Vanishing Point Widget.
More...
#include <VP_Wall.h>
|
| | VP_Wall (std::vector< PCAxis * > addAxes, QVector2D vanishingPoint) |
| | Constructor. More...
|
| |
| | ~VP_Wall () |
| | Destructor. More...
|
| |
| void | update (std::vector< std::unordered_map< std::string, QVector2D >> values) |
| | Updates the given values. More...
|
| |
| void | drag (QVector2D mousePos, QVector2D vanishingPoint) |
| | Drags. More...
|
| |
| bool | dragLine (QVector2D pos, PCAxis *axis) |
| | Drag line. More...
|
| |
| void | draw (Painter2D *painter2D, QPainter *qPainter) |
| | Draws. More...
|
| |
| void | click (QVector2D mousePos) |
| | Clicks the given mouse position. More...
|
| |
| bool | inPolygon (QVector2D point, std::vector< QVector2D > points) |
| | In polygon. More...
|
| |
| bool | inRectangle (QVector2D pos, QVector2D A, QVector2D B, QVector2D C, QVector2D D) |
| | In rectangle. More...
|
| |
| void | release () |
| | Releases this object. More...
|
| |
| void | setVanishingBorderLeft (QVector2D back_border_left, float height) |
| | Sets vanishing border left. More...
|
| |
| void | setVanishingBorderRight (QVector2D back_border_right) |
| | Sets vanishing border right. More...
|
| |
| void | setFrontBorderLeft (QVector2D front_border_left, float height) |
| | Sets front border left. More...
|
| |
| void | setFrontBorderRight (QVector2D front_border_right) |
| | Sets front border right. More...
|
| |
| QVector2D | calcBezier (float u, QVector2D p0, QVector2D p1, QVector2D p2, QVector2D p3) |
| | Calculates the bezier. More...
|
| |
| void | dragAxis (PCAxis *a, QVector2D mousePos, QVector2D vanishingPoint) |
| | Drag axis. More...
|
| |
A Wall of a VP_Widget. It basically shows the wall and the Lines of a Vanishing Point Widget.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ VP_Wall()
| VP_Wall::VP_Wall |
( |
std::vector< PCAxis * > |
addAxes, |
|
|
QVector2D |
vanishingPoint |
|
) |
| |
Constructor.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| [in,out] | addAxes | If non-null, the add axes. |
| vanishingPoint | The vanishing point. |
◆ ~VP_Wall()
Destructor.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ calcBezier()
| QVector2D VP_Wall::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.
◆ click()
| void VP_Wall::click |
( |
QVector2D |
mousePos | ) |
|
Clicks the given mouse position.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| mousePos | The mouse position. |
◆ drag()
| void VP_Wall::drag |
( |
QVector2D |
mousePos, |
|
|
QVector2D |
vanishingPoint |
|
) |
| |
Drags.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| mousePos | The mouse position. |
| vanishingPoint | The vanishing point. |
◆ dragAxis()
| void VP_Wall::dragAxis |
( |
PCAxis * |
a, |
|
|
QVector2D |
mousePos, |
|
|
QVector2D |
vanishingPoint |
|
) |
| |
Drag axis.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| [in,out] | a | If non-null, the PCAxis to process. |
| mousePos | The mouse position. |
| vanishingPoint | The vanishing point. |
◆ dragLine()
| bool VP_Wall::dragLine |
( |
QVector2D |
pos, |
|
|
PCAxis * |
axis |
|
) |
| |
Drag line.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| pos | The position. |
| [in,out] | axis | If non-null, the axis. |
- Returns
- True if it succeeds, false if it fails.
◆ draw()
| void VP_Wall::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. |
◆ inPolygon()
| bool VP_Wall::inPolygon |
( |
QVector2D |
point, |
|
|
std::vector< QVector2D > |
points |
|
) |
| |
In polygon.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| point | The point. |
| points | The points. |
- Returns
- True if it succeeds, false if it fails.
◆ inRectangle()
| bool VP_Wall::inRectangle |
( |
QVector2D |
pos, |
|
|
QVector2D |
A, |
|
|
QVector2D |
B, |
|
|
QVector2D |
C, |
|
|
QVector2D |
D |
|
) |
| |
In rectangle.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| pos | The position. |
| A | A QVector2D to process. |
| B | A QVector2D to process. |
| C | A QVector2D to process. |
| D | A QVector2D to process. |
- Returns
- True if it succeeds, false if it fails.
◆ release()
| void VP_Wall::release |
( |
| ) |
|
Releases this object.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
◆ setFrontBorderLeft()
| void VP_Wall::setFrontBorderLeft |
( |
QVector2D |
front_border_left, |
|
|
float |
height |
|
) |
| |
Sets front border left.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| front_border_left | The front border left. |
| height | The height. |
◆ setFrontBorderRight()
| void VP_Wall::setFrontBorderRight |
( |
QVector2D |
front_border_right | ) |
|
Sets front border right.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| front_border_right | The front border right. |
◆ setVanishingBorderLeft()
| void VP_Wall::setVanishingBorderLeft |
( |
QVector2D |
back_border_left, |
|
|
float |
height |
|
) |
| |
Sets vanishing border left.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| back_border_left | The back border left. |
| height | The height. |
◆ setVanishingBorderRight()
| void VP_Wall::setVanishingBorderRight |
( |
QVector2D |
back_border_right | ) |
|
Sets vanishing border right.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
| back_border_right | The back border right. |
◆ update()
| void VP_Wall::update |
( |
std::vector< std::unordered_map< std::string, QVector2D >> |
values | ) |
|
Updates the given values.
- Author
- Depner, Gamsjaeger
- Date
- 05.06.2021
- Parameters
-
◆ addAxes
| std::vector<PCAxis*> VP_Wall::addAxes |
◆ addAxesDrag
| std::vector<bool> VP_Wall::addAxesDrag |
The documentation for this class was generated from the following files: