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

vtkPVCompositeUtilities Class Reference

Compression and composite buffers. More...

#include <vtkPVCompositeUtilities.h>

List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkPVCompositeUtilities, vtkObject)
void PrintSelf (ostream &os, vtkIndent indent)
vtkPVCompositeBufferNewCompositeBuffer (int numPixels)
unsigned long GetTotalMemoryUsage ()
vtkFloatArray * NewFloatArray (int numTuples, int numComponents)
vtkUnsignedCharArray * NewUnsignedCharArray (int numTuples, int numComponents)
vtkPVCompositeBufferNewCompositeBuffer (vtkUnsignedCharArray *pData, vtkFloatArray *zData)
vtkPVCompositeBufferReceiveNewBuffer (vtkMultiProcessController *controller, int otherProc, int tag)
virtual void SetMaximumMemoryUsage (unsigned long)
virtual unsigned long GetMaximumMemoryUsage ()

Static Public Member Functions

vtkPVCompositeUtilitiesNew ()
int GetCompressedLength (vtkFloatArray *zIn)
void Uncompress (vtkPVCompositeBuffer *inBuf, vtkUnsignedCharArray *pOut)
void CompositeImagePair (vtkPVCompositeBuffer *inBuf1, vtkPVCompositeBuffer *inBuf2, vtkPVCompositeBuffer *outBuf)
void MagnifyBuffer (vtkDataArray *in, vtkDataArray *out, int inWinSize[2], int factor)
void SendBuffer (vtkMultiProcessController *controller, vtkPVCompositeBuffer *buf, int otherProc, int tag)
void Compress (vtkFloatArray *zIn, vtkUnsignedCharArray *pIn, vtkPVCompositeBuffer *outBuf)
int GetCompositedLength (vtkPVCompositeBuffer *b1, vtkPVCompositeBuffer *b2)

Protected Member Functions

 vtkPVCompositeUtilities ()
 ~vtkPVCompositeUtilities ()
int RemoveOldestUnused (vtkCollection *arrayCollection)

Protected Attributes

vtkCollection * FloatArrayCollection
vtkCollection * UnsignedCharArrayCollection
unsigned long MaximumMemoryUsage
unsigned long FloatMemoryUsage
unsigned long UnsignedCharMemoryUsage


Detailed Description

Compression and composite buffers.

This is going to handle buffer management, compressing buffers and compositing buffer pairs. ......

See also:
vtkPVCompositeBuffer

Definition at line 38 of file vtkPVCompositeUtilities.h.


Constructor & Destructor Documentation

vtkPVCompositeUtilities::vtkPVCompositeUtilities  )  [protected]
 

vtkPVCompositeUtilities::~vtkPVCompositeUtilities  )  [protected]
 


Member Function Documentation

vtkPVCompositeUtilities* vtkPVCompositeUtilities::New  )  [static]
 

vtkPVCompositeUtilities::vtkTypeRevisionMacro vtkPVCompositeUtilities  ,
vtkObject 
 

void vtkPVCompositeUtilities::PrintSelf ostream &  os,
vtkIndent  indent
 

vtkFloatArray* vtkPVCompositeUtilities::NewFloatArray int  numTuples,
int  numComponents
 

Get a data array of the specified size and type. This will be used to get z and color buffers.

vtkUnsignedCharArray* vtkPVCompositeUtilities::NewUnsignedCharArray int  numTuples,
int  numComponents
 

Get a data array of the specified size and type. This will be used to get z and color buffers.

vtkPVCompositeBuffer* vtkPVCompositeUtilities::NewCompositeBuffer int  numPixels  ) 
 

This will return a special object to hold a compressed buffer.

vtkPVCompositeBuffer* vtkPVCompositeUtilities::NewCompositeBuffer vtkUnsignedCharArray *  pData,
vtkFloatArray *  zData
 

This is used to create a buffer when not using compositing.

void vtkPVCompositeUtilities::SendBuffer vtkMultiProcessController *  controller,
vtkPVCompositeBuffer buf,
int  otherProc,
int  tag
[static]
 

Send a buffer in one easy call.

vtkPVCompositeBuffer* vtkPVCompositeUtilities::ReceiveNewBuffer vtkMultiProcessController *  controller,
int  otherProc,
int  tag
 

Receive a buffer in one easy call. The caller is responsible for deleting the returned buffer.

void vtkPVCompositeUtilities::Compress vtkFloatArray *  zIn,
vtkUnsignedCharArray *  pIn,
vtkPVCompositeBuffer outBuf
[static]
 

I am granting access to these methods and making them static So I can create a TileDisplayCompositer which uses compression.

int vtkPVCompositeUtilities::GetCompressedLength vtkFloatArray *  zIn  )  [static]
 

This method predicts the length of a compressed buffer. It is used to get the best size array for compressed buffer.

void vtkPVCompositeUtilities::Uncompress vtkPVCompositeBuffer inBuf,
vtkUnsignedCharArray *  pOut
[static]
 

int vtkPVCompositeUtilities::GetCompositedLength vtkPVCompositeBuffer b1,
vtkPVCompositeBuffer b2
[static]
 

This method returns a conservative guess at the output length after two bufferes are composited.

void vtkPVCompositeUtilities::CompositeImagePair vtkPVCompositeBuffer inBuf1,
vtkPVCompositeBuffer inBuf2,
vtkPVCompositeBuffer outBuf
[static]
 

void vtkPVCompositeUtilities::MagnifyBuffer vtkDataArray *  in,
vtkDataArray *  out,
int  inWinSize[2],
int  factor
[static]
 

virtual void vtkPVCompositeUtilities::SetMaximumMemoryUsage unsigned  long  )  [virtual]
 

The maximum amount of memory (kB) that the buffers can use. If this value is set too low, then memory will be reallocated as needed.

virtual unsigned long vtkPVCompositeUtilities::GetMaximumMemoryUsage  )  [virtual]
 

The maximum amount of memory (kB) that the buffers can use. If this value is set too low, then memory will be reallocated as needed.

unsigned long vtkPVCompositeUtilities::GetTotalMemoryUsage  ) 
 

Access for debugging purposes.

int vtkPVCompositeUtilities::RemoveOldestUnused vtkCollection *  arrayCollection  )  [protected]
 


Member Data Documentation

vtkCollection* vtkPVCompositeUtilities::FloatArrayCollection [protected]
 

Definition at line 118 of file vtkPVCompositeUtilities.h.

vtkCollection* vtkPVCompositeUtilities::UnsignedCharArrayCollection [protected]
 

Definition at line 119 of file vtkPVCompositeUtilities.h.

unsigned long vtkPVCompositeUtilities::MaximumMemoryUsage [protected]
 

Definition at line 121 of file vtkPVCompositeUtilities.h.

unsigned long vtkPVCompositeUtilities::FloatMemoryUsage [protected]
 

Definition at line 122 of file vtkPVCompositeUtilities.h.

unsigned long vtkPVCompositeUtilities::UnsignedCharMemoryUsage [protected]
 

Definition at line 123 of file vtkPVCompositeUtilities.h.


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