ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPVHardwareSelector Class Reference

vtkHardwareSelector subclass with paraview sepecific logic to avoid recapturing buffers unless needed. More...

#include <vtkPVHardwareSelector.h>

Inherits vtkOpenGLHardwareSelector.

Public Types

typedef vtkOpenGLHardwareSelector Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
vtkSelection * Select (int region[4])
 Overridden to avoid clearing of captured buffers. More...
 
vtkSelection * PolygonSelect (int *polygonPoints, vtkIdType count)
 Same as Select() above, except this one use a polygon, instead of a rectangle region, and select elements inside the polygon. More...
 
virtual bool NeedToRenderForSelection ()
 Returns true when the next call to Select() will result in renders to capture the selection-buffers. More...
 
void InvalidateCachedSelection ()
 Called to invalidate the cache. More...
 
int AssignUniqueId (vtkProp *)
 
void SetSynchronizedWindows (vtkPVSynchronizedRenderWindows *)
 Set the vtkPVSynchronizedRenderWindows instance. More...
 
void BeginRenderProp (vtkRenderWindow *)
 Set the local ProcessId. More...
 

Static Public Member Functions

static vtkPVHardwareSelectorNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPVHardwareSelectorSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkPVHardwareSelector ()
 
 ~vtkPVHardwareSelector ()
 
virtual int GetPropID (int idx, vtkProp *prop)
 Return a unique ID for the prop. More...
 
virtual bool PassRequired (int pass)
 Returns is the pass indicated is needed. More...
 
bool PrepareSelect ()
 Prepare for selection. More...
 
virtual void SavePixelBuffer (int passNo)
 

Protected Attributes

vtkTimeStamp CaptureTime
 
int UniqueId
 
vtkWeakPointer< vtkPVSynchronizedRenderWindowsSynchronizedWindows
 

Detailed Description

vtkHardwareSelector subclass with paraview sepecific logic to avoid recapturing buffers unless needed.

vtkHardwareSelector is subclass of vtkHardwareSelector that adds logic to reuse the captured buffers as much as possible. Thus avoiding repeated selection-rendering of repeated selections or picking. This class does not know, however, when the cached buffers are invalid. External logic must explicitly calls InvalidateCachedSelection() to ensure that the cache is not reused.

Definition at line 36 of file vtkPVHardwareSelector.h.

Member Typedef Documentation

◆ Superclass

typedef vtkOpenGLHardwareSelector vtkPVHardwareSelector::Superclass

Definition at line 40 of file vtkPVHardwareSelector.h.

Constructor & Destructor Documentation

◆ vtkPVHardwareSelector()

vtkPVHardwareSelector::vtkPVHardwareSelector ( )
protected

◆ ~vtkPVHardwareSelector()

vtkPVHardwareSelector::~vtkPVHardwareSelector ( )
protected

Member Function Documentation

◆ New()

static vtkPVHardwareSelector* vtkPVHardwareSelector::New ( )
static

◆ GetClassName()

virtual const char* vtkPVHardwareSelector::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkPVHardwareSelector::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkPVHardwareSelector::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkPVHardwareSelector* vtkPVHardwareSelector::SafeDownCast ( vtkObject *  o)
static

◆ PrintSelf()

void vtkPVHardwareSelector::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ Select()

vtkSelection* vtkPVHardwareSelector::Select ( int  region[4])

Overridden to avoid clearing of captured buffers.

◆ PolygonSelect()

vtkSelection* vtkPVHardwareSelector::PolygonSelect ( int *  polygonPoints,
vtkIdType  count 
)

Same as Select() above, except this one use a polygon, instead of a rectangle region, and select elements inside the polygon.

◆ NeedToRenderForSelection()

virtual bool vtkPVHardwareSelector::NeedToRenderForSelection ( )
virtual

Returns true when the next call to Select() will result in renders to capture the selection-buffers.

◆ InvalidateCachedSelection()

void vtkPVHardwareSelector::InvalidateCachedSelection ( )
inline

Called to invalidate the cache.

Definition at line 63 of file vtkPVHardwareSelector.h.

◆ AssignUniqueId()

int vtkPVHardwareSelector::AssignUniqueId ( vtkProp *  )

◆ SetSynchronizedWindows()

void vtkPVHardwareSelector::SetSynchronizedWindows ( vtkPVSynchronizedRenderWindows )

Set the vtkPVSynchronizedRenderWindows instance.

This is used to communicate between all active processes.

◆ BeginRenderProp()

void vtkPVHardwareSelector::BeginRenderProp ( vtkRenderWindow *  )

Set the local ProcessId.

◆ GetPropID()

virtual int vtkPVHardwareSelector::GetPropID ( int  idx,
vtkProp *  prop 
)
protectedvirtual

Return a unique ID for the prop.

◆ PassRequired()

virtual bool vtkPVHardwareSelector::PassRequired ( int  pass)
protectedvirtual

Returns is the pass indicated is needed.

Overridden to report that we always need the process-id pass. In future, we can be smart about it by only requiring it for sessions with more than 1 data-server.

◆ PrepareSelect()

bool vtkPVHardwareSelector::PrepareSelect ( )
protected

Prepare for selection.

Return false if CaptureBuffers() is false

◆ SavePixelBuffer()

virtual void vtkPVHardwareSelector::SavePixelBuffer ( int  passNo)
protectedvirtual

Member Data Documentation

◆ CaptureTime

vtkTimeStamp vtkPVHardwareSelector::CaptureTime
protected

Definition at line 105 of file vtkPVHardwareSelector.h.

◆ UniqueId

int vtkPVHardwareSelector::UniqueId
protected

Definition at line 106 of file vtkPVHardwareSelector.h.

◆ SynchronizedWindows

vtkWeakPointer<vtkPVSynchronizedRenderWindows> vtkPVHardwareSelector::SynchronizedWindows
protected

Definition at line 107 of file vtkPVHardwareSelector.h.


The documentation for this class was generated from the following file: