FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Public Member Functions | List of all members
Wizt::FishGridSavable Class Reference

Convenience class for objects that provide a Grid that may be saved. More...

#include <FishSaver.hpp>

Inheritance diagram for Wizt::FishGridSavable:
Wizt::FishSavable FieldOperator::ScalarFieldClamp RandomPointDistribution SelectionGridExtractor Wizt::GridProviderObject Wizt::IntegralFace Wizt::GridObject FieldLines::IntegralHeart< FieldType, LineType > SchwarzschildSpacetime

Public Member Functions

 FishGridSavable (VSaveable *what, VOutput< Grid > &SavableGrid)
 Construction time is used to store the output slot that will be used for saving.
 
FishBait getBait () const override
 Getting the bait from the output grid that was specified during construction.
 
- Public Member Functions inherited from Wizt::FishSavable
 FishSavable (VSaveable *what)
 Constructor creates its own FishWharf and registers a FishSaver on the provided VSaveable.
 

Detailed Description

Convenience class for objects that provide a Grid that may be saved.

Derive from this class and specify the output grid slot in the constructor.

Examples
HelicalLines.cpp, and Sphere.cpp.

Constructor & Destructor Documentation

◆ FishGridSavable()

Wizt::FishGridSavable::FishGridSavable ( VSaveable what,
VOutput< Grid > &  SavableGrid 
)
inline

Construction time is used to store the output slot that will be used for saving.

Note: Only the reference to the output slot is stored here, not another reference pointer. The output slot might actually not yet have been constructed, which is the case when the child class implementing the output grid slot is derived from this class: The base class constructor will be called first (ergo us here), then later will the members be constructed (ergo the parameter that we already use here).

Member Function Documentation

◆ getBait()

FishBait Wizt::FishGridSavable::getBait ( ) const
overridevirtual

Getting the bait from the output grid that was specified during construction.

Only its global value will be used, local settings not supported.

Implements Wizt::FishSavable.

References Fiber::GridSelector::getGridname(), and Fiber::GridSelector::theSourceBundle.