VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
vtkPHardwareSelector Class Reference

vtkHardwareSelector useful for parallel rendering. More...

#include <vtkPHardwareSelector.h>

Inheritance diagram for vtkPHardwareSelector:
[legend]
Collaboration diagram for vtkPHardwareSelector:
[legend]

Public Types

typedef vtkOpenGLHardwareSelector Superclass
 
- Public Types inherited from vtkOpenGLHardwareSelector
typedef vtkHardwareSelector Superclass
 
typedef vtkHardwareSelector Superclass
 
- Public Types inherited from vtkHardwareSelector
enum  PassTypes {
  PROCESS_PASS, ACTOR_PASS, COMPOSITE_INDEX_PASS, ID_LOW24,
  ID_MID24, ID_HIGH16, MAX_KNOWN_PASS = ID_HIGH16, MIN_KNOWN_PASS = PROCESS_PASS
}
 
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkPHardwareSelectorNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual bool CaptureBuffers ()
 
virtual void SetProcessIsRoot (bool)
 
virtual bool GetProcessIsRoot ()
 
virtual void ProcessIsRootOn ()
 
virtual void ProcessIsRootOff ()
 
- Public Member Functions inherited from vtkOpenGLHardwareSelector
vtkOpenGLHardwareSelectorNewInstance () const
 
virtual void EndRenderProp ()
 
vtkOpenGLHardwareSelectorNewInstance () const
 
virtual void RenderCompositeIndex (unsigned int index)
 
virtual void RenderAttributeId (vtkIdType attribid)
 
virtual void RenderProcessId (unsigned int processid)
 
virtual void BeginRenderProp ()
 
virtual void BeginRenderProp ()
 
virtual void EndRenderProp ()
 
- Public Member Functions inherited from vtkHardwareSelector
vtkHardwareSelectorNewInstance () const
 
vtkSelectionSelect ()
 
int Render (vtkRenderer *renderer, vtkProp **propArray, int propArrayCount)
 
vtkPropGetPropFromID (int id)
 
virtual void SetRenderer (vtkRenderer *)
 
virtual vtkRendererGetRenderer ()
 
virtual void SetArea (unsigned int, unsigned int, unsigned int, unsigned int)
 
virtual void SetArea (unsigned int[4])
 
virtual unsigned intGetArea ()
 
virtual void GetArea (unsigned int &, unsigned int &, unsigned int &, unsigned int &)
 
virtual void GetArea (unsigned int[4])
 
virtual void SetFieldAssociation (int)
 
virtual int GetFieldAssociation ()
 
virtual void SetUseProcessIdFromData (bool)
 
virtual bool GetUseProcessIdFromData ()
 
PixelInformation GetPixelInformation (const unsigned int display_position[2])
 
PixelInformation GetPixelInformation (const unsigned int display_position[2], int maxDist)
 
PixelInformation GetPixelInformation (const unsigned int display_position[2], int maxDist, unsigned int selected_position[2])
 
void ClearBuffers ()
 
virtual void SetProcessID (int)
 
virtual int GetProcessID ()
 
virtual floatGetPropColorValue ()
 
virtual void GetPropColorValue (float &, float &, float &)
 
virtual void GetPropColorValue (float[3])
 
virtual void SetPropColorValue (float, float, float)
 
virtual void SetPropColorValue (float[3])
 
virtual int GetCurrentPass ()
 
virtual vtkSelectionGenerateSelection ()
 
virtual vtkSelectionGenerateSelection (unsigned int r[4])
 
virtual vtkSelectionGenerateSelection (unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2)
 
virtual vtkSelectionGeneratePolygonSelection (int *polygonPoints, vtkIdType count)
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () 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)
 
vtkCommandGetCommand (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 vtkPHardwareSelectorNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPHardwareSelectorSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkOpenGLHardwareSelector
static vtkOpenGLHardwareSelectorNew ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLHardwareSelectorSafeDownCast (vtkObjectBase *o)
 
static vtkOpenGLHardwareSelectorNew ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLHardwareSelectorSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkHardwareSelector
static vtkHardwareSelectorNew ()
 
static int IsTypeOf (const char *type)
 
static vtkHardwareSelectorSafeDownCast (vtkObjectBase *o)
 
static void Convert (int id, float tcoord[3])
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
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 vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkPHardwareSelector ()
 
 ~vtkPHardwareSelector ()
 
void StartRender ()
 
void EndRender ()
 
- Protected Member Functions inherited from vtkOpenGLHardwareSelector
 vtkOpenGLHardwareSelector ()
 
virtual ~vtkOpenGLHardwareSelector ()
 
virtual void BeginRenderProp (vtkRenderWindow *)
 
virtual void EndRenderProp (vtkRenderWindow *)
 
 vtkOpenGLHardwareSelector ()
 
virtual ~vtkOpenGLHardwareSelector ()
 
virtual void BeginRenderProp (vtkRenderWindow *)
 
virtual void EndRenderProp (vtkRenderWindow *)
 
virtual void SavePixelBuffer (int passNo)
 
- Protected Member Functions inherited from vtkHardwareSelector
 vtkHardwareSelector ()
 
 ~vtkHardwareSelector ()
 
int Convert (unsigned long offset, unsigned char *pb)
 
vtkIdType GetID (int low24, int mid24, int high16)
 
virtual bool PassRequired (int pass)
 
bool IsPropHit (int propid)
 
virtual void BeginSelection ()
 
virtual void EndSelection ()
 
void BuildPropHitList (unsigned char *rgbData)
 
int Convert (unsigned int pos[2], unsigned char *pb)
 
int Convert (int xx, int yy, unsigned char *pb)
 
virtual int GetPropID (int idx, vtkProp *vtkNotUsed(prop))
 
void ReleasePixBuffers ()
 
- 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

bool ProcessIsRoot
 
- Protected Attributes inherited from vtkOpenGLHardwareSelector
vtkInternals * Internals
 
- Protected Attributes inherited from vtkHardwareSelector
unsigned char * PixBuffer [10]
 
int ProcessID
 
int CurrentPass
 
int InPropRender
 
int PropID
 
float PropColorValue [3]
 
vtkRendererRenderer
 
unsigned int Area [4]
 
int FieldAssociation
 
bool UseProcessIdFromData
 
vtkIdType MaxAttributeId
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Friends

class vtkObserver
 

Detailed Description

vtkHardwareSelector useful for parallel rendering.

vtkPHardwareSelector is a vtkHardwareSelector that is parallel aware. It relies on the fact that the application is going to use some other mechanism to ensure that renders are synchronized among windows on all processes. The synchronization happens from the root node. When the root node renders, all processes render. Only vtkPHardwareSelector instance on the root node triggers the renders. All other processes, simply listen to the StartEvent fired and beginning of the render to ensure that vtkHardwareSelector's CurrentPass is updated appropriately.

Definition at line 35 of file vtkPHardwareSelector.h.

Member Typedef Documentation

Definition at line 39 of file vtkPHardwareSelector.h.

Constructor & Destructor Documentation

vtkPHardwareSelector::vtkPHardwareSelector ( )
protected
vtkPHardwareSelector::~vtkPHardwareSelector ( )
protected

Member Function Documentation

static vtkPHardwareSelector* vtkPHardwareSelector::New ( )
static
static int vtkPHardwareSelector::IsTypeOf ( const char *  type)
static
virtual int vtkPHardwareSelector::IsA ( const char *  name)
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 vtkOpenGLHardwareSelector.

static vtkPHardwareSelector* vtkPHardwareSelector::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkPHardwareSelector::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkOpenGLHardwareSelector.

vtkPHardwareSelector* vtkPHardwareSelector::NewInstance ( ) const
void vtkPHardwareSelector::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 vtkOpenGLHardwareSelector.

virtual void vtkPHardwareSelector::SetProcessIsRoot ( bool  )
virtual

Set/Get the is the root process. The root processes is the only processes which has the composited result and hence the only processes that capture buffers and builds selected list ids.

virtual bool vtkPHardwareSelector::GetProcessIsRoot ( )
virtual

Set/Get the is the root process. The root processes is the only processes which has the composited result and hence the only processes that capture buffers and builds selected list ids.

virtual void vtkPHardwareSelector::ProcessIsRootOn ( )
virtual

Set/Get the is the root process. The root processes is the only processes which has the composited result and hence the only processes that capture buffers and builds selected list ids.

virtual void vtkPHardwareSelector::ProcessIsRootOff ( )
virtual

Set/Get the is the root process. The root processes is the only processes which has the composited result and hence the only processes that capture buffers and builds selected list ids.

virtual bool vtkPHardwareSelector::CaptureBuffers ( )
virtual

Overridden to only allow the superclass implementation on the root node. On all other processes, the updating the internal state of the vtkHardwareSelector as the capturing of buffers progresses is done as a slave to the master render.

Reimplemented from vtkHardwareSelector.

void vtkPHardwareSelector::StartRender ( )
protected
void vtkPHardwareSelector::EndRender ( )
protected

Friends And Related Function Documentation

friend class vtkObserver
friend

Definition at line 71 of file vtkPHardwareSelector.h.

Member Data Documentation

bool vtkPHardwareSelector::ProcessIsRoot
protected

Definition at line 65 of file vtkPHardwareSelector.h.


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