ParaView
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkTilesHelper Class Reference

this is a helper class that handles viewport computations when rendering for tile-displays. This assumes that all tiles have the same pixel-size. More...

#include <vtkTilesHelper.h>

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

List of all members.

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void GetTileIndex (int rank, int *tileX, int *tileY)
virtual void SetTileDimensions (int, int)
void SetTileDimensions (int[2])
virtual intGetTileDimensions ()
virtual void GetTileDimensions (int &, int &)
virtual void GetTileDimensions (int[2])
virtual void SetTileMullions (int, int)
void SetTileMullions (int[2])
virtual intGetTileMullions ()
virtual void GetTileMullions (int &, int &)
virtual void GetTileMullions (int[2])
virtual void SetTileWindowSize (int, int)
void SetTileWindowSize (int[2])
virtual intGetTileWindowSize ()
virtual void GetTileWindowSize (int &, int &)
virtual void GetTileWindowSize (int[2])
bool GetTileViewport (const double *viewport, int rank, int out_tile_viewport[4])
bool GetNormalizedTileViewport (const double *viewport, int rank, double out_tile_viewport[4])
bool GetPhysicalViewport (const double *global_viewport, int rank, double out_phyiscal_viewport[4])

Static Public Member Functions

static vtkTilesHelperNew ()
static int IsTypeOf (const char *type)
static vtkTilesHelperSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkTilesHelper ()
 ~vtkTilesHelper ()

Protected Attributes

int TileDimensions [2]
int TileMullions [2]
int TileWindowSize [2]

Detailed Description

this is a helper class that handles viewport computations when rendering for tile-displays. This assumes that all tiles have the same pixel-size.

Definition at line 28 of file vtkTilesHelper.h.


Constructor & Destructor Documentation

vtkTilesHelper::vtkTilesHelper ( ) [protected]
vtkTilesHelper::~vtkTilesHelper ( ) [protected]

Member Function Documentation

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

Reimplemented from vtkObject.

virtual const char* vtkTilesHelper::GetClassName ( ) [virtual]

Reimplemented from vtkObject.

static int vtkTilesHelper::IsTypeOf ( const char *  type) [static]

Reimplemented from vtkObject.

virtual int vtkTilesHelper::IsA ( const char *  type) [virtual]

Reimplemented from vtkObject.

static vtkTilesHelper* vtkTilesHelper::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkObject.

void vtkTilesHelper::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkObject.

virtual void vtkTilesHelper::SetTileDimensions ( int  ,
int   
) [virtual]

Set the tile dimensions. Default is (1, 1).

void vtkTilesHelper::SetTileDimensions ( int  [2])

Set the tile dimensions. Default is (1, 1).

virtual int* vtkTilesHelper::GetTileDimensions ( ) [virtual]

Set the tile dimensions. Default is (1, 1).

virtual void vtkTilesHelper::GetTileDimensions ( int ,
int  
) [virtual]

Set the tile dimensions. Default is (1, 1).

virtual void vtkTilesHelper::GetTileDimensions ( int  [2]) [virtual]

Set the tile dimensions. Default is (1, 1).

virtual void vtkTilesHelper::SetTileMullions ( int  ,
int   
) [virtual]

Set the tile mullions in pixels. Use negative numbers to indicate overlap between tiles.

void vtkTilesHelper::SetTileMullions ( int  [2])

Set the tile mullions in pixels. Use negative numbers to indicate overlap between tiles.

virtual int* vtkTilesHelper::GetTileMullions ( ) [virtual]

Set the tile mullions in pixels. Use negative numbers to indicate overlap between tiles.

virtual void vtkTilesHelper::GetTileMullions ( int ,
int  
) [virtual]

Set the tile mullions in pixels. Use negative numbers to indicate overlap between tiles.

virtual void vtkTilesHelper::GetTileMullions ( int  [2]) [virtual]

Set the tile mullions in pixels. Use negative numbers to indicate overlap between tiles.

virtual void vtkTilesHelper::SetTileWindowSize ( int  ,
int   
) [virtual]

Set the tile size i.e. the size of the render window for a tile. We assumes that all tiles have the same size (since that's a requirement for IceT).

void vtkTilesHelper::SetTileWindowSize ( int  [2])

Set the tile size i.e. the size of the render window for a tile. We assumes that all tiles have the same size (since that's a requirement for IceT).

virtual int* vtkTilesHelper::GetTileWindowSize ( ) [virtual]

Set the tile size i.e. the size of the render window for a tile. We assumes that all tiles have the same size (since that's a requirement for IceT).

virtual void vtkTilesHelper::GetTileWindowSize ( int ,
int  
) [virtual]

Set the tile size i.e. the size of the render window for a tile. We assumes that all tiles have the same size (since that's a requirement for IceT).

virtual void vtkTilesHelper::GetTileWindowSize ( int  [2]) [virtual]

Set the tile size i.e. the size of the render window for a tile. We assumes that all tiles have the same size (since that's a requirement for IceT).

bool vtkTilesHelper::GetTileViewport ( const double viewport,
int  rank,
int  out_tile_viewport[4] 
)

Returns (x-origin, y-origin, x-max, y-max) in pixels for a tile with given rank. viewport is in normalized display coordinates i.e. in range [0, 1] indicating the viewport covered by the current renderer on the whole i.e. treating all tiles as one large display if TileDimensions > (1, 1). Returns false to indicate the result hasn't been computed.

bool vtkTilesHelper::GetNormalizedTileViewport ( const double viewport,
int  rank,
double  out_tile_viewport[4] 
)

Same as GetTileViewport() except that the returns values are in normalized-display coordinates instead of display coordinates. Returns false to indicate the result hasn't been computed.

bool vtkTilesHelper::GetPhysicalViewport ( const double global_viewport,
int  rank,
double  out_phyiscal_viewport[4] 
)

Given a global-viewport for a renderer, returns the physical viewport on the rank indicated. Returns false to indicate the result hasn't been computed.

void vtkTilesHelper::GetTileIndex ( int  rank,
int tileX,
int tileY 
)

Given the rank, returns the tile location.


Member Data Documentation

Definition at line 91 of file vtkTilesHelper.h.

Definition at line 92 of file vtkTilesHelper.h.

Definition at line 93 of file vtkTilesHelper.h.


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