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();
33 extern 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>
virtual bool shows(const void *ptr) const =0
return whether the view edits the value pointed to by ptr
bool shows(const void *ptr) const
check whether the value viewed by this element is pointing to the given pointer
Definition: view.h:56
class for gui elements that view values of the type specified in the template argument
Definition: view.h:45
data::ref_ptr< abst_view > view_ptr
ref counted pointer to abst view
Definition: view.h:36
type independent &base class of all views
Definition: view.h:13
the cgv namespace
Definition: vr_calib.cxx:9
const T & get_value() const
return the current value
Definition: view.h:54
view(const std::string &_name, const T &_value)
construct abstract element from reference to value
Definition: view.h:50