FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
GridInfo.hpp
1#ifndef __FIBER_GRIDINFO_HPP
2#define __FIBER_GRIDINFO_HPP
3
4#include "Info.hpp"
5#include "Slice.hpp"
6#include "SliceInfo.hpp"
7
8namespace Fiber
9{
10 using std::list;
11 using std::string;
12
19template <>
20struct BUNDLE_API Info<Grid> : Info<Slice>
21{
22 RefPtr<Grid> myGrid;
23
25 const RefPtr<Grid>&getGrid() const { return myGrid; }
26
28 operator const RefPtr<Grid>&() const { return myGrid; }
29
33 Info(double t=0, const RefPtr<Slice>&S = NullPtr(), const RefPtr<Grid>&G = NullPtr() )
34 : Info<Slice>(t,S), myGrid(G)
35 {}
36
37 ~Info();
38
40 bool isValid() const
41 {
42 return getGrid();
43 }
44
46 operator bool () const { return isValid(); }
47
49 bool operator! () const { return !isValid(); }
50};
51
52
53} /* namespace Fiber */
54
55#endif /* __FIBER_GRIDINFO_HPP */
basic_string< char > string
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
Information per time slice, mainly a set of Grid objects that are accessed via GridID objects.
Definition Slice.hpp:36
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
std::nullptr_t NullPtr
const RefPtr< Grid > & getGrid() const
Get the grid object.
Definition GridInfo.hpp:25
Info(double t=0, const RefPtr< Slice > &S=NullPtr(), const RefPtr< Grid > &G=NullPtr())
Complete constructor, with specifying the context of a Grid object.
Definition GridInfo.hpp:33
bool isValid() const
Check for validity by testing the associated slice.
Definition GridInfo.hpp:40
Generic template namespace class for results of find() functions throughout the Bundle.
Definition Info.hpp:17