FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
RepresentationInfo.hpp
1#ifndef __FIBER_REPRESENTATIONINFO_HPP
2#define __FIBER_REPRESENTATIONINFO_HPP
3
4#include "Info.hpp"
5#include "Slice.hpp"
6#include "SkeletonInfo.hpp"
7
8namespace Fiber
9{
10 using std::list;
11 using std::string;
12
17template <>
19{
20 RefPtr<Representation> myRepresentation;
21 RefPtr<Chart> myChart;
22
23 const RefPtr<Representation>&getRepresentation() const { return myRepresentation; }
24
26 operator const RefPtr<Representation>&() const
27 {
28 return getRepresentation();
29 }
30
32 RefPtr<Field> getField(const string&Fieldname) const
33 {
34 if (!myRepresentation) return nullptr;
35 return (*myRepresentation)(Fieldname);
36 }
37
40 {
41 if (!myRepresentation) return nullptr;
42 return myRepresentation->getPositions();
43 }
44
46 Info(double t=0, const RefPtr<Slice>&S = nullptr, const RefPtr<Grid>&G = nullptr,
47 const RefPtr<Skeleton>&Skel = nullptr,
49 const RefPtr<Chart>&theChart = nullptr)
50 : Info<Skeleton>(t,S,G, Skel )
51 , myRepresentation(theRepresentation)
52 , myChart(theChart)
53 {}
54
57 const RefPtr<Chart>&theChart = nullptr)
58 : Info<Skeleton>( iS )
59 , myRepresentation(theRepresentation)
60 , myChart(theChart)
61 {}
62};
63
64
65
66} /* namespace Fiber */
67
68#endif /* __FIBER_REPRESENTATIONINFO_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 Representation is a set of Field objects, each of them accessed via some FieldID identifier.
Definition Representation.hpp:101
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
RefPtr< Field > getPositions() const
Get the positions if there is a valid Representation here.
Definition RepresentationInfo.hpp:39
RefPtr< Field > getField(const string &Fieldname) const
Get a field if there is a valid representation here.
Definition RepresentationInfo.hpp:32
Info(double t=0, const RefPtr< Slice > &S=nullptr, const RefPtr< Grid > &G=nullptr, const RefPtr< Skeleton > &Skel=nullptr, const RefPtr< Representation > &theRepresentation=nullptr, const RefPtr< Chart > &theChart=nullptr)
Constructor.
Definition RepresentationInfo.hpp:46
Generic template namespace class for results of find() functions throughout the Bundle.
Definition Info.hpp:17