quickplot
Loading...
Searching...
No Matches
Signals | Protected Member Functions | Protected Attributes | Properties | List of all members
PlotGeometry Class Reference

#include <plotGeometry.h>

Inheritance diagram for PlotGeometry:
Collaboration diagram for PlotGeometry:

Signals

void dataChanged ()
 

Protected Member Functions

virtual std::vector< Trianglefaces_ (std::vector< Vec3< float > > points) const
 
std::vector< Triangleclip (const std::vector< Triangle > &ts) const
 
void updateData ()
 

Protected Attributes

double thickness_ = 0.01
 
Data

The coordinates in data space of the data points

QList< double > xs_
 
QList< double > ys_
 
Axes

Pointers to the axes used to plot the data

AxisxAxis_
 
AxisyAxis_
 

Properties

double thickness
 
QList< double > xs
 
QList< double > ys
 
AxisxAxis
 
AxisyAxis
 

Detailed Description

The base class for drawing data points on the plot

Member Function Documentation

◆ clip()

std::vector< Triangle > PlotGeometry::clip ( const std::vector< Triangle > &  ts) const
protected

Take a list of polygon faces and crop them so that nothing extends outside of the charting space. Triangles completely outside the region are dropped while triangles partially within the region are converted into a group of polygons completely inside the bounds.

◆ dataChanged

void PlotGeometry::dataChanged ( )
signal

The signal that is thrown when the data points have changed position in chart space

◆ faces_()

std::vector< Triangle > PlotGeometry::faces_ ( std::vector< Vec3< float > >  points) const
protectedvirtual

An array of polygon faces that would plot the given data points. The points should be in chart space (not data space).

◆ updateData()

void PlotGeometry::updateData ( )
protected

Present the latest geometry to the renderer

Member Data Documentation

◆ thickness_

double PlotGeometry::thickness_ = 0.01
protected

The size of the plotting geometry

◆ xAxis_

Axis* PlotGeometry::xAxis_
protected

The axes along which the data are plotted

◆ xs_

QList<double> PlotGeometry::xs_
protected

The coordinates of the data point along this axis

◆ yAxis_

Axis * PlotGeometry::yAxis_
protected

The axes along which the data are plotted

◆ ys_

QList<double> PlotGeometry::ys_
protected

The coordinates of the data point along this axis

Property Documentation

◆ thickness

double PlotGeometry::thickness

The width of the data point drawing

◆ xAxis

Axis * PlotGeometry::xAxis

The X axis that the data is plotted against

◆ xs

QList<double> PlotGeometry::xs

The X coordinates of the data points in data space

◆ yAxis

Axis * PlotGeometry::yAxis

The Y axis that the data is plotted against

◆ ys

QList<double> PlotGeometry::ys

The Y coordinates of the data points in data space


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