Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell

Base class for a common properties of render objects rendering a 2D slice of a 3D scalar field. More...

#include <ColorizedFloatSliceRenderer.hpp>

Inheritance diagram for Wizt::ColorizedFloatSliceRenderer:
Wizt::FieldSlice Wizt::Programmable Wizt::Colorizer Wizt::FieldAnemone Wizt::Orientation Wizt::FloatOrigin Wizt::FieldAnemoneBase Wizt::ShaderFields Wizt::VStateCreatorBase Wizt::GridAnemone Wizt::Fish< Fiber::Slice > Wizt::Fish< Fiber::Field > Wizt::Fish< double > Wizt::GridAnemoneRenderObject Wizt::VConnectable Wizt::Fish< double > Wizt::TimeDependent Wizt::Fish< double > Wizt::Fish< VObject > Wizt::VRenderObject Wizt::VSlotContainer Wizt::Fish< VObject > Wizt::VConnectable Wizt::Fish< VObject > Wizt::VSkale Wizt::VSlotContainer Wizt::VSkale Wizt::ValueCacheable Wizt::VConnectionValidatorList Wizt::VManagedObjectBase Wizt::StatusIndicator Wizt::VTransformable Wizt::VChartDependent Wizt::VEnvironmentRenderObject Wizt::VSkale

Public Types

typedef LIST< float, LIST< double > > InputTypes
Public Types inherited from Wizt::FieldSlice
typedef Fiber::GridInspector< Fiber::isFragmentedUniformCartesianGridGridInspector
Public Types inherited from Wizt::FieldAnemone
using FieldAnemoneState = GridAnemoneState
Public Types inherited from Wizt::GridAnemone
enum class  SortMethod { None , BackToFront , FrontToBack , MostVisible }
using AnemoneParameters = ::Wizt::AnemoneParameters
using AnemoneCreationContext = ::Wizt::GridAnemoneCreationContext
using GridAnemoneState = ::Wizt::GridAnemoneState
using SkeletonID = Fiber::SkeletonID
using FieldHierarchy = map<SkeletonID, FieldInfo>
using SkeletonSet = map<SkeletonID, WeakPtr<Fiber::Skeleton>>
using AnemoneRenderStatus = AnemoneRenderFields::AnemoneRenderStatus
using initializeAnemoneParameters
Public Types inherited from Wizt::VSlotContainer
enum  AttachErrorCode
typedef void AcceptableInputTypes
typedef VSlotSet CreationSlots_t
typedef VSlot::Empty< I > Empty
Public Types inherited from MemCore::ReferenceBase< VManagedObjectBase >
typedef Object reference_domain_t
typedef WeakPtr< Object, Object > SelfPtr_t
Public Types inherited from Wizt::VEnvironmentRenderObject
typedef ::Eagle::PhysicalSpace::point point
Public Types inherited from Wizt::VObject
enum  HelpType
typedef void AcceptableInputTypes
typedef VConnectable::Empty< I > Empty
typedef std::function< bool(const RefPtr< VObject > &vobj, const VSlot &ChildConnection)> VObjectIterator_f
Public Types inherited from Wizt::VSaveable
typedef std::function< bool(const string &s, VishSaver &VS)> save_iterator
Public Types inherited from Wizt::VManagedDomainObject< VObject >
typedef What Domain_t
Public Types inherited from Wizt::RenderNamespace
enum  GeometryInputType
enum  GeometryOutputType
enum  Primitive
enum  TextureFormat
enum  VertexAttributeTypes
typedef std::variant< int, float, double, unsigned, Eagle::FixedArray< int, 2 >, Eagle::FixedArray< float, 2 >, Eagle::FixedArray< double, 2 >, Eagle::FixedArray< int, 3 >, crd3f, Eagle::FixedArray< float, 3 >, crd3d, Eagle::FixedArray< double, 3 >, Eagle::FixedArray< int, 4 >, Eagle::FixedArray< float, 4 >, Eagle::FixedArray< double, 4 >, Eagle::Quadratic< 2, float >, Eagle::Quadratic< 3, float >, Eagle::Quadratic< 4, float >, vec3f_vector, crd3f_vector > AnyUniform
typedef std::string glsl
Public Types inherited from Wizt::Fish< Fiber::Field >
enum  { NumberOfInputFields = 1 }
Public Types inherited from Wizt::ShaderFields
using ShaderFields_t = map<string, TypedSlot<Fiber::FieldSelector> >
 Mapping from shader attribute names to input field selectors.
using string_set = std::unordered_set<string>
using getSkeletonFieldsResults_t = map<string, RefPtr<Fiber::Field> >::value_type
using FieldValidator_t
Public Types inherited from Wizt::Programmable
typedef RenderBasin::Program Program

Public Member Functions

 ColorizedFloatSliceRenderer (const string &name, int RenderCategory, const RefPtr< VCreationPreferences > &VP)
string getShaderAttributeName (const TypedSlot< Fiber::Field > &) const override
 Use the DataTextureName to represent the primary input field in the shader.
void setTextureMode (VRenderContext &Context, const RefPtr< RenderBasin::TextureTentacle > &Colormap, const RefPtr< RenderBasin::TextureTentacle > &TA) const
 Set interpolation and smoothness.
bool updateColormap (VRenderContext &Context, Anemone &RenderAnemone, AnemoneCreator<> &theAnemoneCreator) const
 Update the colormap texture.
bool updateFieldSliceAnemone (VRenderContext &Context, Anemone &RenderAnemone, AnemoneCreator<> &theAnemoneCreator, const LevelData &theLevelData, const RefPtr< Fiber::CreativeArrayBase > &RenderDataCreator, const RefPtr< Fiber::FragmentID > &Fid) const override
 Render Caching: Determine when the render anemone can be updated or needs to be re-created.
bool addRenderFragment (VRenderContext &Context, Anemone &RenderAnemone, AnemoneCreator<> &theAnemoneCreator, const RefPtr< Fiber::CreativeArrayBase > &RenderDataCreator, const RefPtr< Fiber::FragmentID > &Fid, const RefPtr< Fiber::Field > &CoordinateField, const LevelData::FieldList_t &theOutputFields) const override
 Add data from this field's fragment to the render anemone:
std::string vertex_shader (VRenderContext &Context) const override
 Vertexshader GLSL code, sets up texture coordinates and transform vertices.
std::string fragment_shader (VRenderContext &Context) const override
 Fragmentshader GLSL code, looks up a data value in the data texture for the given texture coordinate and looks up its color via the colormap texture.
Public Member Functions inherited from Wizt::FieldSlice
RefPtr< State > newState () const override
 FieldSlice (const string &name, int RenderCategory, const RefPtr< VCreationPreferences > &VP)
double getSliceCoordinate (const RefPtr< ValuePool > &Context) const
RefPtr< BoundingBoxtransformBBox (const RefPtr< ValuePool > &Context, const RefPtr< BoundingBox > &DataBBox) const override
 A function to allow modification of the visible/touchable bounding box of the data used.
bool validateInput (VRequest &Context, Fiber::Info< Fiber::Grid > &iG, const RefPtr< GridAnemoneState > &GAS, const RefPtr< Fiber::Skeleton > &myVertexSkeleton, const RefPtr< Fiber::Chart > &chart, string &ValidateInputInfoString) const override
virtual RefPtr< Fiber::SlicerBasegetSlicer (const string &FieldIDName, VRequest &Context, int o, double theCoordinateValue) const =0
 Implement the actual data slicing operation.
virtual bool requireNewSlicing (VRequest &Context, const LevelData &myLevelData) const
virtual void postSlicing (VRequest &Context, const LevelData &myLevelData) const
RefPtr< RenderBasin::TextureTentaclecreate2DTexture (VRenderContext &Context, const RefPtr< Fiber::CreativeArrayBase > &RenderDataCreator, RenderBasin::TextureFormat TF, int TextureUnit, RenderBasin::TextureStorageFormat TSF=RenderBasin::AutomaticTexture()) const
bool validateFields (VRequest &Context, Fiber::Info< Fiber::Grid > &iG, FieldAnemoneState &FAS, const RefPtr< Fiber::Skeleton > &myVertexSkeleton, const RefPtr< Fiber::Chart > &chart, string &ValidateInputInfoString) const override
bool addFields (VRequest &Context, Fiber::Info< Fiber::Grid > &iG, RenderFields &RF, const RefPtr< Fiber::Skeleton > &, const RefPtr< Fiber::Chart > &, string &ValidateInputInfoString) override
bool environment_render (VRenderContext &Context) const override
virtual bool addRenderVertices (VRenderContext &Context, Anemone &RenderAnemone, AnemoneCreator<> &theAnemoneCreator, const RefPtr< Fiber::Field > &Positions, const RefPtr< Fiber::FragmentID > &Fid, const Eagle::tvector3 &TranslationVector) const
virtual bool addRenderFragment (VRenderContext &Context, Anemone &RenderAnemone, AnemoneCreator<> &theAnemoneCreator, const RefPtr< Fiber::CreativeArrayBase > &RenderDataCreator, const RefPtr< Fiber::FragmentID > &Fid, const RefPtr< Fiber::Field > &CoordinateField, const LevelData::FieldList_t &theOutputFields) const =0
bool renderFragment (VRenderContext &Context, const LevelData &theLevelData, const RefPtr< Fiber::CreativeArrayBase > &RenderDataCreator, const RefPtr< Fiber::FragmentID > &Fid) const
memsize_t computeGPUMemsize (VRenderContext &Context) const
Public Member Functions inherited from Wizt::FieldAnemone
int getTextureUnit (const string &Name) const
void setNamedTextures (const Anemone &, const RefPtr< RenderBasin::Program > &) const
 FieldAnemone (const string &name, int RenderCategory, const RefPtr< VCreationPreferences > &VP)
virtual glsl getShaderPrefix (const FieldAnemone::AnemoneCreationContext &ARC, const FieldAnemone::AnemoneExplorer &AE) const
bool validateInput (VRequest &R, Fiber::Info< Fiber::Grid > &, const RefPtr< GridAnemoneState > &GAS, const RefPtr< Fiber::Skeleton > &myVertexSkeleton, const RefPtr< Fiber::Chart > &chart, string &ValidateInputInfoString) const override
 calls validateFields()
bool addSupplementaryData (VRequest &Context, Fiber::Info< Fiber::Grid > &, RenderFields &RF, const RefPtr< Fiber::Skeleton > &myVertexSkeleton, const RefPtr< Fiber::Chart > &chart, string &InfoString) override
 Implementation of the GridAnemone's data preparation.
void requestSupplementaryData (VRenderContext &theContext, const RefPtr< Fiber::FragmentID > &myFragmentID) const override
 Asynchroneous mode: Request creation of fields fragments.
bool isCreatingSupplementaryData (VRenderContext &theContext, const RefPtr< Fiber::FragmentID > &myFragmentID) const override
 Asynchroneous mode: Check whether supplementary field fragments are currently under creation.
bool requireNewFieldComputation (const RefPtr< Fiber::Field > &Output, const RefPtr< ValuePool > &Context, const RefPtr< Fiber::Field > &Input) const
 Check if the output field needs to be re-computed from the input field, relative to the Context.
virtual MemCore::RefPtr< RenderBasin::PaintercreatePainter (Anemone &RenderAnemone, const AnemoneCreationContext &ARC, const RefPtr< AnemoneExplorer > &, const RefPtr< RenderBasin::VertexAttribute > &Vertices) const
GridAnemone::AnemoneRenderStatus initializeAnemone (Anemone &RenderAnemone, const AnemoneCreationContext &ARC, const RefPtr< AnemoneExplorer > &) const override
 Initialize a virgin Render Anemone, i.e.
bool isValidAnemone (const Anemone &RenderAnemone, const AnemoneCreationContext &ARC, const RefPtr< AnemoneExplorer > &) const override
 Checks if a given Anemone is valid for rendering.
virtual bool validateAnemoneData (VRenderContext &theContext, map< string, RefPtr< MemBase > > &AnemoneData, const RefPtr< Fiber::FragmentID > &theFragmentID, const Fiber::SkeletonID &theSkeletonID) const
Public Member Functions inherited from Wizt::FieldAnemoneBase
 FieldAnemoneBase (const string &name, int RenderCategory, const RefPtr< VCreationPreferences > &VP)
double getTime (const RefPtr< ValuePool > &VP, const RefPtr< Fiber::Bundle > &SpaceTime) const override
 Most virtual time retrieval function.
GridSelector getGridFieldSelector (const RefPtr< ValuePool > &Context) const override
Public Member Functions inherited from Wizt::GridAnemone
Ageable AgeOfRoI (const RefPtr< ValuePool > &Context) const
pRegionOfInterest getRegionOfInterest (const RefPtr< ValuePool > &Context) const
RefPtr< Fiber::ChartgetCartesianChart (const RefPtr< Fiber::Grid > &G, const RefPtr< ValuePool > &Context) const
 Get a chart object for the given Grid given the current selection of a chart from VRenderObject's VChartDependent base class.
RefPtr< State > newState () const override
 GridAnemone (const string &name, int RenderCategory, const RefPtr< VCreationPreferences > &VP)
 Constructor.
RenderTime getLastRenderTime (VRenderContext &Context) const override
virtual FieldHierarchy getRenderFields (VRenderContext &Context) const
 Get the primary field that will be used for rendering.
virtual RefPtr< AnemoneExplorergetAnemoneExplorer (VRenderContext &Context) const
virtual RefPtr< AnemoneCreatorBasenewAnemoneCreator (const Seagrass &theSeaggrass) const
 If some parameters of a Render Anemone need to be modified upon change of some input, for instance some uniform shader variables, then re-creation of the entire Anemone is overkill.
AnemoneRenderStatus renderAnemone (Anemone &RenderAnemone, const AnemoneCreationContext &ARC, const RefPtr< AnemoneExplorer > &AE, size_t current_fragment, size_t max_fragment_number, const RefPtr< BoundingBox > &theFragmentBoundingBox) const
 Render a RenderAnemone with the given context, checking if it's valid first, and if so update it, otherwise it needs to be initialized.
AnemoneRenderStatus raiseAnemone (Anemone &RenderAnemone, const AnemoneCreationContext &ARC, const RefPtr< AnemoneExplorer > &AE) const
 Function to pack all kinds of information into a baby Anemone to let it grow into an adult functional one.
virtual bool disabledFragment (VRenderContext &theContext, const AnemoneExplorer &theAnemoneExplorer, const Fiber::CreativeArrayBase &CAB, const RefPtr< Fiber::FragmentID > &fID, const RefPtr< BoundingBox > &theFragmentBoundingBox, const RefPtr< Fiber::Representation > &R) const
 Virtual function to allow intervening rendering just before a Render Anemone is being created.
virtual bool updateAnemone (Anemone &RenderAnemone, const AnemoneCreationContext &ARC, const RefPtr< AnemoneExplorer > &AE) const
 Update a certain Anemone with variables and values that do not require re-creation or loading of any data.
RefPtr< BoundingBallgetTouchableBoundingBall (const RefPtr< ValuePool > &VP) const override
 Get the bounding box of the entire object's geometry beyond the visible part such to allow proper camera navigation.
virtual bool validateInput (VRequest &Context, Fiber::Info< Fiber::Grid > &, const RefPtrGridAnemoneState &GAS, const RefPtr< Fiber::Skeleton > &myVertexSkeleton, const RefPtr< Fiber::Chart > &chart, string &ValidateInputInfoString) const
 Virtual call to check if the information retrieved from the inputs is valid, and if further information as required by the child class as been added correctly.
bool update (VRequest &R, double precision) override
 The update function retrieves data from the input Grid and prepares them in the State object for rendering.
bool environment_render (VRenderContext &Context) const override
TouchIndex_t do_feedback_render (VRenderContext &Context, TouchIndex_t StartIndex) const
 Support for feedback rendering, in case a child object is derived from a Touchable.
virtual TouchIndex_t getTouchIndexFragmentIndexMultiplicator (VRenderContext &Context, const Fiber::Field &) const
 For feedback rendering: The emitted start index will be the numerical fragment ID of the render field multiplied by this multiplicator.
Public Member Functions inherited from Wizt::Fish< double >
 Fish ()
 Default constructor.
 ~Fish ()
 Destructor.
virtual int getMaxRefinementLevel (const RefPtr< ValuePool > &VP) const
 Get the maximum refinement level that we seek to handle here.
virtual int getMinRefinementLevel (const RefPtr< ValuePool > &VP) const
virtual Fiber::Info< Fiber::SkeletongetRefinementLevel (int Level, const RefPtr< ValuePool > &VP, int IndexDepth=0, const Fiber::BundlePtr &SpaceTime=Fiber::BundlePtr(NullPtr())) const =0
bool IterateLevels (LevelIterator &LI, const Fiber::Info< Fiber::Grid > &G, const RefPtr< ValuePool > &Context) const
 Iterate over the diverse refinement levels of a Grid, which may exist at times different from the given coarsest grid.
Public Member Functions inherited from Wizt::VConnectable
virtual void adjustConnections (const RefPtr< VSlot > &ChangedSlot, const RefPtr< VParameter > &par)
VSlotContainer::AttachErrorCode attach (const ParameterID &whichone, VSlotContainer &sourceObject, const ParameterID &sourceName)
AttachErrorCode attach (const RefPtr< VParameter > &OldParam, const RefPtr< VParameter > &NewParam, const string &Member={})
AttachErrorCode attachUniqueObject (const RefPtr< VParameter > &param, const RefPtr< VCreationPreferences > &VCP=NullPtr(), bool ReallyUnique=true)
AttachErrorCode attachUniqueObject (const RefPtr< VSlot > &slot, const RefPtr< VCreationPreferences > &VCP=NullPtr(), bool ReallyUnique=true)
RefPtr< VSlotConnect (const RefPtr< VParameter > &SourceParam)
RefPtr< VSlotConnectInterface (const RefPtr< VSlotContainer > &Provider, const RefPtr< InterfaceBase > &IB)
virtual bool CreatedFilteredConnection (const RefPtr< VParameter > &SourceParam)
Public Member Functions inherited from Wizt::VSlotContainer
Ageableage (const RefPtr< ValuePool > &VP)
const Ageableage (const RefPtr< ValuePool > &VP) const
const AgeableConnectionAge () const
bool ConnectionsHaveChanged (const RefPtr< ValuePool > &VP) const
bool HasYoungerInput (const RefPtr< ValuePool > &Context, int RecursionLevel=0) const
Ageable YoungestInput (const RefPtr< ValuePool > &Context) const
Ageable YoungestOutput (const RefPtr< ValuePool > &Context) const
Ageable YoungestUncachedInput (const RefPtr< ValuePool > &Context) const
bool CheckIfThereExistNewerOutputs (const VRequest &request, bool AdjustObjectAge) const
RefPtr< VSlotaddParameter (const ParameterID &name, int EL, const RefPtr< VParameter > &param, bool overwriteExistingSlot)
virtual bool allowParameterReplacement (const RefPtr< VParameter > &NewParam, const RefPtr< VParameter > &OldParam, const string &localName, int ExpertLevel)
virtual int connectSlots (const VSlotContainerPtr &vobj)
bool removeParameter (const ParameterID &s)
RefPtr< VParametergetParameter (const ParameterID &s) const
RefPtr< VSlotgetSlot (const ParameterID &s, int &EL) const
bool setSlotValueFromText (const ParameterID &s, const string &ValueText, const RefPtr< ValuePool > &VP, const string &theMember={})
RefPtr< VSlotfindSlot (const RefPtr< VParameter > &param) const
string getSlotName (const RefPtr< VParameter > &param) const
bool AddAction (const ParameterID &s, const RefPtr< ValueActionBase > &VAB)
bool AddAction (const RefPtr< VSlot > &ActionSlot, bool(DerivedObject::*Action)(const RefPtr< VValueBase > &value))
RefPtr< VParametermkUniqueParameterInput (const ParameterID &s, const string &ContainerName)
int getExpertLevel (const ParameterID &s) const
int setExpertLevel (const ParameterID &s, int EL)
int getExpertLevel (const RefPtr< VParameter > &) const
int getExpertLevel (const RefPtr< VSlot > &S) const
int setExpertLevel (const RefPtr< VSlot > &S, int EL)
int setExpertLevel (const RefPtr< VParameter > &s, int EL)
bool hasChanged (const ParameterID &s, const RefPtr< ValuePool > &Context) const
bool hasChanged (const RefPtr< VSlot > &, const RefPtr< ValuePool > &Context) const
bool hasChanged (const RefPtr< ValuePool > &Context, int n,...) const
bool hasChanged (RefPtr< ValuePool > Context,...) const
virtual bool ignoreInput (const RefPtr< VSlot > &theSlot) const
bool getParameterValue (Type &Variable, const ParameterID &s, const RefPtr< ValuePool > &VP) const
bool getParameterValue (Type &Variable, const ParameterID &s, const VContext &C) const
bool getParameterValue (Type &Variable, const ParameterID &s, const VRequest &R) const
bool setParameterValue (const Type &Variable, const ParameterID &s, const RefPtr< ValuePool > &VP, bool autoCreateLocalValue) const
bool setParameterValue (const Type &Variable, const ParameterID &s, VContext &C, bool autoCreateLocalValue) const
bool setParameterValue (const Type &Variable, const ParameterID &s, VRequest &R, bool autoCreateLocalValue=false) const
RefPtr< VSlotaddParam (const ParameterID &name, const Type &init, const RefPtr< VCreationPreferences > &VP=NullPtr(), int expertLevel=0, bool overwriteExistingSlot=true)
bool setParameterProperty (const ParameterID &param, const string &Properties, const RefPtr< VValueBase > &Value=NullPtr())
RefPtr< VSlotaddFloatParam (double init, const ParameterID &param, double min, double max, const RefPtr< VCreationPreferences > &IP=NullPtr(), int expertLevel=0)
AttachErrorCode attach (const RefPtr< VParameter > &OldParam, const RefPtr< VParameter > &NewParam, const string &Member={})
int iterateParameters (int expertLevel, VSlotIterator &VIIt) const
int iterateInputSlots (int expertLevel, VSlotIterator &VIIt) const
int iterateInputs (VSlotIterator &VIIt, int expertLevel=0)
int iterate_inputs (const std::function< bool(VSlot &what, int ExpertLevel)>) const
RefPtr< VSlotgetUniqueInputSlot (const type_info &what)
int getNumberOfParameters (int expertLevel) const
virtual bool implements (const type_info &what) const
virtual RefPtr< VParametergetImplementation (const type_info &what, const string &name={}, const string &member={}) const
RefPtr< VSlotgetImplementationSlot (const type_info &what, const string &Name={}, const string &Member={}) const
VAcceptInfoList_t getAcceptInfoList (const std::type_info &request_type) const
bool provides (const RefPtr< VSlot > &OutputSlot) const
RefPtr< VSlotfindOutputSlot (const RefPtr< VParameter > &Who) const
bool isYounger (const RefPtr< VParameter > &OutputParam, const RefPtr< ValuePool > &VP) const
bool isNewlyConnected (const RefPtr< VParameter > &Who, const RefPtr< ValuePool > &VP) const
bool hasNewlyConnectedOutputs (const RefPtr< ValuePool > &VP) const
void findNewlyConnectedOutputs (const RefPtr< ValuePool > &VP, VSlotSet &WhichOnes) const
RefPtr< VSlotgetOutput (const string &Name) const
RefPtr< MemCore::StringListgetOutputs (const type_info &what=typeid(void)) const
virtual int iterateOutputs (VOutputIterator &VOut, const type_info &just_these=typeid(void)) const
bool registerOutput (const RefPtr< VParameter > &P, const string &AsName={})
bool registerOutput (const RefPtr< VParameter > &P, const string &AsName, const type_info &MemberType, const string &UseMember)
bool registerOutput (const RefPtr< VParameter > &P, const type_info &MemberType, const string &UseMember)
int getNumberOfInputs () const
int getNumberOfOutputs () const
bool hasChangedSlots (const MemCore::Intercube &IC, const RefPtr< ValuePool > &Context) const
auto include_self (const std::tuple< SlotList... > &t) const -> decltype(std::tuple_cat(std::make_tuple(this), t))
Public Member Functions inherited from MemCore::ReferenceBase< VManagedObjectBase >
auto getObjectCountID () const noexcept
bool isIdentical (const WeakPtr< Object, Object > &PossibleSelf) const noexcept
void mkAutoDestructive ()
refcount_t refcount () const noexcept
 ReferenceBase (Object *that) noexcept
const auto & self () const
refcount_t wrefcount () const noexcept
Public Member Functions inherited from Wizt::GridAnemoneRenderObject
 GridAnemoneRenderObject (const string &name, int Cat, const RefPtr< VCreationPreferences > &VP)
virtual RefPtr< BoundingBoxgetModifiedBBox (const RefPtr< ValuePool > &Context, Fiber::CreativeArrayBase &CoordinateFragment, const RefPtr< Fiber::FragmentID > &theFragmentID, const RefPtr< Fiber::Skeleton > &DestVertexSkeleton, const RefPtr< Fiber::Chart > &chart, bool AllowAsynchLoading) const
 Get a bounding box as modified by a certain object's special setup, for instance using another field than the coordinates to obtain some geometry.
Public Member Functions inherited from Wizt::VRenderObject
void closeBBox (const RefPtr< ValuePool > &VP) const
void embrace (const RefPtr< ValuePool > &VP, const point &crd) const
RefPtr< BoundingBallgetBoundingBall (const RefPtr< ValuePool > &VP) const override
bool resetBBox (const RefPtr< ValuePool > &S) const
bool safe_render (VRenderContext &Context, double Z=0, double dZ=-1) const override
void setBoundingBall (const RefPtr< ValuePool > &VP, const RefPtr< BoundingBall > &BS) const
 VRenderObject (const string &name, int p, const RefPtr< VCreationPreferences > &VP)
Public Member Functions inherited from Wizt::VEnvironmentRenderObject
void announce (const string &name, const VCamera &ViewpointProperties, const RefPtr< ValuePool > &Context) const
void getRenderPrecision (VRenderContext &Context, double &OverallPrecision, double &ThisContribution) const
 VEnvironmentRenderObject (const string &name, int p, const RefPtr< VCreationPreferences > &VP)
Public Member Functions inherited from Wizt::RenderAble
virtual string getSensorInfo (const RefPtr< ValuePool > &Context, const SensorView &theSensorView)
bool isVisible (const RefPtr< ValuePool > &Context) const
Public Member Functions inherited from Wizt::VObject
string CreatorName () const
const WeakPtrVCreatorBasegetCreator () const
virtual bool request (VRequest &, double precision, const WeakVObjectPtr &ImmediateRequestor, const WeakVObjectPtr &RootRequestor)
bool schedule (double precision, const RefPtr< ValuePool > &Context=nullptr)
void enableRequestProcessing ()
void disableRequestProcessing ()
bool acceptsRequests () const
const MemCore::CounterUpdateCount () const
const MemCore::CounterRequestCount () const
 VObject (const string &name, int p, const RefPtr< VCreationPreferences > &VP)
virtual const GimpIcongimp_icon () const
virtual const char *const * xpm_icon () const
virtual string qt_icon () const
virtual string help (HelpType=HTMLText) const
bool setObjectAsChild (const VObjectPtr &childVObject, const string &DependencySlotName)
double requestTime () const
void remove ()
const RefPtr< VCreationPreferences > & CreationPreferences () const
virtual std::string type_key () const
void iterateParents (VObjectIterator &VOI, int EL=0) const
int iterateParents (const VObjectIterator_f &VOI, int EL=0) const
virtual string CreateParameterName (const ParameterID &name) const
int iterateChildren (ChildIterator &) const
int findChildren (const Lambda &theLambda) const
std::list< std::vector< std::string > > getProvenance () const
AttachErrorCode attachNewObject (const RefPtr< VSlot > &slot, const string &name, const Intercube &CreationContext, const RefPtr< VCreationPreferences > &VCP=nullptr)
AttachErrorCode attachNewObject (const RefPtr< VSlot > &slot, const string &name, const RefPtr< VCreationPreferences > &VCP=nullptr)
AttachErrorCode attachInputObject (const RefPtr< VSlot > &slot, const string &name={}, const RefPtr< VCreationPreferences > &VCP=nullptr, bool ReallyUnique=true)
CreateConnectionResult_t createChild (const VAcception &VA, const Intercube &CreationContext)
CreateConnectionResult_t connectChild (const VObjectPtr &ChildObject, const RefPtr< VAcceptInfo > &VA)
CreateConnectionResult_t connectAsChild (const VObjectPtr &ChildObject, const VAcception &VA)
virtual void InputCreation (const RefPtr< VParameter > &CurrentObjectsInput, const VObjectPtr &NewlyCreatedObject, const RefPtr< VParameter > &TheNewObjectsOutputParameter)
VObjectPtr createInput (const WeakPtrVCreatorBase &VCrec, const RefPtr< VSlot > &what, const string &name, Intercube &CreationContext)
VObjectPtr extractSlot (const RefPtr< VSlot > &theSlot, const string &theNewName=string()) const
Public Member Functions inherited from Wizt::VStateCreatorBase
RefPtr< State > & getState (const WeakPtr< ValuePool > &VP) const
RefPtr< InterfaceBasehasLocalInterface (const type_info &InterfaceType) const
RefPtr< State > myState (const WeakPtr< ValuePool > &Context) const
void setState (const WeakPtr< ValuePool > &, const RefPtr< State > &st) const
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
Public Member Functions inherited from Wizt::VManagedDomainObject< VObject >
const type_infogetDomainType () const override
void remove ()
 VManagedDomainObject (const string &name, int priority=DEFAULT_PRIORITY)
Public Member Functions inherited from Wizt::VManagedObject
string getLoadModule () const
void insert (const string &s, int priority=DEFAULT_PRIORITY)
void remove ()
void setPriority (int priority)
 VManagedObject (const string &name, int priority=DEFAULT_PRIORITY)
Public Member Functions inherited from MemCore::Intercube
void addInterface (const RefPtr< InterfaceBase > &I) const
void addInterfaceData (const Data &D)
void addInterfaceData (const Data &D)
void clearInterfaces ()
bool const_iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP) const
virtual RefPtr< InterfaceBasecreateInterface (const type_info &) const
RefPtr< InterfaceBasefindInterface (const type_info &t) const
RefPtr< InterfaceBasegetInterface (const type_info &t)
std::string getInterfaceNames (const char delim=';') const
bool gotNewInterfaceData (const Data &D)
bool gotNewInterfaceData (mutex &M, const Data &D)
bool gotNewInterfaceData (mutex &M, const Data &D)
bool gotNewInterfaceData (mutex &M, const Data &D, const Selector &S)
bool gotNewInterfaceData (mutex &M, const Data &D, const Selector *S)
bool hasChangedInterfaceData (const Data &D) const
bool hasChangedInterfaceData (const Data &D) const
bool hasChangedInterfaceData (const Data &D, const Selector &) const
bool hasChangedInterfaceData (const Data &D, const Selector *) const
bool hasInterface (const type_info &t) const
bool iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP)
void printInterfaces () const
void registerInterface (const type_info &t)
void removeInterface ()
void removeInterfaceBase (const type_info &InterfaceBaseID)
Public Member Functions inherited from MemCore::MutableName
void addNameChangeNotifier (const WeakPtr< Notifier > &)
std::string BaseName (const char Separator) const
const std::stringgetName () const
 MutableName (const std::string &theName)
const std::stringName () const
void rename (const std::string &newName)
void setName (const std::string &newName)
Public Member Functions inherited from Wizt::VScriptable
RefPtr< VScriptFunctorfindFunctor (const string &name) const
RefPtr< VScriptFunctorinsertFunctor (const string &name, const RefPtr< VScriptFunctor > &)
bool iterate (iterator &it)
int nFunctors () const
void removeFunctor (const string &name)
Public Member Functions inherited from Wizt::VTraceRequestID
bool addRequest (const VRequest &request)
bool hasRequest (const VRequest &request) const
Public Member Functions inherited from Wizt::VTransformable
RenderBasin::glsl getTransformationShaderFunctions (VRenderContext &Context) const
bool initializeAnemoneTransformation (Anemone &RenderAnemone, VRenderContext &Context) const
RefPtr< BoundingBoxshadedVolume (const RefPtr< ValuePool > &Context, const RefPtr< BoundingBox > &VerticesBBox) const
Public Member Functions inherited from Wizt::StatusIndicator
bool setStatusCritical (const RefPtr< ValuePool > &Context, const string &what) const
bool setStatusError (const RefPtr< ValuePool > &Context, const string &what, bool AnnouncePublic=false) const
bool setStatusInfo (const RefPtr< ValuePool > &Context, const string &what) const
bool setStatusWarning (const RefPtr< ValuePool > &Context, const string &what) const
 StatusIndicator (VObject *what, const string &initialtext="", int EL=0, const string &statusslotname=Slotname)
Public Member Functions inherited from Wizt::Fish< Fiber::Slice >
 Fish (const string &time="time", const string &timescale="timescale")
 Constructor, uses the VObject from the virtual base class.
 ~Fish ()
 Destructor.
double getTime (const RefPtr< ValuePool > &VP, const RefPtr< Fiber::Bundle > &SpaceTime) const override
 Get the time value for the current selection from the value pool.
Fiber::Bundle::GridInfo_t findRecentGrid (Fiber::GridSelector &GS, const RefPtr< ValuePool > &VP) const
Public Member Functions inherited from Wizt::TimeDependent
double getTime (const RefPtr< ValuePool > &VP, double DefaultTime=0.0, const Range &DefaultRange=Range(0.0, 1.0)) const
const TypedSlot< VTime > & getTimeSlot () const
void setupTime (const VConnectable::CreationSlots_t &CreationSlots, bool CreateNewTimeObjectIfNoneExistent=true)
 TimeDependent (const char *timename="time", const char *timescalename="timescale", const RefPtr< VCreationPreferences > &VP=NullPtr(), const VTime &VT=VTime(0.0, 0.0, 0.0))
Public Member Functions inherited from Wizt::Fish< Fiber::Field >
 Fish (const string &field, int ExpertLevel=0)
 Constructor, specify slot name for this field.
template<class ... T>
bool acceptType ()
 Tell this field to accept certain types.
void setFieldExpertLevel (int EL)
 Set the expert level of this slot.
 ~Fish ()
 Destructor, cleaning up.
void registerFieldAsOutput ()
 Make field visible as output.
string Fieldname (const RefPtr< ValuePool > &VP) const
 Get the name of the selected field.
string getFieldname (const RefPtr< ValuePool > &VP) const
 Get the name of the selected field.
RefPtr< Fiber::FieldgetField (const RefPtr< ValuePool > &VP) const
 Get a vertex field from the root level from the current selection.
RefPtr< Fiber::FieldgetField (const RefPtr< ValuePool > &VP, const string &theFieldName) const
 Get another field from the same Grid.
RefPtr< Fiber::FieldgetFieldRepresentation (const RefPtr< Fiber::Representation > &LevelRep, const RefPtr< ValuePool > &VP, const RefPtr< Fiber::Skeleton > &DestVertices, Fiber::Grid &SourceGrid, Fiber::Slice &DestGridSlice, const string &HelperDestGridName, bool StoreResult=true)
 Get Field from a possibly different Grid.
RefPtr< Fiber::FieldgetCoordinates (const RefPtr< ValuePool > &VP) const
 Get the coordinates on this Grid.
FieldSelector getFieldSelector (const RefPtr< ValuePool > &VP) const
double getTime (const RefPtr< ValuePool > &VP, const RefPtr< Fiber::Bundle > &SpaceTime) const override
 Get the time from the current field selector.
TypedSlot< VTimegetTimeSlot () const
 Return the associated time slot from the source object.
RefPtr< VManagedObjectgetSource () const
 Get the source object of this field slot, can be used to check if the field is connected to a source at all.
bool IterateLevels (LevelIterator &LI, const RefPtr< ValuePool > &Context, const Fiber::BundlePtr &SpaceTime=Fiber::BundlePtr(NullPtr())) const
 Get a field from an arbitrary representation from the current selection.
Public Member Functions inherited from Wizt::ShaderFields
 ShaderFields (VObject *that, const string &AllowImplicitFieldsSlotName="AllowImplicitFields", int AllowImplicitFieldsSlotEL=9)
string_set getShaderDefaultFields (const string &Shaderfield) const
bool isNewerThan (const Ageable &A) const
getSkeletonFieldsResults_t getSkeletonField (const RefPtr< Fiber::Skeleton > &DestVertexSkeleton, const RefPtr< Fiber::Chart > &chart, const string &ShaderfieldName, const RefPtr< ValuePool > &Context, const FieldSelector &FS) const
virtual bool validateFragment (const RefPtr< ValuePool > &Context, const RenderNamespace::glsl &FieldID, const RefPtr< Fiber::FragmentID > &FID, const WeakPtr< Fiber::FiberTypeBase > &FTB, int ElementTextureLength) const
bool validateFields (VRequest &Context, const RefPtr< Fiber::Skeleton > &theSkeleton, const RefPtr< Fiber::Chart > &chart, const FieldValidator_t &FV, string &ValidateInputInfoString) const
bool isMandatoryShaderAttribute (const string &AttributeName) const
 Check whether a given shader attribute must be provided.
bool addField (VRequest &Context, const RefPtr< Fiber::Skeleton > &theSkeleton, const RefPtr< Fiber::Chart > &chart, const TypedSlot< Fiber::FieldSelector > &theFieldSelector, const RenderNamespace::glsl &AttributeName, RenderFields &Result, string &InfoString)
 Add a field to the provided FieldList.
bool addFields (VRequest &Context, const RefPtr< Fiber::Skeleton > &theSkeleton, const RefPtr< Fiber::Chart > &chart, RenderFields &Result, string &InfoString)
 Add all stored fields to the provided FieldList.
RenderNamespace::glsl getShaderDefinitions (const RefPtr< ValuePool > &Context, const RenderNamespace::glsl &FieldID, const Fiber::Field &F, const RefPtr< Fiber::FragmentID > &FID, const RefPtr< Fiber::SizeInterface > &PrimaryDataFragmentSize) const
RenderNamespace::glsl getFieldsShaderDefinitions (const RefPtr< ValuePool > &Context, const RenderFields::RefinementIndex &SkeletonID, const RefPtr< Fiber::FragmentID > &FID, const RefPtr< Fiber::SizeInterface > &PrimaryDataFragmentSize, const RenderFields &RF) const
RenderNamespace::glsl getFieldsShaderPrefix (const RefPtr< ValuePool > &Context, const RenderFields::RefinementIndex &SkeletonID, const RefPtr< Fiber::FragmentID > &FID, Fiber::CreativeArrayBase &myPrimaryDataFragment, const RenderFields &RF) const
Public Member Functions inherited from Wizt::Orientation
 Orientation (VObject *what, const std::string &name="orientation", int EL=0, unsigned DefaultValue=2)
int getOrientation (const RefPtr< ValuePool > &Context) const
 Return 0,1 or 2 for the currently selected orientation in X,Y or Z.
Eagle::bivector3 getOrientationVector (const RefPtr< ValuePool > &Context) const
 Return a bi-vector corresponding to the currently selected orientation.
bool setSliceRange (const RefPtr< ValuePool > &Context, const RefPtr< Eagle::BoundingBox > &BBox, const TypedSlot< double > &CoordinateValue, bool AdjustValueAsWell) const
 Given a bounding box, set the min/max properties of the given typed slot according to the currently selected orientation.
Public Member Functions inherited from Wizt::FloatOrigin
RefPtr< Chunk< Eagle::point3 > > computeShiftedCoordinates (const RefPtr< Chunk< Eagle::point3 > > &RawCoordinates, const Eagle::tvector3 &TranslationVector) const
VRenderContext::ModelViewState getCoordinateTranslation (const VRenderContext &Context, Eagle::tvector3 &TranslationVector) const
VRenderContext::ModelViewState getCoordinateTranslation (const VRenderContext &Context, Intercube &IC, Eagle::tvector3 &TranslationVector) const
Public Member Functions inherited from Wizt::Programmable
RefPtr< RenderBasin::ProgramCompileShader (VRenderContext &Context, const std::string &Name, const RenderBasin::Program::Setup &SetupFunction=nullptr, const RefPtr< RenderBasin::Program > &ExistingProgram=nullptr, const glsl &LocalVertexShaderPrefixCode="", const glsl &LocalGeometryShaderPrefixCode="", const glsl &LocalFragmentShaderPrefixCode="") const
void enableViewportArray (bool EnableFragmentLayerViewport=true)
virtual glsl geometry_shader (VRenderContext &Context) const
virtual glsl GeometryShaderPrefix (VRenderContext &Context) const
std::pair< glsl, stringgetCode (VRenderContext &Context, const std::string &Name, const std::string &Ext, std::string(Programmable::*shader)(VRenderContext &Context) const, const string &PrefixCode) const
void setGLSLVersion (const string &v_version, const string &g_version, const string &f_version)
void setGLSLVersion (const string &version)
Public Member Functions inherited from Wizt::Colorizer
 Colorizer (VObject *that, const string &slotname="colormap", int EL=0)
MemCore::RefPtr< RenderBasin::TextureTentaclecreateColormapTexture (VRenderContext &Context, int TextureUnit, const MemCore::RefPtr< RenderBasin::TextureTentacle > &OldTT=NullPtr(), bool IntegerTexture=false) const
bool haveNewerColormap (VRenderContext &Context, const Ageable &) const
MemCore::RefPtr< RenderBasin::TextureTentaclemakeColormapTexture (VRenderContext &Context, const RefPtr< RenderBasin::Program > &ShaderProgram, int TextureUnit, const string &ShaderTexturename="", bool IntegerTexture=false) const

Protected Attributes

in< EnumMode
std::string ColormapTextureName
 The name of the color map texture in the shader.
std::string DataTextureName
 The name of the data texture in the shader.
Protected Attributes inherited from Wizt::VObject
MemCore::Counter UpdateCounter
MemCore::Counter RequestCounter
Protected Attributes inherited from Wizt::Fish< Fiber::Field >
TypedSlot< Fiber::FieldMyField

Additional Inherited Members

Static Public Member Functions inherited from Wizt::FieldSlice
static RefPtr< Chunk< Eagle::point3 > > makeQuadTextureCoords (size_t SliceDimsX, size_t SliceDimsY, bool QuadStrip)
Static Public Member Functions inherited from Wizt::GridAnemone
static RefPtr< RenderBasin::VertexAttributecreateVertexCoordinates (VRenderContext &Context, const RefPtr< Fiber::MemBase > &Coordinates, bool AllowProceduralCoordinates)
static const char * getAnemoneRenderStatusDescription (AnemoneRenderStatus)
static void destroyAnemone (RefPtr< Anemone > &Anemone, const AnemoneCreationContext &ARC)
Static Public Member Functions inherited from Wizt::VConnectable
static bool attachSlot (const WeakPtr< VSlot > &DestSlot, const RefPtr< VParameter > &ProvidedParam, const string &Member={})
static bool attachSlot (const WeakPtr< VSlot > &DestSlot, const RefPtr< VSlot > &SourceSlot, const string &Member={})
static bool detachSlot (const RefPtr< VSlot > &SourceSlot)
Static Public Member Functions inherited from Wizt::VSlotContainer
static const char * AttachErrorCodeMessage (AttachErrorCode)
static bool attachParameter (const RefPtr< VParameter > &theProvidedParam, const WeakPtr< VSlot > &theDestSlot, const string &theMember={})
Static Public Member Functions inherited from Wizt::ValueCacheable
static ValueCacheconsider (MemCore::Intercube &IC, const WeakPtr< VSlot > &VS, const RefPtr< ValuePool > &Context)
static ValueCachegetValueCache (MemCore::Intercube &IC)
static bool hasChangedSlots (const WeakPtrToVSlotContainer &theSlotOwner, const MemCore::Intercube &IC, const RefPtr< ValuePool > &Context)
Static Public Member Functions inherited from Wizt::RenderAble
static const char * VisibilitySlotName ()
Static Public Member Functions inherited from Wizt::VObject
static bool remove (const string &s)
static int findOutputObjects (const type_info &Type, OutputObjectIterator &GOutputs)
static string createChildname (const string &parent_name)
static VAcceptInfoList_t accept (const VObjectPtr &vobj)
static RefPtr< VParameterfindUniqueOutputObject (const type_info &Type, const RefPtr< VCreationPreferences > &VCP, bool ReallyUnique, const VObject *NotThisOne)
Static Public Member Functions inherited from Wizt::VSaveable
static VSaveableGlobalState ()
Static Public Member Functions inherited from Wizt::VManagedDomainObject< VObject >
static RefPtr< VManagedObjectfind (const string &s)
static int iterate (VManagedObjectIterator_t VIt, int p_start=INT_MIN, int p_end=INT_MAX)
static int size ()
static int traverse (VManagedObjectIterator &VIt, int p_start=INT_MIN, int p_end=INT_MAX)
Static Public Member Functions inherited from Wizt::VManagedObject
static int count ()
static VManagedObjectPtr find (const type_info &, const std::string &s)
static bool InitDomain (const type_info &)
static int iterateModules (ModuleIterator &VIM)
static int size (const type_info &)
static int traverse (const type_info &, VManagedObjectIterator &VIt, int p_start, int p_end)
static void UnloadVModule (const string &what, VRemoveItem &RI)
Static Public Member Functions inherited from MemCore::MutableName
static std::string BaseName (const std::string &theName, const char Separator)
Static Public Member Functions inherited from Wizt::ShaderFields
static getSkeletonFieldsResults_t getSkeletonField (const RefPtr< Fiber::Skeleton > &DestVertexSkeleton, const RefPtr< Fiber::Chart > &chart, const FieldSelector &FS, const string_set &ImplicitFieldNames, bool AllowImplicitFields)
 Provide a field on a skeleton, considering possibly given implicit field names, i.e.
static RenderNamespace::glsl getPositionsShaderFunction (const Fiber::CreativeArrayBase &theCoordinateFragment)
 Defines functions in the vertex shader that allow to compute positions also from uniform coordinates.
Static Public Member Functions inherited from Wizt::Orientation
static Eagle::bivector3 getOrientationVector (int OrientationValue)
 Given an orientation direction (0,1,2) corresponding to X,Y,Z, return a bivector describing that plane.
Static Public Member Functions inherited from Wizt::FloatOrigin
static VRenderContext::ModelViewState getTranslationVector (const VRenderContext &Context, Intercube &IC, Eagle::tvector3 &TranslationVector, double CameraShiftThreshold)
static Eagle::tvector3 getTranslationVector (Intercube &IC)
Static Public Member Functions inherited from Wizt::Programmable
static string OptionalFileRead (const string &filename, const string &text)
static glsl setNumberOfLightSources (VRenderContext &Context, const std::string &VariableName="lightNum")
Static Public Member Functions inherited from Wizt::Colorizer
static RefPtr< RenderBasin::TextureTentaclecreateColormapTexture (Colormap &Cmap, VRenderContext &Context, int TextureUnit, const MemCore::RefPtr< RenderBasin::TextureTentacle > &OldTT=nullptr, bool IntegerTexture=false)
static const char * getColormapFunctionDefinitions ()
static bool setSmoothColormap (const MemCore::RefPtr< RenderBasin::TextureTentacle > &TT, bool yes=true)
Public Attributes inherited from Wizt::FieldSlice
inout< double > inCoordinateValue
in< VBoundingBoxinPlacement
in< Eagle::point3 > inP00
in< Eagle::point3 > inP01
in< Eagle::point3 > inP11
in< Eagle::point3 > inP10
TypedSlot< Fiber::FragmentSelectorinFragmentSelector
Public Attributes inherited from Wizt::FieldAnemone
std::unordered_map< int, std::stringTextureUnitNames
Public Attributes inherited from Wizt::FieldAnemoneBase
TypedSlot< Fiber::GridmyEvaluationGrid
 The optional Grid that is used for rendering, all fields will be evaluated and displayed on this Grid, if it is specified.
Public Attributes inherited from Wizt::GridAnemone
inout< double > inLevelThreshold
in< double > inRenderTimeFactor
inout< RefPtr< CellTensorFunctor > > inCellTensorFunctor
in< bool > inFreeze
in< bool > inShowTerminalOnly
inout< int > inMinLevel
inout< int > inNumberOfLevels
inout< int > inMaxNumberOfRenderFragments
inout< int > inMinNumberOfElementsPerFragments
inout< int > inMaxNumberOfElementsPerFragments
out< VBoundingBoxoutVisibleBBox
out< Fiber::GridoutVisibleGrid
SortMethod CurrentSortMethod = SortMethod::None
Public Attributes inherited from Wizt::VSlotContainer
 AllLevels
 DestParameterNotFound
 InvalidDestParameter
Public Attributes inherited from Wizt::VEnvironmentRenderObject
VOutput< VCameraSetPtr > myCameraSet
Public Attributes inherited from Wizt::RenderAble
out< double > outRenderTimeContribution
in< bool > Visibility
Public Attributes inherited from Wizt::VObject
 HelpURL
 HTMLText
 PlainText
 ShortHTMLText
 ShortText
std::string whyupdate
string UserInfo
Public Attributes inherited from Wizt::RenderNamespace
 COLORS
 COORDINATES
 LINE_LOOP
 LINE_STRIP
 LINES
 NORMALS
 POINTS
 POLYGON
 TRIANGLE_STRIP
 TRIANGLE_FAN
 TRIANGLES
 QUAD_STRIP
 QUADS
 SECONDARY_COLORS
 TEXTURE0
 TEXTURE1
 USER_DEFINED
Public Attributes inherited from Wizt::StatusIndicator
VOutput< VObjectStatusStatusInfo
Public Attributes inherited from Wizt::ShaderFields
ShaderFields_t myShaderFields
 Map from names used in the GLSL code to input field slots.
VObject::in< bool > inAllowImplicitFields
std::unordered_map< string, string_set > myShaderDefaultFields
 For each shader field optionally provide a name for the field on the Grid.
std::unordered_set< std::string > MandatoryShaderAttributes
Public Attributes inherited from Wizt::Orientation
TypedSlot< EnummyOrientation
Public Attributes inherited from Wizt::Programmable
glsl f_prefix
glsl g_prefix
RenderBasin::GeometryInputType GeometryInput
RenderBasin::GeometryOutputType GeometryOutput
glsl v_prefix
Static Public Attributes inherited from Wizt::VObject
static constexpr char NameSeparator
static constexpr char SlotNameSeparator
Static Public Attributes inherited from Wizt::VManagedObject
static string CurrentLoadModule
Static Public Attributes inherited from Wizt::StatusIndicator
static const char Slotname []
Static Public Attributes inherited from Wizt::TimeDependent
static const char * GlobalTimePreference
Static Public Attributes inherited from Wizt::ShaderFields
static const char define_ATTRIBUTE_INDEX_LOCATION []
 A glsl macro to define a.
Static Public Attributes inherited from Wizt::Programmable
static const char default_fragment_shader []
static const char default_geometry_shader []
static const char default_vertex_shader []
Protected Types inherited from Wizt::VObject
typedef bool(* UpdateFunction) (VObject *, VRequest &, double precision)
Protected Member Functions inherited from Wizt::VSlotContainer
virtual void setup (const CreationSlots_t &CreationSlots)
Protected Member Functions inherited from MemCore::ReferenceBase< VManagedObjectBase >
virtual void extremeUnction ()
ReferenceBaseoperator= (const ReferenceBase &R)
void suicide ()
Protected Member Functions inherited from Wizt::RenderAble
 RenderAble (const string &name, int p, const RefPtr< VCreationPreferences > &VP)
Protected Member Functions inherited from Wizt::VObject
virtual bool unsychronized_update (VRequest &VR, double precision)
Protected Member Functions inherited from Wizt::TimeDependent
void TimeSetup (const VConnectable::CreationSlots_t &CreationSlots)

Detailed Description

Base class for a common properties of render objects rendering a 2D slice of a 3D scalar field.

Member Function Documentation

◆ addRenderFragment()

bool Wizt::ColorizedFloatSliceRenderer::addRenderFragment ( VRenderContext & Context,
Anemone & RenderAnemone,
AnemoneCreator<> & theAnemoneCreator,
const RefPtr< Fiber::CreativeArrayBase > & RenderDataCreator,
const RefPtr< Fiber::FragmentID > & Fid,
const RefPtr< Fiber::Field > & CoordinateField,
const LevelData::FieldList_t & theOutputFields ) const
override

Add data from this field's fragment to the render anemone:

  1. Compile shader using this object's base name
  2. Setup the color map texture
  3. Setup an optional normal vector for light effects
  4. Load data as texture with just a RED component

References addRenderFragment(), MemCore::MutableName::BaseName(), ColormapTextureName, Wizt::Programmable::CompileShader(), Wizt::Colorizer::createColormapTexture(), DataTextureName, Wizt::RenderBasin::TextureStorageFormat::Float, Wizt::Orientation::getOrientationVector(), Wizt::Anemone::insert(), Wizt::RenderBasin::Red(), and setTextureMode().

Referenced by addRenderFragment().

◆ fragment_shader()

std::string Wizt::ColorizedFloatSliceRenderer::fragment_shader ( VRenderContext & Context) const
overridevirtual

Fragmentshader GLSL code, looks up a data value in the data texture for the given texture coordinate and looks up its color via the colormap texture.

Implements Wizt::Programmable.

References fragment_shader().

Referenced by fragment_shader().

◆ getShaderAttributeName()

string Wizt::ColorizedFloatSliceRenderer::getShaderAttributeName ( const TypedSlot< Fiber::Field > & ) const
overridevirtual

Use the DataTextureName to represent the primary input field in the shader.

Reimplemented from Wizt::FieldAnemone.

References DataTextureName, and getShaderAttributeName().

Referenced by getShaderAttributeName().

◆ updateFieldSliceAnemone()

bool Wizt::ColorizedFloatSliceRenderer::updateFieldSliceAnemone ( VRenderContext & Context,
Anemone & RenderAnemone,
AnemoneCreator<> & theAnemoneCreator,
const LevelData & theLevelData,
const RefPtr< Fiber::CreativeArrayBase > & RenderDataCreator,
const RefPtr< Fiber::FragmentID > & Fid ) const
overridevirtual

Render Caching: Determine when the render anemone can be updated or needs to be re-created.

Reimplemented from Wizt::FieldSlice.

References MemCore::MutableName::BaseName(), ColormapTextureName, Wizt::Programmable::CompileShader(), DataTextureName, Wizt::Anemone::getProgram(), setTextureMode(), updateColormap(), and updateFieldSliceAnemone().

Referenced by updateFieldSliceAnemone().

◆ vertex_shader()

std::string Wizt::ColorizedFloatSliceRenderer::vertex_shader ( VRenderContext & Context) const
overridevirtual

Vertexshader GLSL code, sets up texture coordinates and transform vertices.

Todo
Add light source handling

Implements Wizt::Programmable.

References vertex_shader().

Referenced by vertex_shader().