3#include <cgv/base/node.h>
4#include <cgv/signal/bool_signal.h>
24 virtual bool shows(
const void* ptr)
const = 0;
26 void attach_to_reference(
const void* ptr);
28 void detach_from_reference();
33extern CGV_API
void update_views(
void* member_ptr);
50 view(
const std::string& _name,
const T& _value) :
abst_view(_name), value_ptr(&_value) {
51 attach_to_reference(value_ptr);
56 bool shows(
const void* ptr)
const {
return value_ptr == ptr; }
62#include <cgv/config/lib_end.h>
The node class keeps a pointer to its parent.
reference counted pointer, which can work together with types that are derived from ref_counted,...
type independent &base class of all views
virtual bool shows(const void *ptr) const =0
return whether the view edits the value pointed to by ptr
class for gui elements that view values of the type specified in the template argument
const T & get_value() const
return the current value
bool shows(const void *ptr) const
check whether the value viewed by this element is pointing to the given pointer
view(const std::string &_name, const T &_value)
construct abstract element from reference to value
data::ref_ptr< abst_view > view_ptr
ref counted pointer to abst view