The Vish Visualization Shell 0.3
Vish
Public Member Functions | List of all members
Wizt::RenderBasin::RenderParameter::ContextValue< Object, Type > Class Template Reference

Helper class for automatic updates of render parameters from constant values that are modified via context-relative object member functions. More...

#include <ocean/Anemonia/RenderBasin.hpp>

Inheritance diagram for Wizt::RenderBasin::RenderParameter::ContextValue< Object, Type >:
Wizt::RenderBasin::RenderParameter::Updater MemCore::ReferenceBase< Updater >

Public Member Functions

 ContextValue (const WeakPtr< Object > &theObject, const Type &theDefaultValue, Type(Object::*theGetValueFunction)(const Type &, VRenderContext &Context) const)
 Initialize a typed updater, remembering the default value.
 
bool updateValue (VRenderContext &Context, RenderParameter &RP) override
 Virtual update function, reads the typed slot relative to the context and sends it to the render parameter.
 
- Public Member Functions inherited from MemCore::ReferenceBase< Updater >
auto getObjectCountID () const noexcept
 Get a unique ID for this object in the given domain.
 
bool isIdentical (const WeakPtr< Updater, Updater > &PossibleSelf) const noexcept
 Check if this object is identical to the one used by the given pointer.
 
void mkAutoDestructive ()
 Marks this object as being automatically destructed, e.g.
 
refcount_t refcount () const noexcept
 The strong reference count.
 
 ReferenceBase (Updater *that) noexcept
 Constructor, initializes reference counter to zero.
 
const auto & self () const
 Return weak pointer to the object self.
 
refcount_t wrefcount () const noexcept
 The weak reference count.
 

Additional Inherited Members

- Public Types inherited from MemCore::ReferenceBase< Updater >
using reference_domain_t = Updater
 The type of the base class.
 
using SelfPtr_t = WeakPtr< Updater, Updater >
 Type for a pointer to this object itself.
 
- Protected Member Functions inherited from MemCore::ReferenceBase< Updater >
virtual void extremeUnction ()
 A virtual function that will be called just before the object is destroyed.
 
ReferenceBaseoperator= (const ReferenceBase &R)
 Protected assignment operator (should not be called).
 
void suicide ()
 Delete this.
 
virtual ~ReferenceBase ()
 Virtual destructor.
 

Detailed Description

template<class Object, class Type>
class Wizt::RenderBasin::RenderParameter::ContextValue< Object, Type >

Helper class for automatic updates of render parameters from constant values that are modified via context-relative object member functions.