Public Member Functions | Public Attributes | Friends

Fiber::GridSelector Struct Reference

Context information to select a grid from within a bundle. More...

#include <GridSelector.hpp>

List of all members.

Public Member Functions

Public Attributes

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]

Convenience function to easily retrieve just the most recent Grid for a given time.

Calls findMostRecentGrid() .