Parallel Coordinate System with Time Series Data
PCLine Class Reference

A PC Line representing a Line on the PCSystem. It is a Line over all attributes, so geometrically speaken is a poly line with multiple segments. More...

#include <PCLine.h>

Public Member Functions

 PCLine (QVector3D color, float thickness=1.0, float alpha=1.0)
 Constructor. More...
 
 PCLine (std::vector< QVector2D > points, QVector3D color, float thickness=1.0, float alpha=1.0)
 Constructor. More...
 
 ~PCLine ()
 Destructor. More...
 
void clearPoints ()
 Clears the points. More...
 
void addPoint (QVector2D p)
 Adds a point. More...
 
bool highlight (QVector2D pos)
 Highlights the given position. More...
 
void draw (Painter2D *painter2D, QPainter *qPainter, int indexStep, std::vector< PCAxis * > notDrawn)
 Draws. More...
 

Public Attributes

std::string name
 

Detailed Description

A PC Line representing a Line on the PCSystem. It is a Line over all attributes, so geometrically speaken is a poly line with multiple segments.

Author
Depner, Gamsjaeger
Date
05.06.2021

Constructor & Destructor Documentation

◆ PCLine() [1/2]

PCLine::PCLine ( QVector3D  color,
float  thickness = 1.0,
float  alpha = 1.0 
)

Constructor.

creates a PC Line without any points and a color. Thickness and alpha can also be specified if needed.

Parameters
colorof the Line
thicknessof the Line
alphaor opacity of the Line
Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
colorThe color.
thicknessThe thickness.
alphaThe alpha.

◆ PCLine() [2/2]

PCLine::PCLine ( std::vector< QVector2D >  points,
QVector3D  color,
float  thickness = 1.0,
float  alpha = 1.0 
)

Constructor.

creates a PC Line with points and a color. Thickness and alpha can also be specified if needed.

Parameters
pointsof the Line
colorof the Line
thicknessof the Line
alphaor opacity of the Line
Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
pointsThe points.
colorThe color.
thicknessThe thickness.
alphaThe alpha.

◆ ~PCLine()

PCLine::~PCLine ( )

Destructor.

Author
Depner, Gamsjaeger
Date
05.06.2021

Member Function Documentation

◆ addPoint()

void PCLine::addPoint ( QVector2D  p)

Adds a point.

adds a point to the Line

Parameters
ppoint to add
Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
pA QVector2D to process.

◆ clearPoints()

void PCLine::clearPoints ( )

Clears the points.

deletes all points of the Line

Author
Depner, Gamsjaeger
Date
05.06.2021

◆ draw()

void PCLine::draw ( Painter2D painter2D,
QPainter *  qPainter,
int  indexStep,
std::vector< PCAxis * >  notDrawn 
)

Draws.

draws the Line

Parameters
painter2Dour own painter
qPainterQt's painter
indexStepdefines how many points shall be skipped when drawing the line
definesbetween which axes the Line shall not be drawn
Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
[in,out]painter2DIf non-null, the painter 2D.
[in,out]qPainterIf non-null, the painter.
indexStepThe index step.
notDrawnThe not drawn.

◆ highlight()

bool PCLine::highlight ( QVector2D  pos)

Highlights the given position.

highlights the line dependent on the mouse position (if the mouse hovers the line)

Parameters
posis the position of the mouse
Author
Depner, Gamsjaeger
Date
05.06.2021
Parameters
posThe position.
Returns
True if it succeeds, false if it fails.

Member Data Documentation

◆ name

std::string PCLine::name

entity name of the Line


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