cgv
cgv::base::traverse_policy Class Reference

nodes should inherit from this policy class to allow selective tree traversals More...

#include <traverser.h>

Inheritance diagram for cgv::base::traverse_policy:
cgv::gui::event_handler cgv::render::drawable cgv::plot::plot_base cgv::render::callback_drawable cgv::render::gl::gl_implicit_surface_drawable_base cgv::render::gl::image_drawable cgv::render::gl::mesh_drawable cgv::render::multi_pass_drawable cgv::plot::plot2d cgv::plot::plot3d

Public Member Functions

 traverse_policy (int _policy=TP_ALL+TP_STOP_ON_SUCCESS, bool _active=true, int _focus=-1)
 construct default traverse policy that visits everything
 
int get_policy () const
 return the policy without the stop on success flag
 
bool stop_on_success () const
 return whether to stop on success
 
bool stop_on_failure () const
 return whether to stop on failure
 
void set_policy (int _policy)
 set a new policy, always add stop on success flag if needed
 
int get_focused_child () const
 return the focused child or -1 if none is focused
 
void set_focused_child (int _focused_child)
 set the focused child
 
bool get_active () const
 return whether the current node is active
 
void set_active (bool _active)
 set the active flag of the current node
 

Detailed Description

nodes should inherit from this policy class to allow selective tree traversals


The documentation for this class was generated from the following files: