FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
BundleInput.hpp
1#ifndef __FIBERVISH_BUNDLEINPUT_HPP
2#define __FIBERVISH_BUNDLEINPUT_HPP
3
4#include "fish/fiber/bundle/Bundle.hpp"
5#include "ocean/plankton/VPipeline.hpp"
6
7namespace Wizt
8{
9 template <>
11 {
12 static bool setValueFromText(Fiber::BundlePtr&i, const string&s)
13 {
14 return false;
15 }
16
17 static string Text(const Fiber::BundlePtr&BP)
18 {
19 if (!BP)
20 return "(null)";
21
22 return string("<Bundle>") +
23 VValueTrait<int>::Text( BP->sizeP1D() ) +
24 string("</Bundle>");
25 }
26 };
27
28 template <>
30 {
31 static void init(const Fiber::BundlePtr&)
32 {}
33
34 static bool setValueFromText(Fiber::BundlePtr&, const string&s)
35 {
36 // load data here?
37 return false;
38 }
39 };
40}
41
42
43namespace Fiber
44{
45using namespace Wizt;
46
47class BundleInput : public VInputValue<Fiber::BundlePtr>
48{
49public:
52 {}
53
54 void valueChanged(const RefPtr<VValueBase>&,
55 const ValuePoolPtr&,
56 const ValueNotifierList*, const ValueMap*) override
57 {
58 puts("BundleInput: valueChanged() - TOUCH");
59 touch( NullPtr() );
60 }
61};
62
63
64} // namespace Fiber
65
66#endif
67
basic_string< char > string
Definition BundleInput.hpp:48
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
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
std::nullptr_t NullPtr
note: cannot derive from FloatingSkeletonRenderer as long as independent base class TriangleRenderer ...