Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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 List of all members.

Public Member Functions

virtual ~CullHandler ()
virtual void record_object (CullableObject *object)
 This callback function is intended to be overridden by a derived class.


Static Public Member Functions

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

void draw_with_decals (CullableObject *object, GraphicsStateGuardianBase *gsg)
 Draws the indicated CullableObject, assuming it has attached decals.


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_geom().

Definition at line 42 of file cullHandler.h.


Constructor & Destructor Documentation

CullHandler::~CullHandler  )  [virtual]
 

Definition at line 38 of file cullHandler.cxx.

References CullableObject::_geom, CullableObject::_state, CullableObject::_transform, and nout.


Member Function Documentation

void CullHandler::draw CullableObject object,
GraphicsStateGuardianBase gsg
[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 37 of file cullHandler.I.

Referenced by CullBinUnsorted::add_object().

void CullHandler::draw_with_decals CullableObject object,
GraphicsStateGuardianBase gsg
[static]
 

Draws the indicated CullableObject, assuming it has attached decals.

Definition at line 79 of file cullHandler.cxx.

References CullableObject::_geom, CullableObject::_next, CullableObject::_state, CullableObject::_transform, NULL, and GraphicsStateGuardianBase::set_state_and_transform().

void CullHandler::record_object CullableObject object  )  [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 BinCullHandler, and DrawCullHandler.

Definition at line 62 of file cullHandler.cxx.

References NULL.


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:49:03 2003 for Panda by doxygen1.3