1#include <cgv/base/action.h>
7: default_result_begin(_default_result_begin), default_result_end(_default_result_end)
14 default_result_begin = default_result_end = _default_result;
20 default_result_begin = _default_result_begin;
26 default_result_end = _default_result_end;
45 return default_result_begin;
50 return default_result_end;
void set_default_result_end(bool _default_result_end)
sets the value that is returned for on_end events
void set_default_result_begin(bool _default_result_begin)
sets the value that is returned for on_begin events
virtual bool implements_action() const
check if the current object implements the interface needed for this action
virtual bool has_begin_only() const
check whether the action has registered a single begin method or both begin and end methods
action(bool _default_result_begin, bool _default_result_end)
construct with default return values for the begin and end method
virtual bool end()
perform the leave part of the action on the current object
virtual bool begin()
perform the enter part of the action on the current object
void set_default_results(bool _default_result)
sets the value that is returned, whenever no result is obtained from the traversed methods
virtual traverse_policy * get_policy() const
return the traverse_policy of the current object if available or 0 otherwise
virtual void select(base_ptr p)
make the passed object current
base class for all classes that can be registered with support for dynamic properties (see also secti...
nodes should inherit from this policy class to allow selective tree traversals