FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Wizt::Fish< Fiber::Bundle > Struct Reference

Base class for Vish Objects that request a fiber bundle as input objects. More...

#include <FishBundle.hpp>

Inheritance diagram for Wizt::Fish< Fiber::Bundle >:
Wizt::VSaveable FlyingFish Wizt::GridObject SchwarzschildSpacetime

Public Member Functions

BundleSlotBundleSpacetimeSlot ()
 Allow writeable access to the spacetime (fiber bundle) slot contained in this Fish scale.
 
bool setBundlePtr (const RefPtr< ValuePool > &VP, const Fiber::BundlePtr &BP)
 Set the bundle pointer stored here.
 
 Fish (const string &bundlename="spacetime", const Fiber::BundlePtr &BP=Fiber::BundlePtr(), int EL=5)
 Constructor, optionally provide a pointer to a fiber bundle.
 
 Fish (int EL, const string &bundlename="spacetime", const Fiber::BundlePtr &BP=Fiber::BundlePtr())
 Constructor, setting the expert level.
 
 ~Fish ()
 Destructor, does nothing.
 
- Public Member Functions inherited from Wizt::VSaveable
void addSaver (const string &, const RefPtr< VishSaver > &)
 
void addSavers (AppClass &A)
 
bool autosave () const
 
RefPtr< VishSavergetMostRecentSaver () const
 
size_t getNumberOfSavers () const
 
RefPtr< VishSavergetSaver (const string &) const
 
RefPtr< VishSavergetSaverByExt (const string &ext) const
 
int iterate_savers (const save_iterator &si) const
 

Static Public Member Functions

static void addFiberSaver (VSaveable *what, const RefPtr< VParameter > &VP)
 
- Static Public Member Functions inherited from Wizt::VSaveable
static VSaveableGlobalState ()
 

Public Attributes

BundleSlot MySpacetime
 

Additional Inherited Members

- Public Types inherited from Wizt::VSaveable
typedef std::function< bool(const string &s, VishSaver &VS)> save_iterator
 

Detailed Description

Base class for Vish Objects that request a fiber bundle as input objects.

Implements a fish scale which refers to a fiber bundle's slot. A local slot is stored here.

Objects that are derived from this base class will be able to connect to objects that export a Bundle object. An object exporting a Bundle object will require an member of type VOutput<BundlePtr> , such as in

struct MyBundleExporter : public VObject
{
MyBundleExporter(const string&name, int p, const RefPtr<VCreationPreferences>&VP)
: VObject(name, p, VP)
, myBundle(self(), "spacetime" )
{}
};
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34