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

vtkClientCompositeManager Class Reference

Composites and sends image over socket. More...

#include <vtkClientCompositeManager.h>

List of all members.

Public Types

enum  Tags {
  RENDER_RMI_TAG = 12721, WIN_INFO_TAG = 22134, REN_INFO_TAG = 22135, GATHER_Z_RMI_TAG = 987987,
  SERVER_Z_TAG = 88771, CLIENT_Z_TAG = 88772
}

Public Member Functions

 vtkTypeRevisionMacro (vtkClientCompositeManager, vtkParallelRenderManager)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetRenderWindow (vtkRenderWindow *renWin)
virtual void InitializeOffScreen ()
virtual void InitializeRMIs ()
void SetController (vtkMultiProcessController *controller)
virtual void StartRender ()
virtual void EndRender ()
void RenderRMI ()
void SetClientController (vtkSocketController *controller)
virtual vtkSocketController * GetClientController ()
virtual void SetClientFlag (int)
virtual int GetClientFlag ()
void SetUseRGB (int useRGB)
virtual int GetUseRGB ()
virtual void UseRGBOn ()
virtual void UseRGBOff ()
void SetCompositer (vtkCompositer *c)
virtual vtkCompositer * GetCompositer ()
float GetZBufferValue (int x, int y)
void GatherZBufferValueRMI (int x, int y)
virtual void SetSquirtLevel (int)
virtual int GetSquirtLevel ()

Static Public Member Functions

vtkClientCompositeManagerNew ()

Protected Member Functions

 vtkClientCompositeManager ()
 ~vtkClientCompositeManager ()
void SetPDataSize (int x, int y)
void ReallocPDataArrays ()
virtual void SatelliteStartRender ()
virtual void SatelliteEndRender ()
void PreRenderProcessing ()
void PostRenderProcessing ()
void MagnifyBuffer (vtkDataArray *localP, vtkDataArray *magP, int windowSize[2])
void DoubleBuffer (vtkDataArray *localP, vtkDataArray *magP, int windowSize[2])
void ReceiveAndSetColorBuffer ()
void SquirtCompress (vtkUnsignedCharArray *in, vtkUnsignedCharArray *out, int compress_level)
void SquirtDecompress (vtkUnsignedCharArray *in, vtkUnsignedCharArray *out)
void DeltaEncode (vtkUnsignedCharArray *buf)
void DeltaDecode (vtkUnsignedCharArray *buf)

Protected Attributes

vtkSocketController * ClientController
vtkCompositer * Compositer
int ClientFlag
unsigned long StartTag
vtkImageData * CompositeData
vtkImageActor * ImageActor
vtkCamera * SavedCamera
vtkObject * RenderView
double InternalReductionFactor
int PDataSize [2]
vtkDataArray * PData
vtkFloatArray * ZData
vtkDataArray * PData2
vtkFloatArray * ZData2
int SquirtLevel
vtkUnsignedCharArray * SquirtArray
vtkUnsignedCharArray * BaseArray
int UseRGB


Detailed Description

Composites and sends image over socket.

vtkClientCompositeManager operates in client server mode. Server composites normaly. I wanted to use vtkPVTreeComposite here, But have to rethink the architecture. Only the first render in the render window gets composited. Client receives the image over the socket. Additional renderers render on top of the remote image. (No zbuffer).

See also:
vtkMultiProcessController vtkRenderWindow vtkCompositeManager.

Definition at line 46 of file vtkClientCompositeManager.h.


Member Enumeration Documentation

enum vtkClientCompositeManager::Tags
 

Enumeration values:
RENDER_RMI_TAG 
WIN_INFO_TAG 
REN_INFO_TAG 
GATHER_Z_RMI_TAG 
SERVER_Z_TAG 
CLIENT_Z_TAG 

Definition at line 107 of file vtkClientCompositeManager.h.


Constructor & Destructor Documentation

vtkClientCompositeManager::vtkClientCompositeManager  )  [protected]
 

vtkClientCompositeManager::~vtkClientCompositeManager  )  [protected]
 


Member Function Documentation

vtkClientCompositeManager* vtkClientCompositeManager::New  )  [static]
 

vtkClientCompositeManager::vtkTypeRevisionMacro vtkClientCompositeManager  ,
vtkParallelRenderManager 
 

void vtkClientCompositeManager::PrintSelf ostream &  os,
vtkIndent  indent
 

virtual void vtkClientCompositeManager::SetRenderWindow vtkRenderWindow *  renWin  )  [virtual]
 

Set/Get the RenderWindow to use for compositing. We add a start and end observer to the window.

virtual void vtkClientCompositeManager::InitializeOffScreen  )  [virtual]
 

Used to get satellite windows rendering off screen.

virtual void vtkClientCompositeManager::StartRender  )  [virtual]
 

Callbacks that initialize and finish the compositing.

virtual void vtkClientCompositeManager::EndRender  )  [virtual]
 

Callbacks that initialize and finish the compositing.

void vtkClientCompositeManager::RenderRMI  ) 
 

Callbacks that initialize and finish the compositing.

virtual void vtkClientCompositeManager::InitializeRMIs  )  [virtual]
 

If the user wants to handle the event loop, then they must call this method to initialize the RMIs.

void vtkClientCompositeManager::SetController vtkMultiProcessController *  controller  ) 
 

Set/Get the controller use in compositing (set to the global controller by default) If not using the default, this must be called before any other methods.

void vtkClientCompositeManager::SetClientController vtkSocketController *  controller  ) 
 

Set/Get the controller use to communicate to client.

virtual vtkSocketController* vtkClientCompositeManager::GetClientController  )  [virtual]
 

Set/Get the controller use to communicate to client.

virtual void vtkClientCompositeManager::SetClientFlag int   )  [virtual]
 

This flag is needed to differentiate between client and server, since the socket controller allways thinks it is node 0.

virtual int vtkClientCompositeManager::GetClientFlag  )  [virtual]
 

This flag is needed to differentiate between client and server, since the socket controller allways thinks it is node 0.

void vtkClientCompositeManager::SetUseRGB int  useRGB  ) 
 

This flag tells the compositier to get the color buffer as RGB instead of RGBA. We do not use the alpha value so it is not important to get. ATI Radeon cards / drivers do not properly get the color buffer as RGBA.

virtual int vtkClientCompositeManager::GetUseRGB  )  [virtual]
 

This flag tells the compositier to get the color buffer as RGB instead of RGBA. We do not use the alpha value so it is not important to get. ATI Radeon cards / drivers do not properly get the color buffer as RGBA.

virtual void vtkClientCompositeManager::UseRGBOn  )  [virtual]
 

This flag tells the compositier to get the color buffer as RGB instead of RGBA. We do not use the alpha value so it is not important to get. ATI Radeon cards / drivers do not properly get the color buffer as RGBA.

virtual void vtkClientCompositeManager::UseRGBOff  )  [virtual]
 

This flag tells the compositier to get the color buffer as RGB instead of RGBA. We do not use the alpha value so it is not important to get. ATI Radeon cards / drivers do not properly get the color buffer as RGBA.

void vtkClientCompositeManager::SetCompositer vtkCompositer *  c  ) 
 

When the server has more than one process, this object composites the buffers into one. Defaults to vtkCompressCompositer.

virtual vtkCompositer* vtkClientCompositeManager::GetCompositer  )  [virtual]
 

When the server has more than one process, this object composites the buffers into one. Defaults to vtkCompressCompositer.

float vtkClientCompositeManager::GetZBufferValue int  x,
int  y
 

Get the z buffer value at a pixel. GatherZBufferValue is an internal method.

void vtkClientCompositeManager::GatherZBufferValueRMI int  x,
int  y
 

Get the z buffer value at a pixel. GatherZBufferValue is an internal method.

virtual void vtkClientCompositeManager::SetSquirtLevel int   )  [virtual]
 

Turn on and off Squirt compression. Level 0 means no compression.

virtual int vtkClientCompositeManager::GetSquirtLevel  )  [virtual]
 

Turn on and off Squirt compression. Level 0 means no compression.

void vtkClientCompositeManager::SetPDataSize int  x,
int  y
[protected]
 

void vtkClientCompositeManager::ReallocPDataArrays  )  [protected]
 

virtual void vtkClientCompositeManager::SatelliteStartRender  )  [protected, virtual]
 

virtual void vtkClientCompositeManager::SatelliteEndRender  )  [protected, virtual]
 

void vtkClientCompositeManager::PreRenderProcessing  )  [inline, protected]
 

Definition at line 146 of file vtkClientCompositeManager.h.

void vtkClientCompositeManager::PostRenderProcessing  )  [inline, protected]
 

Definition at line 147 of file vtkClientCompositeManager.h.

void vtkClientCompositeManager::MagnifyBuffer vtkDataArray *  localP,
vtkDataArray *  magP,
int  windowSize[2]
[protected]
 

void vtkClientCompositeManager::DoubleBuffer vtkDataArray *  localP,
vtkDataArray *  magP,
int  windowSize[2]
[protected]
 

void vtkClientCompositeManager::ReceiveAndSetColorBuffer  )  [protected]
 

void vtkClientCompositeManager::SquirtCompress vtkUnsignedCharArray *  in,
vtkUnsignedCharArray *  out,
int  compress_level
[protected]
 

void vtkClientCompositeManager::SquirtDecompress vtkUnsignedCharArray *  in,
vtkUnsignedCharArray *  out
[protected]
 

void vtkClientCompositeManager::DeltaEncode vtkUnsignedCharArray *  buf  )  [protected]
 

void vtkClientCompositeManager::DeltaDecode vtkUnsignedCharArray *  buf  )  [protected]
 


Member Data Documentation

vtkSocketController* vtkClientCompositeManager::ClientController [protected]
 

Definition at line 134 of file vtkClientCompositeManager.h.

vtkCompositer* vtkClientCompositeManager::Compositer [protected]
 

Definition at line 135 of file vtkClientCompositeManager.h.

int vtkClientCompositeManager::ClientFlag [protected]
 

Definition at line 137 of file vtkClientCompositeManager.h.

unsigned long vtkClientCompositeManager::StartTag [protected]
 

Definition at line 138 of file vtkClientCompositeManager.h.

vtkImageData* vtkClientCompositeManager::CompositeData [protected]
 

Definition at line 148 of file vtkClientCompositeManager.h.

vtkImageActor* vtkClientCompositeManager::ImageActor [protected]
 

Definition at line 149 of file vtkClientCompositeManager.h.

vtkCamera* vtkClientCompositeManager::SavedCamera [protected]
 

Definition at line 152 of file vtkClientCompositeManager.h.

vtkObject* vtkClientCompositeManager::RenderView [protected]
 

Definition at line 168 of file vtkClientCompositeManager.h.

double vtkClientCompositeManager::InternalReductionFactor [protected]
 

Definition at line 169 of file vtkClientCompositeManager.h.

int vtkClientCompositeManager::PDataSize[2] [protected]
 

Definition at line 171 of file vtkClientCompositeManager.h.

vtkDataArray* vtkClientCompositeManager::PData [protected]
 

Definition at line 172 of file vtkClientCompositeManager.h.

vtkFloatArray* vtkClientCompositeManager::ZData [protected]
 

Definition at line 173 of file vtkClientCompositeManager.h.

vtkDataArray* vtkClientCompositeManager::PData2 [protected]
 

Definition at line 175 of file vtkClientCompositeManager.h.

vtkFloatArray* vtkClientCompositeManager::ZData2 [protected]
 

Definition at line 176 of file vtkClientCompositeManager.h.

int vtkClientCompositeManager::SquirtLevel [protected]
 

Definition at line 178 of file vtkClientCompositeManager.h.

vtkUnsignedCharArray* vtkClientCompositeManager::SquirtArray [protected]
 

Definition at line 179 of file vtkClientCompositeManager.h.

vtkUnsignedCharArray* vtkClientCompositeManager::BaseArray [protected]
 

Definition at line 186 of file vtkClientCompositeManager.h.

int vtkClientCompositeManager::UseRGB [protected]
 

Definition at line 190 of file vtkClientCompositeManager.h.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:36:17 2006 for ParaView by doxygen 1.3.5