cgv
Loading...
Searching...
No Matches
cgv::base::traverse_callback_handler Class Reference

interface of a handler for traverse callbacks More...

#include <traverser.h>

Inheritance diagram for cgv::base::traverse_callback_handler:
cgv::render::gl::format_callback_handler

Public Member Functions

virtual bool on_enter_node (base_ptr b)
 called before a node b is processed, return, whether to skip this node. If the node is skipped, the on_leave_node callback is still called
 
virtual bool on_leave_node (base_ptr b)
 called when a node b is left, return whether to terminate traversal
 
virtual bool on_enter_children (group_ptr g)
 called before the children of a group node g are processed, return whether these should be skipped. If children are skipped, the on_leave_children callback is still called.
 
virtual bool on_leave_children (group_ptr g)
 called when the children of a group node g have been left, return whether to terminate traversal
 
virtual bool on_enter_parent (node_ptr n)
 called before the parent of a node n is processed, return whether this should be skipped. If the parent is skipped, the on_leave_parent callback is still called.
 
virtual bool on_leave_parent (node_ptr n)
 called when the parent of a node n has been left, return whether to terminate traversal
 

Detailed Description

interface of a handler for traverse callbacks

Definition at line 76 of file traverser.h.

Member Function Documentation

◆ on_enter_children()

bool cgv::base::traverse_callback_handler::on_enter_children ( group_ptr  g)
virtual

called before the children of a group node g are processed, return whether these should be skipped. If children are skipped, the on_leave_children callback is still called.

Definition at line 60 of file traverser.cxx.

◆ on_enter_node()

bool cgv::base::traverse_callback_handler::on_enter_node ( base_ptr  b)
virtual

called before a node b is processed, return, whether to skip this node. If the node is skipped, the on_leave_node callback is still called

Definition at line 50 of file traverser.cxx.

◆ on_enter_parent()

bool cgv::base::traverse_callback_handler::on_enter_parent ( node_ptr  n)
virtual

called before the parent of a node n is processed, return whether this should be skipped. If the parent is skipped, the on_leave_parent callback is still called.

Definition at line 70 of file traverser.cxx.

◆ on_leave_children()

bool cgv::base::traverse_callback_handler::on_leave_children ( group_ptr  g)
virtual

called when the children of a group node g have been left, return whether to terminate traversal

Definition at line 65 of file traverser.cxx.

◆ on_leave_node()

bool cgv::base::traverse_callback_handler::on_leave_node ( base_ptr  b)
virtual

called when a node b is left, return whether to terminate traversal

Definition at line 55 of file traverser.cxx.

◆ on_leave_parent()

bool cgv::base::traverse_callback_handler::on_leave_parent ( node_ptr  n)
virtual

called when the parent of a node n has been left, return whether to terminate traversal

Definition at line 75 of file traverser.cxx.


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