FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
SkeletonInfo.hpp
1#ifndef __FIBER_SKELETONINFO_HPP
2#define __FIBER_SKELETONINFO_HPP
3
4#include "Info.hpp"
5#include "Slice.hpp"
6#include "SliceInfo.hpp"
7#include "GridInfo.hpp"
8
9namespace Fiber
10{
11
18template <>
20{
21 RefPtr<Skeleton> mySkeleton;
22
23 const RefPtr<Skeleton>&getSkeleton() const { return mySkeleton; }
24
26 operator const RefPtr<Skeleton>&() const
27 {
28 return getSkeleton();
29 }
30
32 Info(double t=0, const RefPtr<Slice>&S = NullPtr(), const RefPtr<Grid>&G = NullPtr(),
33 const RefPtr<Skeleton>&Skel = NullPtr() )
34 : Info<Grid>(t,S,G), mySkeleton( Skel )
35 {}
36
39 const RefPtr<Skeleton>&Skel = nullptr )
40 : Info<Grid>( iG )
41 , mySkeleton( Skel )
42 {}
43
46 {
47 if (!getGrid() ) return NullPtr();
48 if (!getSkeleton() ) return NullPtr();
49
50 return getGrid()->getCartesianRepresentation( *getSkeleton(), ChartName );
51 }
52};
53
54
55
56} /* namespace Fiber */
57
58#endif /* __FIBER_SKELETONINFO_HPP */
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
A Skeleton is a set of Representation object, each of them accessed by an Representer object.
Definition Skeleton.hpp:102
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
std::nullptr_t NullPtr
Info(double t=0, const RefPtr< Slice > &S=NullPtr(), const RefPtr< Grid > &G=NullPtr(), const RefPtr< Skeleton > &Skel=NullPtr())
Constructor.
Definition SkeletonInfo.hpp:32
RefPtr< Representation > getCartesianRepresentation(const string &ChartName=string()) const
Get a representation of this Skeleton in cartesian coordinates.
Definition SkeletonInfo.hpp:45
Info(const Info< Grid > &iG, const RefPtr< Skeleton > &Skel=nullptr)
Constructor.
Definition SkeletonInfo.hpp:38
Generic template namespace class for results of find() functions throughout the Bundle.
Definition Info.hpp:17