NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
PlotAssetManager Class Reference

This class combines the plotassets into a single structure. More...

#include <plotasset.hpp>

Collaboration diagram for PlotAssetManager:

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< PlotAssetassets
 

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
 

Detailed Description

This class combines the plotassets into a single structure.

Definition at line 190 of file plotasset.hpp.

Member Enumeration Documentation

◆ DataIntervalNames

Enumerator
REAL 
IMAG 
REIM 
ABSREIM 
DATIVLCOUNT 

Definition at line 195 of file plotasset.hpp.

Member Function Documentation

◆ applyCoordSys()

void PlotAssetManager::applyCoordSys ( CoordinateSystem  coords,
size_t  every = 1 
)

Apply the necessary transformation for the selected coordinate system to the managed assets.

Parameters
coordsCoordinateSystem
everysize_t
Returns
void

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().

◆ getAxisIntervalsOfType()

IntervalSet PlotAssetManager::getAxisIntervalsOfType ( PlotType  t) const
private

Returns the axis intervals of the selected type.

Parameters
tPlotType
Returns
IntervalSet

Definition at line 461 of file plotasset.cpp.

References assets, IntervalSet::intervals, and min.

Referenced by getDataAxes(), and getFunctionAxes().

◆ getDataAxes()

IntervalSet PlotAssetManager::getDataAxes ( ) const

Returns the axis intervals of data plots.

Returns
IntervalSet

Definition at line 606 of file plotasset.cpp.

References getAxisIntervalsOfType(), and PT_DATA.

Here is the call graph for this function:

◆ getDataIntervals()

IntervalSet PlotAssetManager::getDataIntervals ( int  coord = ALLRANGES) const

Returns the intervals fitting to all selected data.

Parameters
coordint
Returns
IntervalSet

Definition at line 532 of file plotasset.cpp.

References getIntervalsOfType(), and PT_DATA.

Referenced by Plot::fitPlotRanges().

Here is the call graph for this function:

◆ getFunctionAxes()

IntervalSet PlotAssetManager::getFunctionAxes ( ) const

Returns the axis intervals of function plots.

Returns
IntervalSet

Definition at line 619 of file plotasset.cpp.

References getAxisIntervalsOfType(), and PT_FUNCTION.

Here is the call graph for this function:

◆ getFunctionIntervals()

IntervalSet PlotAssetManager::getFunctionIntervals ( int  coord = ALLRANGES) const

Returns the intervals fitting to all selected data.

Parameters
coordint
Returns
IntervalSet

Definition at line 546 of file plotasset.cpp.

References getIntervalsOfType(), and PT_FUNCTION.

Referenced by Plot::fitPlotRanges(), and Plot::passRangesToGraph().

Here is the call graph for this function:

◆ getIntervalsOfType()

IntervalSet PlotAssetManager::getIntervalsOfType ( PlotType  t,
int  coord 
) const
private

Returns the intervals fitting to all selected data and type.

Parameters
tPlotType
coordint
Returns
IntervalSet

Definition at line 413 of file plotasset.cpp.

References ALLRANGES, assets, DATIVLCOUNT, IntervalSet::intervals, ONLYLEFT, and ONLYRIGHT.

Referenced by getDataIntervals(), and getFunctionIntervals().

◆ getWeightedFunctionIntervals()

IntervalSet PlotAssetManager::getWeightedFunctionIntervals ( int  coord = ALLRANGES,
double  dLowerPercentage = 1.0,
double  dUpperPercentage = 1.0 
) const

Returns the central function quantiles.

Parameters
coordint
dLowerPercentagedouble
dUpperPercentagedouble
Returns
IntervalSet

Definition at line 561 of file plotasset.cpp.

References ALLRANGES, assets, IMAG, IntervalSet::intervals, ONLYLEFT, ONLYRIGHT, PT_FUNCTION, and REAL.

Referenced by weightedRange().

◆ hasDataPlots()

bool PlotAssetManager::hasDataPlots ( ) const

Returns true, if the manager contains some data plots.

Returns
bool

Definition at line 666 of file plotasset.cpp.

References assets, and PT_DATA.

Referenced by Plot::defaultRanges(), Plot::fitPlotRanges(), and Plot::passRangesToGraph().

◆ normalize()

void PlotAssetManager::normalize ( int  t_animate)

Normalize the managed data to be below 1 (or the starting amplitude in an animation).

Parameters
t_animateint
Returns
void

Definition at line 489 of file plotasset.cpp.

References assets, IMAG, m_maxnorm, max, min, and REAL.

Referenced by Plot::createPlotOrAnimation().

◆ weightedRange()

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.

Parameters
coordint
ivlInterval&
Returns
void

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().

Here is the call graph for this function:

Member Data Documentation

◆ assets

◆ m_maxnorm

std::pair<double,double> PlotAssetManager::m_maxnorm
private

Definition at line 205 of file plotasset.hpp.

Referenced by normalize().


The documentation for this class was generated from the following files: