Parallel Coordinate System with Time Series Data
VP_Wall Class Reference

A Wall of a VP_Widget. It basically shows the wall and the Lines of a Vanishing Point Widget. More...

#include <VP_Wall.h>

Public Member Functions

 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...
 

Public Attributes

std::vector< PCAxis * > addAxes
 
std::vector< bool > addAxesDrag
 

Detailed Description

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

Constructor & Destructor Documentation

◆ VP_Wall()

VP_Wall::VP_Wall ( std::vector< PCAxis * >  addAxes,
QVector2D  vanishingPoint 
)

Constructor.

Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
[in,out]addAxesIf non-null, the add axes.
vanishingPointThe vanishing point.

◆ ~VP_Wall()

VP_Wall::~VP_Wall ( )

Destructor.

Author
Depner, Gamsjaeger
Date
05.06.2021

Member Function Documentation

◆ 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
uA float to process.
p0The p 0.
p1The first QVector2D.
p2The second QVector2D.
p3The 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
mousePosThe mouse position.

◆ drag()

void VP_Wall::drag ( QVector2D  mousePos,
QVector2D  vanishingPoint 
)

Drags.

Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
mousePosThe mouse position.
vanishingPointThe 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]aIf non-null, the PCAxis to process.
mousePosThe mouse position.
vanishingPointThe vanishing point.

◆ dragLine()

bool VP_Wall::dragLine ( QVector2D  pos,
PCAxis axis 
)

Drag line.

Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
posThe position.
[in,out]axisIf 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]painter2DIf non-null, the painter 2D.
[in,out]qPainterIf 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
pointThe point.
pointsThe 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
posThe position.
AA QVector2D to process.
BA QVector2D to process.
CA QVector2D to process.
DA 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_leftThe front border left.
heightThe height.

◆ setFrontBorderRight()

void VP_Wall::setFrontBorderRight ( QVector2D  front_border_right)

Sets front border right.

Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
front_border_rightThe 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_leftThe back border left.
heightThe height.

◆ setVanishingBorderRight()

void VP_Wall::setVanishingBorderRight ( QVector2D  back_border_right)

Sets vanishing border right.

Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
back_border_rightThe 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
valuesThe values.

Member Data Documentation

◆ 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: