FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
GridField.hpp
1#ifndef __FIBER_BASEOP_GRIDFIELD_HPP
2#define __FIBER_BASEOP_GRIDFIELD_HPP
3
4#include "gridopDllApi.h"
5#include <bundle/Bundle.hpp>
6#include <bundle/FieldSelector.hpp>
7
8
9namespace Fiber
10{
11
19{
20 Info<Grid> GI;
21
22 RefPtr<Grid> theGrid;
23 RefPtr<Field> theField;
24
25 GridField();
26
27 GridField(const GridSelector&GS, const FieldSelector&FS, double time, const Fiber::BundlePtr&SpaceTime = Fiber::BundlePtr(NullPtr() ) );
28
29 RefPtr<Grid> getGrid() const { return theGrid; }
30
32 RefPtr<Field> getField() const { return theField; }
33
37 double getTime() const { return GI.getTime(); }
38
39 operator RefPtr<Grid> () const { return getGrid(); }
40 operator RefPtr<Field> () const { return getField(); }
41};
42
43}
44
45#endif // __FIBER_BASEOP_GRIDFIELD_HPP
Convenience class that implements a pointer to a Bundle object but adds some useful member funtions t...
Definition Bundle.hpp:779
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
An internal class that stores a couple of textual names.
Definition FieldSelector.hpp:18
Context information to select a grid from within a bundle.
Definition GridSelector.hpp:26
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
std::nullptr_t NullPtr
Definition fs/init.hpp:20
A helper class to retrieve fields given on a Grid.
Definition GridField.hpp:19
RefPtr< Field > getField() const
Retrieve field.
Definition GridField.hpp:32
double getTime() const
Return the time when the Grid was found.
Definition GridField.hpp:37