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

vtkFrustumCoverageCuller Class Reference

cull props based on frustum coverage. More...

#include <vtkFrustumCoverageCuller.h>

Inheritance diagram for vtkFrustumCoverageCuller:

Inheritance graph
[legend]
Collaboration diagram for vtkFrustumCoverageCuller:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetMinimumCoverage (float)
virtual float GetMinimumCoverage ()
virtual void SetMaximumCoverage (float)
virtual float GetMaximumCoverage ()
virtual void SetSortingStyle (int)
virtual int GetSortingStyle ()
void SetSortingStyleToNone ()
void SetSortingStyleToBackToFront ()
void SetSortingStyleToFrontToBack ()
const char * GetSortingStyleAsString (void)
float Cull (vtkRenderer *ren, vtkProp **propList, int &listLength, int &initialized)

Static Public Methods

vtkFrustumCoverageCuller * New ()
int IsTypeOf (const char *type)
vtkFrustumCoverageCuller * SafeDownCast (vtkObject *o)

Protected Methods

 vtkFrustumCoverageCuller ()
 ~vtkFrustumCoverageCuller ()
 vtkFrustumCoverageCuller (const vtkFrustumCoverageCuller &)
void operator= (const vtkFrustumCoverageCuller &)

Protected Attributes

float MinimumCoverage
float MaximumCoverage
int SortingStyle

Detailed Description

cull props based on frustum coverage.

Date:
2000/12/10 20:08:38
Revision:
1.18

vtkFrustumCoverageCuller will cull props based on the coverage in the view frustum. The coverage is computed by enclosing the prop in a bounding sphere, projecting that to the viewing coordinate system, then taking a slice through the view frustum at the center of the sphere. This results in a circle on the plane slice through the view frustum. This circle is enclosed in a squared, and the fraction of the plane slice that this square covers is the coverage. This is a number between 0 and 1. If the number is less than the MinumumCoverage, the allocated render time for that prop is set to zero. If it is greater than the MaximumCoverage, the allocated render time is set to 1.0. In between, a linear ramp is used to convert coverage into allocated render time.

See also:
vtkCuller

Definition at line 74 of file vtkFrustumCoverageCuller.h.


Constructor & Destructor Documentation

vtkFrustumCoverageCuller::vtkFrustumCoverageCuller   [protected]
 

vtkFrustumCoverageCuller::~vtkFrustumCoverageCuller   [inline, protected]
 

Definition at line 115 of file vtkFrustumCoverageCuller.h.

vtkFrustumCoverageCuller::vtkFrustumCoverageCuller const vtkFrustumCoverageCuller &    [inline, protected]
 

Definition at line 116 of file vtkFrustumCoverageCuller.h.


Member Function Documentation

vtkFrustumCoverageCuller* vtkFrustumCoverageCuller::New   [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

virtual const char* vtkFrustumCoverageCuller::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkCuller.

int vtkFrustumCoverageCuller::IsTypeOf const char *    type [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkCuller.

virtual int vtkFrustumCoverageCuller::IsA const char *    type [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkCuller.

vtkFrustumCoverageCuller* vtkFrustumCoverageCuller::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkCuller.

void vtkFrustumCoverageCuller::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

virtual void vtkFrustumCoverageCuller::SetMinimumCoverage float    [virtual]
 

Set/Get the minimum coverage - props with less coverage than this are given no time to render (they are culled)

virtual float vtkFrustumCoverageCuller::GetMinimumCoverage   [virtual]
 

virtual void vtkFrustumCoverageCuller::SetMaximumCoverage float    [virtual]
 

Set/Get the maximum coverage - props with more coverage than this are given an allocated render time of 1.0 (the maximum)

virtual float vtkFrustumCoverageCuller::GetMaximumCoverage   [virtual]
 

virtual void vtkFrustumCoverageCuller::SetSortingStyle int    [virtual]
 

Set the sorting style - none, front-to-back or back-to-front The default is none

virtual int vtkFrustumCoverageCuller::GetSortingStyle   [virtual]
 

void vtkFrustumCoverageCuller::SetSortingStyleToNone   [inline]
 

Definition at line 96 of file vtkFrustumCoverageCuller.h.

void vtkFrustumCoverageCuller::SetSortingStyleToBackToFront   [inline]
 

Definition at line 98 of file vtkFrustumCoverageCuller.h.

void vtkFrustumCoverageCuller::SetSortingStyleToFrontToBack   [inline]
 

Definition at line 100 of file vtkFrustumCoverageCuller.h.

const char* vtkFrustumCoverageCuller::GetSortingStyleAsString void   
 

float vtkFrustumCoverageCuller::Cull vtkRenderer   ren,
vtkProp **    propList,
int &    listLength,
int &    initialized
[virtual]
 

WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDERING PROCESS Perform the cull operation This method should only be called by vtkRenderer as part of the render process

Reimplemented from vtkCuller.

void vtkFrustumCoverageCuller::operator= const vtkFrustumCoverageCuller &    [inline, protected]
 

Definition at line 117 of file vtkFrustumCoverageCuller.h.


Member Data Documentation

float vtkFrustumCoverageCuller::MinimumCoverage [protected]
 

Definition at line 119 of file vtkFrustumCoverageCuller.h.

float vtkFrustumCoverageCuller::MaximumCoverage [protected]
 

Definition at line 120 of file vtkFrustumCoverageCuller.h.

int vtkFrustumCoverageCuller::SortingStyle [protected]
 

Definition at line 121 of file vtkFrustumCoverageCuller.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:48:01 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001