#include <vctPlot2DBase.h>
|
| Scale (const std::string &name, size_t pointDimension=2) |
|
| ~Scale () |
|
const std::string & | GetName (void) const |
|
vctPlot2DBase::Signal * | AddSignal (const std::string &name) |
|
bool | RemoveSignal (const std::string &name) |
|
bool | RemoveSignal (const Signal *signal) |
|
const SignalsType & | GetSignals (void) const |
|
vctPlot2DBase::VerticalLine * | AddVerticalLine (const std::string &name) |
|
void | SetColor (const vctDouble3 &colorInRange0To1) |
|
void | Freeze (bool freeze) |
|
bool | GetFreeze (void) const |
|
void | ContinuousUpdate (void) |
|
|
void | SetContinuousFitX (bool fit) |
|
void | SetContinuousFitY (bool fit) |
|
void | SetContinuousExpandY (bool expand) |
|
|
bool | GetContinuousFitX (void) const |
|
bool | GetContinuousFitY (void) const |
|
bool | GetContinuousExpandY (void) const |
|
const vctDouble2 & | GetViewingRangeX (void) |
|
const vctDouble2 & | GetViewingRangeY (void) |
|
|
bool | ComputeDataRangeX (double &min, double &max, bool assumesDataSorted=false) const |
|
bool | ComputeDataRangeY (double &min, double &max) |
|
bool | ComputeDataRangeXY (vctDouble2 &min, vctDouble2 &max) |
|
|
void | AutoFitX (double padding=0.0) |
|
void | FitX (double min, double max, double padding=0.0) |
|
void | AutoFitY (double padding=0.1) |
|
void | AutoExpandY (double padding=0.1) |
|
void | FitY (double min, double max, double padding=0.1) |
|
void | AutoFitXY (const vctDouble2 &padding=vctDouble2(0.0, 0.1)) |
|
void | AutoFitXExpandY (const vctDouble2 &padding=vctDouble2(0.0, 0.1)) |
|
void | FitXY (vctDouble2 min, vctDouble2 max, const vctDouble2 &padding=vctDouble2(0.0, 0.1)) |
|
vctPlot2DBase::Scale::Scale |
( |
const std::string & |
name, |
|
|
size_t |
pointDimension = 2 |
|
) |
| |
vctPlot2DBase::Scale::~Scale |
( |
| ) |
|
void vctPlot2DBase::Scale::AutoExpandY |
( |
double |
padding = 0.1 | ) |
|
void vctPlot2DBase::Scale::AutoFitX |
( |
double |
padding = 0.0 | ) |
|
Data recentering, these methods re-align the data once only, based on all signals. Padding is used to make sure the data is not plotted at the extreme edges of the window. The padding parameter indicates the percentage of space that should be left empty. For example, a 200 pixel window with a padding of 0.1 (10%) will leave a band of 10 pixels empty on each side of the window. By default, the padding in X (horizontal) is null and 10% (0.1) in Y (vertical).
void vctPlot2DBase::Scale::AutoFitY |
( |
double |
padding = 0.1 | ) |
|
bool vctPlot2DBase::Scale::ComputeDataRangeX |
( |
double & |
min, |
|
|
double & |
max, |
|
|
bool |
assumesDataSorted = false |
|
) |
| const |
To fit the data in the viewport we need to compute the range for all signals. To reduce the number of computations, three methods are provided, one that compute the X range only, one for the Y range only and one for both X and Y. Each method calls the corresponding compute data range for all signals in the scale.
bool vctPlot2DBase::Scale::ComputeDataRangeY |
( |
double & |
min, |
|
|
double & |
max |
|
) |
| |
void vctPlot2DBase::Scale::ContinuousUpdate |
( |
void |
| ) |
|
void vctPlot2DBase::Scale::FitX |
( |
double |
min, |
|
|
double |
max, |
|
|
double |
padding = 0.0 |
|
) |
| |
void vctPlot2DBase::Scale::FitY |
( |
double |
min, |
|
|
double |
max, |
|
|
double |
padding = 0.1 |
|
) |
| |
void vctPlot2DBase::Scale::Freeze |
( |
bool |
freeze | ) |
|
bool vctPlot2DBase::Scale::GetContinuousExpandY |
( |
void |
| ) |
const |
|
inline |
bool vctPlot2DBase::Scale::GetContinuousFitX |
( |
void |
| ) |
const |
|
inline |
Query automatic recentering settings.
bool vctPlot2DBase::Scale::GetContinuousFitY |
( |
void |
| ) |
const |
|
inline |
bool vctPlot2DBase::Scale::GetFreeze |
( |
void |
| ) |
const |
const std::string& vctPlot2DBase::Scale::GetName |
( |
void |
| ) |
const |
const SignalsType& vctPlot2DBase::Scale::GetSignals |
( |
void |
| ) |
const |
|
inline |
const vctDouble2& vctPlot2DBase::Scale::GetViewingRangeX |
( |
void |
| ) |
|
|
inline |
const vctDouble2& vctPlot2DBase::Scale::GetViewingRangeY |
( |
void |
| ) |
|
|
inline |
bool vctPlot2DBase::Scale::RemoveSignal |
( |
const std::string & |
name | ) |
|
bool vctPlot2DBase::Scale::RemoveSignal |
( |
const Signal * |
signal | ) |
|
void vctPlot2DBase::Scale::SetColor |
( |
const vctDouble3 & |
colorInRange0To1 | ) |
|
void vctPlot2DBase::Scale::SetContinuousExpandY |
( |
bool |
expand | ) |
|
void vctPlot2DBase::Scale::SetContinuousFitX |
( |
bool |
fit | ) |
|
Set options to tell Continuous update how to recenter the scale based on the signals.
void vctPlot2DBase::Scale::SetContinuousFitY |
( |
bool |
fit | ) |
|
friend class vctPlot2DVTK |
|
friend |
bool vctPlot2DBase::Scale::ContinuousExpandY |
|
protected |
bool vctPlot2DBase::Scale::ContinuousFitX |
|
protected |
bool vctPlot2DBase::Scale::ContinuousFitY |
|
protected |
double vctPlot2DBase::Scale::ExpandYMax |
|
protected |
double vctPlot2DBase::Scale::ExpandYMin |
|
protected |
The documentation for this class was generated from the following file: