3#include <cgv/base/node.h>
4#include <cgv/signal/bool_signal.h>
24 virtual bool shows(
const void* ptr)
const = 0;
33extern CGV_API
void update_views(
void* member_ptr);
50 view(
const std::string& _name,
const T& _value) :
abst_view(_name), value_ptr(&_value) {
56 bool shows(
const void* ptr)
const {
return value_ptr == ptr; }
62#include <cgv/config/lib_end.h>
std::string name
store the name as a string
The node class keeps a pointer to its parent.
reference counted pointer, which can work together with types that are derived from ref_counted,...
void detach_from_reference()
detach view again
abst_view(const std::string &name)
pass name on to node, careful the implementation of this is in the source file control....
void update_views()
calls the update method of all other attached views
virtual bool shows(const void *ptr) const =0
return whether the view edits the value pointed to by ptr
void attach_to_reference(const void *ptr)
links all views to a reference into a doubly linked list in order to allow controls of the reference ...
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
namespace that holds the abstract gui interface
data::ref_ptr< abst_view > view_ptr
ref counted pointer to abst view
this header is dependency free