19#ifndef _vctPlot2DBase_h
20#define _vctPlot2DBase_h
61 Signal(
const std::string & name,
size_t numberOfPoints,
size_t pointDimension = 2);
87 void SetArrayAt(
size_t index,
const double * pointArray,
size_t arraySize,
size_t pointDimension = 2)
CISST_THROW(
std::runtime_error);
94 bool PrependArray(const
double * pointArray,
size_t arraySize,
size_t pointDimension = 2)
CISST_THROW(
std::runtime_error);
101 bool AppendArray(const
double * pointArray,
size_t arraySize,
size_t pointDimension = 2)
CISST_THROW(
std::runtime_error);
136 void Resize(
size_t numberOfPoints,
bool trimOlder = true);
198 Scale(
const std::string & name,
size_t pointDimension = 2);
267 void FitX(
double min,
double max,
double padding = 0.0);
270 void FitY(
double min,
double max,
double padding = 0.1);
352 void FitX(
double min,
double max,
double padding = 0.0);
354 void FitY(
double min,
double max,
double padding = 0.1);
Definition vctForwardDeclarations.h:131
Definition vctForwardDeclarations.h:89
Definition vctPlot2DBase.h:184
void AutoFitXExpandY(const vctDouble2 &padding=vctDouble2(0.0, 0.1))
void SetContinuousExpandY(bool expand)
bool RemoveSignal(const Signal *signal)
Scale(const std::string &name, size_t pointDimension=2)
void FitY(double min, double max, double padding=0.1)
void FitX(double min, double max, double padding=0.0)
double ExpandYMax
Definition vctPlot2DBase.h:280
const vctDouble2 & GetViewingRangeY(void)
Definition vctPlot2DBase.h:240
bool GetFreeze(void) const
bool ContinuousFitY
Definition vctPlot2DBase.h:278
friend class vctPlot2DOpenGL
Definition vctPlot2DBase.h:186
vctDouble2 Translation
Definition vctPlot2DBase.h:286
bool GetContinuousExpandY(void) const
Definition vctPlot2DBase.h:234
bool GetContinuousFitY(void) const
Definition vctPlot2DBase.h:231
vctDouble2 Viewport
Definition vctPlot2DBase.h:283
void AutoExpandY(double padding=0.1)
bool ContinuousExpandY
Definition vctPlot2DBase.h:279
bool GetContinuousFitX(void) const
Definition vctPlot2DBase.h:228
const vctDouble2 & GetViewingRangeX(void)
Definition vctPlot2DBase.h:237
const SignalsType & GetSignals(void) const
Definition vctPlot2DBase.h:207
const std::string & GetName(void) const
bool ComputeDataRangeXY(vctDouble2 &min, vctDouble2 &max)
friend class vctPlot2DVTK
Definition vctPlot2DBase.h:187
void SetContinuousFitY(bool fit)
double ExpandYMin
Definition vctPlot2DBase.h:280
vctPlot2DBase::VerticalLine * AddVerticalLine(const std::string &name)
vctDouble2 ViewingRangeX
Definition vctPlot2DBase.h:285
bool ComputeDataRangeY(double &min, double &max)
bool RemoveSignal(const std::string &name)
SignalsType Signals
Definition vctPlot2DBase.h:192
friend class vctPlot2DBase
Definition vctPlot2DBase.h:185
void AutoFitXY(const vctDouble2 &padding=vctDouble2(0.0, 0.1))
bool ComputeDataRangeX(double &min, double &max, bool assumesDataSorted=false) const
VerticalLinesType VerticalLines
Definition vctPlot2DBase.h:196
void FitXY(vctDouble2 min, vctDouble2 max, const vctDouble2 &padding=vctDouble2(0.0, 0.1))
vctDouble2 ViewingRangeY
Definition vctPlot2DBase.h:285
std::map< std::string, VerticalLine * > VerticalLinesType
Definition vctPlot2DBase.h:195
vctPlot2DBase::Signal * AddSignal(const std::string &name)
vctDouble2 ScaleValue
Definition vctPlot2DBase.h:287
void AutoFitX(double padding=0.0)
void SetContinuousFitX(bool fit)
void ContinuousUpdate(void)
std::map< std::string, Signal * > SignalsType
Definition vctPlot2DBase.h:191
void AutoFitY(double padding=0.1)
bool ContinuousFitX
Definition vctPlot2DBase.h:277
void SetColor(const vctDouble3 &colorInRange0To1)
Definition vctPlot2DBase.h:55
void AppendPoint(const vctDouble2 &point)
void SetColor(const vctDouble3 &colorInRange0To1)
bool GetFreeze(void) const
void ComputeDataRangeY(double &min, double &max) const
void CISST_DEPRECATED AddPoint(const vctDouble2 &point)
friend class vctPlot2DBase::Scale
Definition vctPlot2DBase.h:57
void Resize(size_t numberOfPoints, bool trimOlder=true)
friend class vctPlot2DOpenGL
Definition vctPlot2DBase.h:58
bool Frozen
Definition vctPlot2DBase.h:149
size_t PointSize
Definition vctPlot2DBase.h:152
vctPlot2DBase::Signal * AddSignal(const std::string &name)
void ComputeDataRangeX(double &min, double &max, bool assumesDataSorted=false) const
size_t GetSize(void) const
void CISST_DEPRECATED GetNumberOfPoints(size_t &numberOfPoints, size_t &bufferSize) const
vctDouble2 GetPointAt(size_t index) CISST_THROW(std void SetPointAt(size_t index, const vctDouble2 &point) CISST_THROW(std void SetArrayAt(size_t index, const double *pointArray, size_t arraySize, size_t pointDimension=2) CISST_THROW(std bool PrependArray(const double *pointArray, size_t arraySize, size_t pointDimension=2) CISST_THROW(std bool AppendArray(const double *pointArray, size_t arraySize, size_t pointDimension=2) CISST_THROW(std void Freeze(bool freeze)
Definition vctPlot2DBase.h:103
friend class vctPlot2DVTK
Definition vctPlot2DBase.h:59
vctDynamicVector< PointRef > Data
Definition vctPlot2DBase.h:155
vctPlot2DBase::Scale * GetParent(void)
bool Empty
Definition vctPlot2DBase.h:147
double * Buffer
Definition vctPlot2DBase.h:151
bool Visible
Definition vctPlot2DBase.h:148
vctFixedSizeVectorRef< double, 2, 1 > PointRef
Definition vctPlot2DBase.h:154
vctDouble3 Color
Definition vctPlot2DBase.h:158
double LineWidth
Definition vctPlot2DBase.h:159
size_t IndexLast
Definition vctPlot2DBase.h:157
Signal(const std::string &name, size_t numberOfPoints, size_t pointDimension=2)
friend class vctPlot2DBase
Definition vctPlot2DBase.h:56
const std::string & GetName(void) const
void CISST_DEPRECATED SetNumberOfPoints(size_t numberOfPoints)
Scale * Parent
Definition vctPlot2DBase.h:144
bool IsVisible(void) const
void SetVisible(const bool visible)
void SetSize(size_t numberOfPoints)
size_t IndexFirst
Definition vctPlot2DBase.h:156
std::string Name
Definition vctPlot2DBase.h:146
void ComputeDataRangeXY(vctDouble2 &min, vctDouble2 &max) const
Definition vctPlot2DBase.h:164
friend class vctPlot2DOpenGL
Definition vctPlot2DBase.h:166
double LineWidth
Definition vctPlot2DBase.h:180
vctDouble3 Color
Definition vctPlot2DBase.h:179
double X
Definition vctPlot2DBase.h:177
std::string Name
Definition vctPlot2DBase.h:176
friend class vctPlot2DVTK
Definition vctPlot2DBase.h:167
void SetX(const double x)
bool Visible
Definition vctPlot2DBase.h:178
friend class vctPlot2DBase
Definition vctPlot2DBase.h:165
void SetColor(const vctDouble3 &colorInRange0To1)
VerticalLine(const std::string &name, const double x=0.0)
const vctDouble2 & GetViewingRangeX(void) const
Definition vctPlot2DBase.h:384
std::map< std::string, Scale * > ScalesType
Definition vctPlot2DBase.h:300
VerticalLine CISST_DEPRECATED * AddVerticalLine(const std::string &name)
vctPlot2DBase::Scale * AddScale(const std::string &name)
bool GetFreeze(void) const
void SetNumberOfPoints(size_t numberOfPoints)
vctDouble2 Viewport
Definition vctPlot2DBase.h:413
vctPlot2DBase(size_t PointSize=2)
size_t PointSize
Definition vctPlot2DBase.h:407
ScalesType & GetScales(void)
Definition vctPlot2DBase.h:318
ScalesType Scales
Definition vctPlot2DBase.h:301
vctDouble2 ViewingRangeY
Definition vctPlot2DBase.h:415
Signal CISST_DEPRECATED * AddSignal(const std::string &name)
bool GetContinuousFitY(void) const
vctDouble3 BackgroundColor
Definition vctPlot2DBase.h:422
virtual void RenderResize(double width, double height)=0
vctPlot2DBase::Scale * FindScale(const std::string &name)
bool RemoveScale(const vctPlot2DBase::Scale *scale)
void AutoFitX(double padding=0.0)
bool RemoveScale(const std::string &name)
void SetContinuousExpandY(bool expand)
void AutoFitY(double padding=0.1)
vctDouble2 ViewingRangeX
Definition vctPlot2DBase.h:415
virtual void RenderInitialize(void)=0
const vctDouble2 & GetViewingRangeY(void) const
Definition vctPlot2DBase.h:387
void FitX(double min, double max, double padding=0.0)
void SetContinuousFitX(bool fit)
bool GetContinuousExpandY(void) const
void SetContinuousFitY(bool fit)
size_t NumberOfPoints
Definition vctPlot2DBase.h:410
virtual void Render(void)=0
void SetBackgroundColor(const vctDouble3 &colorInRange0To1)
bool GetContinuousFitX(void) const
void FitY(double min, double max, double padding=0.1)
void ContinuousUpdate(void)
#define CISST_EXPORT
Definition cmnExportMacros.h:50
#define CISST_DEPRECATED
Definition cmnPortability.h:314
#define CISST_THROW(exceptionParameter)
Somewhat portable compilation warning message. This works with very recent versions of gcc (4....
Definition cmnPortability.h:559
size_type height() const
Definition vctDynamicConstMatrixBase.h:248
size_type width() const
Definition vctDynamicConstMatrixBase.h:253
Declaration of vctDynamicVector.
Typedef for dynamic vectors.
Macros to export the symbols of cisstVector (in a Dll).
Typedef for fixed size vectors.
vctFixedSizeVector< double, 3 > vctDouble3
Definition vctFixedSizeVectorTypes.h:45
vctFixedSizeVector< double, 2 > vctDouble2
Definition vctFixedSizeVectorTypes.h:40