|
ParaView
|
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>


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 int * | GetTileDimensions () |
| virtual void | GetTileDimensions (int &, int &) |
| virtual void | GetTileDimensions (int[2]) |
| virtual void | SetTileMullions (int, int) |
| void | SetTileMullions (int[2]) |
| virtual int * | GetTileMullions () |
| virtual void | GetTileMullions (int &, int &) |
| virtual void | GetTileMullions (int[2]) |
| virtual void | SetTileWindowSize (int, int) |
| void | SetTileWindowSize (int[2]) |
| virtual int * | GetTileWindowSize () |
| 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 vtkTilesHelper * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkTilesHelper * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
| vtkTilesHelper () | |
| ~vtkTilesHelper () | |
Protected Attributes | |
| int | TileDimensions [2] |
| int | TileMullions [2] |
| int | TileWindowSize [2] |
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.
| vtkTilesHelper::vtkTilesHelper | ( | ) | [protected] |
| vtkTilesHelper::~vtkTilesHelper | ( | ) | [protected] |
| static vtkTilesHelper* vtkTilesHelper::New | ( | ) | [static] |
Reimplemented from vtkObject.
| virtual const char* vtkTilesHelper::GetClassName | ( | ) | [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.
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).
Set the tile dimensions. Default is (1, 1).
| virtual void vtkTilesHelper::GetTileDimensions | ( | int | [2] | ) | [virtual] |
Set the tile dimensions. Default is (1, 1).
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.
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.
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).
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.
Given the rank, returns the tile location.
int vtkTilesHelper::TileDimensions[2] [protected] |
Definition at line 91 of file vtkTilesHelper.h.
int vtkTilesHelper::TileMullions[2] [protected] |
Definition at line 92 of file vtkTilesHelper.h.
int vtkTilesHelper::TileWindowSize[2] [protected] |
Definition at line 93 of file vtkTilesHelper.h.
1.7.5.1