Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

vtkKWEDataArrayStreamer Class Reference

#include <vtkKWEDataArrayStreamer.h>

Inheritance diagram for vtkKWEDataArrayStreamer:
Inheritance graph
[legend]
Collaboration diagram for vtkKWEDataArrayStreamer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkKWEDataArrayStreamer, vtkObject)
void PrintSelf (ostream &os, vtkIndent indent)
void Begin ()
bool IsDone ()
void Next ()

virtual void SetNumberOfTuples (vtkIdType)
virtual vtkIdType GetNumberOfTuples ()

virtual void SetMax3DTextureSize (int)
virtual int GetMax3DTextureSize ()

virtual void SetMaxTextureSize (int)
virtual int GetMaxTextureSize ()

virtual void SetMaxTextureMemorySizeInBytes (vtkIdType)
virtual vtkIdType GetMaxTextureMemorySizeInBytes ()

virtual void SetTupleSize (int)
virtual int GetTupleSize ()

virtual void SetMaxNumberOfTuplesPerBlock (vtkIdType)
virtual vtkIdType GetMaxNumberOfTuplesPerBlock ()

virtual vtkIdTypeGetChunkDimensions ()
virtual void GetChunkDimensions (vtkIdType &, vtkIdType &)
virtual void GetChunkDimensions (vtkIdType[2])

virtual vtkIdType GetCursor ()

Static Public Member Functions

static vtkKWEDataArrayStreamerNew ()

Protected Member Functions

 vtkKWEDataArrayStreamer ()
 ~vtkKWEDataArrayStreamer ()
void UpdateChunkDimensions ()

Protected Attributes

vtkIdType NumberOfTuples
int Max3DTextureSize
int MaxTextureSize
vtkIdType MaxTextureMemorySizeInBytes
int TupleSize
vtkIdType MaxNumberOfTuplesPerBlock
vtkIdType ChunkDimensions [2]
vtkIdType Cursor
vtkIdType Step
vtkIdType Stage2Cursor
vtkIdType Stage2Step
vtkIdType Stage3Cursor
vtkIdType Stage3Step
vtkIdType Stage2NumberOfRows

Detailed Description

Compute 2D texture image extent to transfer any data array as 2D image chunks to GPU memory. It is also used to transfer back 2D texture chunk as part of a data array.

See also:
Used by the vtkKWEGPUArrayCalculator.

Definition at line 36 of file vtkKWEDataArrayStreamer.h.


Constructor & Destructor Documentation

vtkKWEDataArrayStreamer::vtkKWEDataArrayStreamer (  )  [protected]
vtkKWEDataArrayStreamer::~vtkKWEDataArrayStreamer (  )  [protected]

Member Function Documentation

static vtkKWEDataArrayStreamer* vtkKWEDataArrayStreamer::New (  )  [static]

Reimplemented from vtkObject.

vtkKWEDataArrayStreamer::vtkTypeRevisionMacro ( vtkKWEDataArrayStreamer  ,
vtkObject   
)
void vtkKWEDataArrayStreamer::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkObject.

virtual void vtkKWEDataArrayStreamer::SetNumberOfTuples ( vtkIdType   )  [virtual]

Data array to split. Initial value is 0.

virtual vtkIdType vtkKWEDataArrayStreamer::GetNumberOfTuples (  )  [virtual]

Data array to split. Initial value is 0.

virtual void vtkKWEDataArrayStreamer::SetMax3DTextureSize ( int   )  [virtual]

Maximum size of any dimension of a 3D texture. Initial value is 16, the minimal value of the OpenGL specifications.

virtual int vtkKWEDataArrayStreamer::GetMax3DTextureSize (  )  [virtual]

Maximum size of any dimension of a 3D texture. Initial value is 16, the minimal value of the OpenGL specifications.

virtual void vtkKWEDataArrayStreamer::SetMaxTextureSize ( int   )  [virtual]

Maximum size of any dimension of a 1D or 2D texture. Initial value is 64, the minimal value of the OpenGL specifications.

virtual int vtkKWEDataArrayStreamer::GetMaxTextureSize (  )  [virtual]

Maximum size of any dimension of a 1D or 2D texture. Initial value is 64, the minimal value of the OpenGL specifications.

virtual void vtkKWEDataArrayStreamer::SetMaxTextureMemorySizeInBytes ( vtkIdType   )  [virtual]

User-defined maximum size in bytes of a texture in GPU memory. Initial value is 134217728 bytes (128*2^20=128Mb). In a 32-bit build, this ivar can encode up to 4GB. A null value means no limit.

virtual vtkIdType vtkKWEDataArrayStreamer::GetMaxTextureMemorySizeInBytes (  )  [virtual]

User-defined maximum size in bytes of a texture in GPU memory. Initial value is 134217728 bytes (128*2^20=128Mb). In a 32-bit build, this ivar can encode up to 4GB. A null value means no limit.

virtual void vtkKWEDataArrayStreamer::SetTupleSize ( int   )  [virtual]

Size of a tuple in bytes (number of components*size of type). If the streamer is used by several dataarray at the same time, the user should set its value to the maximum tuple size. Initial value is 1.

virtual int vtkKWEDataArrayStreamer::GetTupleSize (  )  [virtual]

Size of a tuple in bytes (number of components*size of type). If the streamer is used by several dataarray at the same time, the user should set its value to the maximum tuple size. Initial value is 1.

virtual void vtkKWEDataArrayStreamer::SetMaxNumberOfTuplesPerBlock ( vtkIdType   )  [virtual]

User-defined maximum number of tuples per block. If 0, this value is ignored. Initial value is 0.

virtual vtkIdType vtkKWEDataArrayStreamer::GetMaxNumberOfTuplesPerBlock (  )  [virtual]

User-defined maximum number of tuples per block. If 0, this value is ignored. Initial value is 0.

void vtkKWEDataArrayStreamer::Begin (  ) 

Place the cursor on the first chunk, if any.

bool vtkKWEDataArrayStreamer::IsDone (  ) 

Is the iteration over?

void vtkKWEDataArrayStreamer::Next (  ) 

Go the next chunk, if any.

Precondition:
not_done: !IsDone()
virtual vtkIdType* vtkKWEDataArrayStreamer::GetChunkDimensions (  )  [virtual]

Number of colums and number of rows of the current image chunk.

Precondition:
not_done: !IsDone()
virtual void vtkKWEDataArrayStreamer::GetChunkDimensions ( vtkIdType ,
vtkIdType  
) [virtual]

Number of colums and number of rows of the current image chunk.

Precondition:
not_done: !IsDone()
virtual void vtkKWEDataArrayStreamer::GetChunkDimensions ( vtkIdType  [2]  )  [virtual]

Number of colums and number of rows of the current image chunk.

Precondition:
not_done: !IsDone()
virtual vtkIdType vtkKWEDataArrayStreamer::GetCursor (  )  [virtual]

Current starting tuple position in the data array.

Precondition:
not_done: !IsDone()
void vtkKWEDataArrayStreamer::UpdateChunkDimensions (  )  [protected]

Member Data Documentation

Definition at line 114 of file vtkKWEDataArrayStreamer.h.

Definition at line 116 of file vtkKWEDataArrayStreamer.h.

Definition at line 117 of file vtkKWEDataArrayStreamer.h.

Definition at line 118 of file vtkKWEDataArrayStreamer.h.

Definition at line 119 of file vtkKWEDataArrayStreamer.h.

Definition at line 120 of file vtkKWEDataArrayStreamer.h.

Definition at line 122 of file vtkKWEDataArrayStreamer.h.

Definition at line 123 of file vtkKWEDataArrayStreamer.h.

Definition at line 124 of file vtkKWEDataArrayStreamer.h.

Definition at line 126 of file vtkKWEDataArrayStreamer.h.

Definition at line 127 of file vtkKWEDataArrayStreamer.h.

Definition at line 128 of file vtkKWEDataArrayStreamer.h.

Definition at line 129 of file vtkKWEDataArrayStreamer.h.

Definition at line 130 of file vtkKWEDataArrayStreamer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines