VTK
|
cull props based on frustum coverage More...
#include <vtkFrustumCoverageCuller.h>
Public Types | |
typedef vtkCuller | Superclass |
Public Types inherited from vtkCuller | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkFrustumCoverageCuller * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetMinimumCoverage (double) |
virtual double | GetMinimumCoverage () |
virtual void | SetMaximumCoverage (double) |
virtual double | GetMaximumCoverage () |
virtual void | SetSortingStyle (int) |
virtual int | GetSortingStyle () |
void | SetSortingStyleToNone () |
void | SetSortingStyleToBackToFront () |
void | SetSortingStyleToFrontToBack () |
const char * | GetSortingStyleAsString (void) |
double | Cull (vtkRenderer *ren, vtkProp **propList, int &listLength, int &initialized) |
Public Member Functions inherited from vtkCuller | |
vtkCuller * | NewInstance () const |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkFrustumCoverageCuller * | New () |
static int | IsTypeOf (const char *type) |
static vtkFrustumCoverageCuller * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkCuller | |
static int | IsTypeOf (const char *type) |
static vtkCuller * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkFrustumCoverageCuller () | |
~vtkFrustumCoverageCuller () | |
Protected Member Functions inherited from vtkCuller | |
vtkCuller () | |
~vtkCuller () | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
double | MinimumCoverage |
double | MaximumCoverage |
int | SortingStyle |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
cull props based on frustum coverage
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.
Definition at line 50 of file vtkFrustumCoverageCuller.h.
Definition at line 54 of file vtkFrustumCoverageCuller.h.
|
protected |
|
inlineprotected |
Definition at line 99 of file vtkFrustumCoverageCuller.h.
|
static |
|
static |
|
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.
|
static |
|
protectedvirtual |
Reimplemented from vtkCuller.
vtkFrustumCoverageCuller* vtkFrustumCoverageCuller::NewInstance | ( | ) | const |
|
virtual |
|
virtual |
Set/Get the minimum coverage - props with less coverage than this are given no time to render (they are culled)
|
virtual |
Set/Get the minimum coverage - props with less coverage than this are given no time to render (they are culled)
|
virtual |
Set/Get the maximum coverage - props with more coverage than this are given an allocated render time of 1.0 (the maximum)
|
virtual |
Set/Get the maximum coverage - props with more coverage than this are given an allocated render time of 1.0 (the maximum)
|
virtual |
Set the sorting style - none, front-to-back or back-to-front The default is none
|
virtual |
Set the sorting style - none, front-to-back or back-to-front The default is none
|
inline |
Set the sorting style - none, front-to-back or back-to-front The default is none
Definition at line 77 of file vtkFrustumCoverageCuller.h.
|
inline |
Set the sorting style - none, front-to-back or back-to-front The default is none
Definition at line 79 of file vtkFrustumCoverageCuller.h.
|
inline |
Set the sorting style - none, front-to-back or back-to-front The default is none
Definition at line 81 of file vtkFrustumCoverageCuller.h.
const char* vtkFrustumCoverageCuller::GetSortingStyleAsString | ( | void | ) |
Set the sorting style - none, front-to-back or back-to-front The default is none
|
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
Implements vtkCuller.
|
protected |
Definition at line 101 of file vtkFrustumCoverageCuller.h.
|
protected |
Definition at line 102 of file vtkFrustumCoverageCuller.h.
|
protected |
Definition at line 103 of file vtkFrustumCoverageCuller.h.