NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class combines the plotassets into a single structure. More...
#include <plotasset.hpp>
Public Types | |
enum | DataIntervalNames { REAL , IMAG , REIM , ABSREIM , DATIVLCOUNT } |
Public Member Functions | |
void | normalize (int t_animate) |
Normalize the managed data to be below 1 (or the starting amplitude in an animation). More... | |
IntervalSet | getDataIntervals (int coord=ALLRANGES) const |
Returns the intervals fitting to all selected data. More... | |
IntervalSet | getFunctionIntervals (int coord=ALLRANGES) const |
Returns the intervals fitting to all selected data. More... | |
IntervalSet | getWeightedFunctionIntervals (int coord=ALLRANGES, double dLowerPercentage=1.0, double dUpperPercentage=1.0) const |
Returns the central function quantiles. More... | |
IntervalSet | getFunctionAxes () const |
Returns the axis intervals of function plots. More... | |
IntervalSet | getDataAxes () const |
Returns the axis intervals of data plots. More... | |
void | weightedRange (int coord, Interval &ivl) const |
This member function does the "undefined data point" magic, where the range of the plot is chosen so that "infinity" values are ignored. More... | |
bool | hasDataPlots () const |
Returns true, if the manager contains some data plots. More... | |
void | applyCoordSys (CoordinateSystem coords, size_t every=1) |
Apply the necessary transformation for the selected coordinate system to the managed assets. More... | |
Public Attributes | |
std::vector< PlotAsset > | assets |
Private Member Functions | |
IntervalSet | getIntervalsOfType (PlotType t, int coord) const |
Returns the intervals fitting to all selected data and type. More... | |
IntervalSet | getAxisIntervalsOfType (PlotType t) const |
Returns the axis intervals of the selected type. More... | |
Private Attributes | |
std::pair< double, double > | m_maxnorm |
This class combines the plotassets into a single structure.
Definition at line 190 of file plotasset.hpp.
Enumerator | |
---|---|
REAL | |
IMAG | |
REIM | |
ABSREIM | |
DATIVLCOUNT |
Definition at line 195 of file plotasset.hpp.
void PlotAssetManager::applyCoordSys | ( | CoordinateSystem | coords, |
size_t | every = 1 |
||
) |
Apply the necessary transformation for the selected coordinate system to the managed assets.
coords | CoordinateSystem |
every | size_t |
Definition at line 688 of file plotasset.cpp.
References assets, CARTESIAN, M_PI, POLAR_PZ, POLAR_RP, POLAR_RZ, SPHERICAL_PT, SPHERICAL_RP, SPHERICAL_RT, XCOORD, YCOORD, and ZCOORD.
Referenced by Plot::create2dPlot(), Plot::create3dPlot(), Plot::createStd3dPlot(), and Plot::createStdPlot().
|
private |
Returns the axis intervals of the selected type.
t | PlotType |
Definition at line 461 of file plotasset.cpp.
References assets, IntervalSet::intervals, and min.
Referenced by getDataAxes(), and getFunctionAxes().
IntervalSet PlotAssetManager::getDataAxes | ( | ) | const |
Returns the axis intervals of data plots.
Definition at line 606 of file plotasset.cpp.
References getAxisIntervalsOfType(), and PT_DATA.
IntervalSet PlotAssetManager::getDataIntervals | ( | int | coord = ALLRANGES | ) | const |
Returns the intervals fitting to all selected data.
coord | int |
Definition at line 532 of file plotasset.cpp.
References getIntervalsOfType(), and PT_DATA.
Referenced by Plot::fitPlotRanges().
IntervalSet PlotAssetManager::getFunctionAxes | ( | ) | const |
Returns the axis intervals of function plots.
Definition at line 619 of file plotasset.cpp.
References getAxisIntervalsOfType(), and PT_FUNCTION.
IntervalSet PlotAssetManager::getFunctionIntervals | ( | int | coord = ALLRANGES | ) | const |
Returns the intervals fitting to all selected data.
coord | int |
Definition at line 546 of file plotasset.cpp.
References getIntervalsOfType(), and PT_FUNCTION.
Referenced by Plot::fitPlotRanges(), and Plot::passRangesToGraph().
|
private |
Returns the intervals fitting to all selected data and type.
t | PlotType |
coord | int |
Definition at line 413 of file plotasset.cpp.
References ALLRANGES, assets, DATIVLCOUNT, IntervalSet::intervals, ONLYLEFT, and ONLYRIGHT.
Referenced by getDataIntervals(), and getFunctionIntervals().
IntervalSet PlotAssetManager::getWeightedFunctionIntervals | ( | int | coord = ALLRANGES , |
double | dLowerPercentage = 1.0 , |
||
double | dUpperPercentage = 1.0 |
||
) | const |
Returns the central function quantiles.
coord | int |
dLowerPercentage | double |
dUpperPercentage | double |
Definition at line 561 of file plotasset.cpp.
References ALLRANGES, assets, IMAG, IntervalSet::intervals, ONLYLEFT, ONLYRIGHT, PT_FUNCTION, and REAL.
Referenced by weightedRange().
bool PlotAssetManager::hasDataPlots | ( | ) | const |
Returns true, if the manager contains some data plots.
Definition at line 666 of file plotasset.cpp.
References assets, and PT_DATA.
Referenced by Plot::defaultRanges(), Plot::fitPlotRanges(), and Plot::passRangesToGraph().
void PlotAssetManager::normalize | ( | int | t_animate | ) |
Normalize the managed data to be below 1 (or the starting amplitude in an animation).
t_animate | int |
Definition at line 489 of file plotasset.cpp.
References assets, IMAG, m_maxnorm, max, min, and REAL.
Referenced by Plot::createPlotOrAnimation().
void PlotAssetManager::weightedRange | ( | int | coord, |
Interval & | ivl | ||
) | const |
This member function does the "undefined data point" magic, where the range of the plot is chosen so that "infinity" values are ignored.
coord | int |
ivl | Interval& |
Definition at line 636 of file plotasset.cpp.
References ALLRANGES, getWeightedFunctionIntervals(), Interval::max(), Interval::min(), and Interval::range().
Referenced by Plot::create3dPlot(), Plot::fitPlotRanges(), and Plot::passRangesToGraph().
std::vector<PlotAsset> PlotAssetManager::assets |
Definition at line 193 of file plotasset.hpp.
Referenced by applyCoordSys(), Plot::clearData(), Plot::create2dPlot(), Plot::create2dVect(), Plot::create3dPlot(), Plot::create3dVect(), Plot::createDataLegends(), Plot::createStd3dPlot(), Plot::createStdPlot(), Plot::createSubPlotSet(), Plot::extractDataValues(), Plot::fillData(), getAxisIntervalsOfType(), getIntervalsOfType(), getWeightedFunctionIntervals(), hasDataPlots(), normalize(), Plot::passRangesToGraph(), Plot::prepareMemory(), and Plot::separateFunctionsAndData().
|
private |
Definition at line 205 of file plotasset.hpp.
Referenced by normalize().