Context information to select a grid from within a bundle.
More...
#include <GridSelector.hpp>
List of all members.
Public Member Functions
-
const string & getGridname () const
- Name of the selected grid (member function).
-
GridSelector ()
- Default Construct.
-
GridSelector (const string &gridname, const Fiber::BundlePtr &Source=Fiber::BundlePtr(NullPtr()))
- Construct from gridname and bundle.
-
GridSelector (const Fiber::BundlePtr &Source, const string &gridname)
- Construct from bundle and gridname.
-
~GridSelector ()
- Destructor.
-
const string & Gridname () const
- Return the name of the currently selected Grid.
-
const Fiber::BundlePtr & BundleSource () const
- Provide the original bundle of from where the Grid was selected.
-
const Fiber::BundlePtr & getBundle () const
- Provide the original bundle of from where the Grid was selected.
-
bool selectGrid (const string &name)
- Select a certain grid out of the given spacetime.
- Info< Grid > findMostRecentGrid (const Fiber::BundlePtr &theSpacetime, double time) const
- Return the time, slice and grid that is most recent to the given time for the selected grid.
-
Info< Grid > findMostRecentGrid (double time, const Fiber::BundlePtr &theSpacetime=Fiber::BundlePtr(NullPtr())) const
- Find the Grid that is most recent for the given time.
- Info< Skeleton > getRefinementLevel (double time, int Level, int IndexDepth, const BundlePtr &SpaceTime=BundlePtr(NullPtr()))
- Retrieve a skeleton for the given refinement level for the current time.
-
Info< Grid > findPrev (double time, const BundlePtr &theSpacetime=BundlePtr(NullPtr())) const
- Return the Grid that is just previous to the given time.
-
Info< Grid > findNext (double time, const BundlePtr &theSpacetime=BundlePtr(NullPtr())) const
- Return the Grid that is just next after the given time.
-
Fiber::Grid & operator[] (double time)
- RefPtr< Fiber::Grid > operator() (double time, const Fiber::BundlePtr &theSpacetime=Fiber::BundlePtr(NullPtr())) const
- Convenience function to easily retrieve just the most recent Grid for a given time.
-
RefPtr< Fiber::Grid > operator() (double time, const GridSelector &GS)
Public Attributes
-
BundlePtr theSourceBundle
- The bundle that was used to retrieve the grid name, meaning: the selected grid name is ensured to exist on this bundle.
-
string theGridname
- Name of the selected grid.
Friends
Detailed Description
Context information to select a grid from within a bundle.
Note that an actual Grid is not stored here, just the means to select one from a Bundle. The index for the Bundle's parameter space value must be specified to access a particular Grid object (which, in the simplest case, is a one-dimensional time value).
- Examples:
-
BoundingBox.cpp, ColoredLines.cpp, EvolutionSurface.cpp, GlossyLines.cpp, HelicalLines.cpp, Sphere.cpp, and TransparentColoredSurface.cpp.
Member Function Documentation
Info<Grid> Fiber::GridSelector::findMostRecentGrid |
( |
const Fiber::BundlePtr & |
theSpacetime, |
|
|
double |
time | |
|
) |
| | const [inline] |
Return the time, slice and grid that is most recent to the given time for the selected grid.
REVISE THIS
Info<Skeleton> Fiber::GridSelector::getRefinementLevel |
( |
double |
time, |
|
|
int |
Level, |
|
|
int |
IndexDepth, |
|
|
const BundlePtr & |
SpaceTime = BundlePtr(NullPtr()) | |
|
) |
| | |
Retrieve a skeleton for the given refinement level for the current time.
- Parameters:
-
| Level | The 2-logarithm of the refinement, root level is 0, 1st level is refinement 2, 2nd level is refinement 4. |
- Examples:
- GlossyLines.cpp.
RefPtr<Fiber::Grid> Fiber::GridSelector::operator() |
( |
double |
time, |
|
|
const Fiber::BundlePtr & |
theSpacetime = Fiber::BundlePtr(NullPtr() ) | |
|
) |
| | const [inline] |