Panda3D
Public Member Functions | Static Public Member Functions
CullHandler Class Reference

This defines the abstract interface for an object that receives Geoms identified by the CullTraverser. More...

#include "cullHandler.h"

Inheritance diagram for CullHandler:
BinCullHandler DrawCullHandler PipeOcclusionCullTraverser

List of all members.

Public Member Functions

virtual void end_traverse ()
 This callback function is intended to be overridden by a derived class.
virtual void record_object (CullableObject *object, const CullTraverser *traverser)
 This callback function is intended to be overridden by a derived class.

Static Public Member Functions

static void draw (CullableObject *object, GraphicsStateGuardianBase *gsg, bool force, Thread *current_thread)
 Draws the indicated CullableObject, with full support for decals if they are attached to the object.

Detailed Description

This defines the abstract interface for an object that receives Geoms identified by the CullTraverser.

By itself, it's not a particularly useful class; to use it, derive from it and redefine record_object().

Definition at line 31 of file cullHandler.h.


Member Function Documentation

void CullHandler::draw ( CullableObject object,
GraphicsStateGuardianBase gsg,
bool  force,
Thread current_thread 
) [inline, static]

Draws the indicated CullableObject, with full support for decals if they are attached to the object.

The appropriate state is set on the GSG before drawing the object.

Definition at line 24 of file cullHandler.I.

Referenced by DrawCullHandler::record_object().

void CullHandler::end_traverse ( ) [virtual]

This callback function is intended to be overridden by a derived class.

This is called at the end of the traversal.

Reimplemented in PipeOcclusionCullTraverser.

Definition at line 66 of file cullHandler.cxx.

Referenced by CullTraverser::end_traverse().

void CullHandler::record_object ( CullableObject object,
const CullTraverser traverser 
) [virtual]

This callback function is intended to be overridden by a derived class.

This is called as each Geom is discovered by the CullTraverser.

The CullHandler becomes the owner of the CullableObject pointer and is expected to delete it later.

Reimplemented in PipeOcclusionCullTraverser, DrawCullHandler, and BinCullHandler.

Definition at line 52 of file cullHandler.cxx.

Referenced by CallbackNode::add_for_draw(), GeomNode::add_for_draw(), SpeedTreeNode::add_for_draw(), OccluderNode::cull_callback(), PlaneNode::cull_callback(), CullTraverser::draw_bounding_volume(), PipeOcclusionCullTraverser::end_traverse(), and NodeCullCallbackData::upcall().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations