Inviwo  0.9.10.1
Inviwo documentation
inviwo::plot Namespace Reference

Classes

class  AxisData
 
class  AxisProperty
 
class  AxisRenderer
 
class  AxisRenderer3D
 
class  AxisRendererBase
 
class  AxisRenderProcessor
 Test processor for axis rendering. More...
 
class  AxisSettings
 
class  AxisStyleProperty
 a convenience property for updating/overriding multiple axes properties. A property change will propagate to all the subproperties of the registered axes. More...
 
class  CategoricalAxisProperty
 Axis for variables with a fixed number of possible values, e.g., categories. Will set the AxisProperty::range to match the number of categories and make it read-only. minorTicks will be made invisible. More...
 
class  ColorScaleLegend
 
class  DataFrameColumnToColorVector
 
class  ImagePlotProcessor
 plot an image with an x and y axis Event handling based on ViewManager More...
 
class  MajorTickData
 
class  MajorTickProperty
 
class  MajorTickSettings
 
class  MarginProperty
 Property for keeping track of margins. More...
 
class  MinorTickData
 
class  MinorTickProperty
 
class  MinorTickSettings
 
class  ParallelCoordinates
 
class  PCPAxisSettings
 
class  PCPCaptionSettings
 
class  PCPLabelSettings
 
class  PCPMajorTickSettings
 
class  PCPMinorTickSettings
 
class  PersistenceDiagramPlotGL
 base class for plotting a persistence diagram using OpenGL More...
 
class  PersistenceDiagramPlotProcessor
 plots a persistence diagram of extremum-saddle pairs with vertical lines More...
 
class  PlotTextData
 
class  PlotTextProperty
 
class  PlotTextSettings
 
class  ScatterPlotGL
 
class  ScatterPlotMatrixProcessor
 
class  ScatterPlotProcessor
 
class  TickProperty
 
class  VolumeAxis
 Processor for rendering axis annotations next to a volume. More...
 

Enumerations

enum  TickStyle { None, Inside, Outside, Both }
 

Functions

IVW_MODULE_PLOTTING_API bool operator== (const AxisSettings &a, const AxisSettings &b)
 
IVW_MODULE_PLOTTING_API bool operator!= (const AxisSettings &a, const AxisSettings &b)
 
IVW_MODULE_PLOTTING_API bool operator== (const MajorTickSettings &a, const MajorTickSettings &b)
 
IVW_MODULE_PLOTTING_API bool operator!= (const MajorTickSettings &a, const MajorTickSettings &b)
 
IVW_MODULE_PLOTTING_API bool operator== (const MinorTickSettings &a, const MinorTickSettings &b)
 
IVW_MODULE_PLOTTING_API bool operator!= (const MinorTickSettings &a, const MinorTickSettings &b)
 
IVW_MODULE_PLOTTING_API bool operator== (const PlotTextSettings &a, const PlotTextSettings &b)
 
IVW_MODULE_PLOTTING_API bool operator!= (const PlotTextSettings &a, const PlotTextSettings &b)
 
IVW_MODULE_PLOTTING_API std::vector< double > getMajorTickPositions (const MajorTickSettings &ticks, dvec2 range, size_t maxTicks=1000)
 
IVW_MODULE_PLOTTING_API std::vector< double > getMinorTickPositions (const MinorTickSettings &minorTicks, const MajorTickSettings &majorTicks, dvec2 range, size_t maxTicks=1000)
 
std::vector< double > getMajorTickPositions (const AxisSettings &settings, size_t maxTicks=1000)
 returns tick positions along the axis range defined in the axis property More...
 
std::vector< double > getMinorTickPositions (const AxisSettings &settings, size_t maxTicks=1000)
 
vec2 IVW_MODULE_PLOTTING_API getAxisCaptionPosition (const AxisSettings &settings, const vec2 &startPos, const vec2 &endPos)
 
IVW_MODULE_PLOTTING_API std::vector< std::pair< double, vec2 > > getLabelPositions (const AxisSettings &property, const vec2 &startPos, const vec2 &endPos)
 
vec3 IVW_MODULE_PLOTTING_API getAxisCaptionPosition3D (const AxisSettings &settings, const vec3 &startPos, const vec3 &endPos, const vec3 &tickDirection)
 
IVW_MODULE_PLOTTING_API std::vector< std::pair< double, vec3 > > getLabelPositions3D (const AxisSettings &property, const vec3 &startPos, const vec3 &endPos, const vec3 &tickDirection)
 
IVW_MODULE_PLOTTING_API std::unique_ptr< MeshgenerateMajorTicksMesh (const AxisSettings &settings, const vec2 &startPos, const vec2 &endPos)
 creates a mesh containing major ticks for an axis extending from start to end position More...
 
IVW_MODULE_PLOTTING_API std::unique_ptr< MeshgenerateMinorTicksMesh (const AxisSettings &settings, const vec2 &startPos, const vec2 &endPos)
 
IVW_MODULE_PLOTTING_API std::unique_ptr< MeshgenerateAxisMesh (const vec2 &startPos, const vec2 &endPos, const vec4 &color, const size_t &pickingId=std::numeric_limits< size_t >::max())
 
IVW_MODULE_PLOTTING_API std::unique_ptr< MeshgenerateMajorTicksMesh3D (const AxisSettings &settings, const vec3 &startPos, const vec3 &endPos, const vec3 &tickDirection)
 
IVW_MODULE_PLOTTING_API std::unique_ptr< MeshgenerateMinorTicksMesh3D (const AxisSettings &settings, const vec3 &startPos, const vec3 &endPos, const vec3 &tickDirection)
 
IVW_MODULE_PLOTTING_API std::unique_ptr< MeshgenerateAxisMesh3D (const vec3 &startPos, const vec3 &endPos, const vec4 &color, const size_t &pickingId=std::numeric_limits< size_t >::max())
 
IVW_MODULE_PLOTTING_API std::unique_ptr< MeshgenerateTicksMesh (const std::vector< double > &tickMarks, dvec2 axisRange, const vec3 &startPos, const vec3 &endPos, const vec3 &tickDirection, float tickLength, TickStyle style, const vec4 &color, bool flip)
 utility function to create a mesh for a given set of tick mark positions More...
 
IVW_MODULE_PLOTTING_API std::pair< vec2, vec2 > tickBoundingRect (const AxisSettings &settings, const vec2 &startPos, const vec2 &endPos)
 

Detailed Description

plot

This processor plots a given DataFrame using a Parallel Coordinate Plot.

Inports

  • DataFrame data input for plotting
  • BrushingAndLinking inport for brushing & linking interactions

Outports

  • outport rendered image of the parallel coordinate plot

Function Documentation

◆ generateAxisMesh()

std::unique_ptr< Mesh > inviwo::plot::generateAxisMesh ( const vec2 &  startPos,
const vec2 &  endPos,
const vec4 &  color,
const size_t &  pickingId = std::numeric_limits<size_t>::max() 
)

No picking buffer will be generated if pickingId = std::numeric_limits<size_t>::max()

◆ generateAxisMesh3D()

std::unique_ptr< Mesh > inviwo::plot::generateAxisMesh3D ( const vec3 &  startPos,
const vec3 &  endPos,
const vec4 &  color,
const size_t &  pickingId = std::numeric_limits<size_t>::max() 
)

No picking buffer will be generated id pickingId = std::numeric_limits<size_t>::max()

◆ generateMajorTicksMesh()

std::unique_ptr< Mesh > inviwo::plot::generateMajorTicksMesh ( const AxisSettings settings,
const vec2 &  startPos,
const vec2 &  endPos 
)

creates a mesh containing major ticks for an axis extending from start to end position

Parameters
settingsaxis property used for tick settings
startPosstart position of axis
endPosend position of axis
Returns
mesh containing of ticks, each tick is represented by two positions and matching colors

◆ generateTicksMesh()

std::unique_ptr< Mesh > inviwo::plot::generateTicksMesh ( const std::vector< double > &  tickMarks,
dvec2  axisRange,
const vec3 &  startPos,
const vec3 &  endPos,
const vec3 &  tickDirection,
float  tickLength,
TickStyle  style,
const vec4 &  color,
bool  flip 
)

utility function to create a mesh for a given set of tick mark positions

Parameters
tickMarkspositions of tick marks in same coordinate system as the axis range
axisRangemin/max values of the axis
startPosstart position of axis (spatial coordinates)
endPosend position of axis (spatial coordinates)
tickDirectiondirection of ticks pointing outwards (spatial coordinates)
tickLengthlength of the ticks
styletick style (none, inside, outside, both)
colortick color
flipif true, the orientation of ticks is flipped (only affects inside/outside ticks). This is, e.g., used for axis at the top (default tick outside location is bottom/left)
Returns
mesh containing of ticks, each tick is represented by two positions and matching colors

◆ getMajorTickPositions()

std::vector<double> inviwo::plot::getMajorTickPositions ( const AxisSettings settings,
size_t  maxTicks = 1000 
)
inline

returns tick positions along the axis range defined in the axis property

Parameters
settingsaxis property used for tick settings
maxTicksmaximum number of ticks
Returns
positions of tick marks