1#ifndef QWT3D_WATERFALL_H
2#define QWT3D_WATERFALL_H
4#include "qwt3d_plotitem.h"
5#include "qwt3d_types.h"
6#include "qwt3d_color.h"
78 void setTraceCapacity(
int count);
80 int traceCount()
const;
82 int samplesPerTrace()
const;
85 void pushTrace(
const double* values,
int count);
113 void setColor(
RGBA color);
122 void invalidateColors();
126 void setColorRange(
double min,
double max);
128 void resetColorRange();
130 bool hasFixedColorRange()
const;
134 double baseline()
const;
136 void setBaseline(
double value);
138 void resetBaseline();
141 double opacity()
const;
143 void setOpacity(
double alpha);
146 RGBA outlineColor()
const;
148 void setOutlineColor(
RGBA color);
150 double outlineWidth()
const;
152 void setOutlineWidth(
double width);
156 int rtti()
const override;
157 void draw()
override;
163 void buildOutlineVBO();
165 void pushColorRange()
const;
166 void ensureDataColor();
Definition qwt_clipper.h:41
Abstract base class for color functors.
Definition qwt3d_color.h:25
Base class for all 3D plot items.
Definition qwt3d_plotitem.h:55
virtual ParallelEpiped hull() const =0
Get the bounding hull of the item in 3D space.
virtual int rtti() const
Runtime type information.
Definition qwt3d_plotitem.cpp:192
virtual void draw()=0
Draw the item using the current GL context.
virtual void populateLegendColors(ColorVector &colors) const
Populate the legend color vector from the item's color functor.
Definition qwt3d_plotitem.cpp:181
3D waterfall plot item with a built-in sliding window
Definition qwt3d_waterfall.h:42
ColorMode
Where the per-vertex color comes from.
Definition qwt3d_waterfall.h:57
@ ByDepth
Colormap over the trace position in the window (default)
Definition qwt3d_waterfall.h:58
@ ByAmplitude
Colormap over the sample value.
Definition qwt3d_waterfall.h:59
int traceCapacity() const
Returns the number of visible traces (window size)
PlotStyle
Geometry style of a trace.
Definition qwt3d_waterfall.h:48
@ Ribbon
Filled curtain from the baseline up to the trace (default)
Definition qwt3d_waterfall.h:49
@ RibbonMesh
Ribbon plus a line outline drawn on top.
Definition qwt3d_waterfall.h:50
@ Wireframe
Line outline only (no fill)
Definition qwt3d_waterfall.h:51
DepthOrder
Depth direction of the sliding window.
Definition qwt3d_waterfall.h:65
@ NewestInFront
The newest trace sits at the largest y (default)
Definition qwt3d_waterfall.h:66
Parallelepiped spanned by 2 Triples.
Definition qwt3d_types.h:334
Red-Green-Blue-Alpha value.
Definition qwt3d_types.h:395