CIvfCulling Class Reference

#include <ivf/IvfCulling.h>

Inheritance diagram for CIvfCulling:

CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

 CIvfCulling ()
virtual ~CIvfCulling ()
 IvfClassInfo ("CIvfCulling", CIvfBase)
void cull ()
void setComposite (CIvfComposite *composite)
void setCullView (CIvfView *view)
int getCullCount ()

Detailed Description

Scene culling class

Implements a scene culling algorithm using bounding spheres. The following code example illustrates using the CIvfCulling class:

 void CMyWindow::onInit()
 {
     m_culling = new CIvfCulling();
     m_scene = new CIvfComposite();
     m_camera = new CIvfCamera();
     .
     .
     m_culling->setComposite(m_scene);
     m_culling->setCullView(m_camera);
     .
     .
 }
 
 void CMyWindow::onRender()
 {
     m_culling->cull();
     m_camera->render();
     m_scene->render();
 }

Author:
Jonas Lindemann
Examples:

culling.cpp.

Definition at line 68 of file IvfCulling.h.


Constructor & Destructor Documentation

CIvfCulling::CIvfCulling  ) 
 

CIvfCulling constructor

virtual CIvfCulling::~CIvfCulling  )  [virtual]
 

CIvfCulling destructor


Member Function Documentation

void CIvfCulling::cull  ) 
 

Initiates the cull operation

Culls the assigned composite objects against the the view frustum of the assigned view. When an object has been culled the culled flag is set to true,

See also:
setCulled. If the flag is set to true the culled object is not rendered the int the next render() operation. The cull flag is automatically set to false after a render() method.

int CIvfCulling::getCullCount  ) 
 

Returns the number of objects culled

void CIvfCulling::setComposite CIvfComposite composite  ) 
 

Sets the composite to be culled (required)

void CIvfCulling::setCullView CIvfView view  ) 
 

Sets the view used to cull the composite (required)


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:50 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO