FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
VGridObject.hpp
1#ifndef __VGRIDOBJECT_HPP
2#define __VGRIDOBJECT_HPP
3
4#include <ocean/plankton/VObjectValue.hpp>
5#include "VBundleObject.hpp"
6
7#include <bundle/Bundle.hpp>
8
9namespace Wizt
10{
11 using namespace Fiber;
12
16class FISHOBJECTS_API VGridObject : public VBundleObject
17{
18public:
19 RefPtr<GridID> GridName;
20
22
23 RefPtr<VParameter> GridParameter;
24
25 VGridObject(const string&name, int p, const RefPtr<VCreationPreferences>&VP);
26
28
30
31 bool update(const VRequest&, double precision) override;
32
33 bool implements(const type_info&what) const override;
34
35 const RefPtr<VParameter>&getImplementation(const type_info&what, const string&name = "") override;
36};
37
38
39template <>
41{
42public:
43static bool setValueFromText(RefPtr<GridID>&i, const string&s)
44 {
45 return false;
46 }
47
48static string Text(const RefPtr<GridID>&n)
49 {
50 return n->Name();
51 }
52
53};
54
55#if 0
61struct GridValue : public VObjectComponent<VGridObject, RefPtr<Grid> >
62{
65 {}
66
68 const type_info&getType() const override
69 {
70 return typeid(Grid);
71 }
72
74 bool getValueFrom(const WeakPtr<VValueBase>&V) override
75 {
76 return false;
77 }
78
80 bool setValueFromText(const string&s) override
81 {
82 return false;
83 }
84
88 string Text() const override
89 {
90 return "";
91 }
92};
93#endif
94
95} // namespace Wizt
96
97#endif
98
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
A grid identifier.
Definition GridID.hpp:29
A Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
Definition VBundleObject.hpp:27
A Vish Object referring to a Grid object within a Bundle.
Definition VGridObject.hpp:17
const type_info & getType(const std::string &s)
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
note: cannot derive from FloatingSkeletonRenderer as long as independent base class TriangleRenderer ...