this is a helper class that handles viewport computations when rendering for tile-displays. More...
#include <vtkTilesHelper.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
bool | GetTiledSizeAndOrigin (int rank, vtkVector2i &size, vtkVector2i &lowerLeft) const |
For the specified rank , returns the tile size and origin of the tile rendered by the rank in display coordinates. More... | |
bool | GetTiledSizeAndOrigin (int rank, vtkVector2i &size, vtkVector2i &lowerLeft, vtkVector4d viewport) const |
A GetTiledSizeAndOrigin overload that takes in a viewport expressed as (xmin, ymin, xmax, ymax) where each coordinate is in the range [0, 1.0] (same as vtkViewport::SetViewport). More... | |
bool | GetTileViewport (int rank, vtkVector4d &tile_viewport) const |
Provides the viewport for the tile displayed on the rank, if any. More... | |
bool | GetTileIndex (int rank, int *tileX, int *tileY) const |
Given the rank, returns the tile location. More... | |
bool | GetTileEnabled (int rank) const |
Returns true if current rank will render a tile. More... | |
virtual void | SetTileDimensions (int, int) |
Set the tile dimensions. More... | |
void | SetTileDimensions (int [2]) |
Set the tile dimensions. More... | |
virtual int * | GetTileDimensions () |
Set the tile dimensions. More... | |
virtual void | GetTileDimensions (int &, int &) |
Set the tile dimensions. More... | |
virtual void | GetTileDimensions (int [2]) |
Set the tile dimensions. More... | |
virtual void | SetTileMullions (int, int) |
Set the tile mullions in pixels. More... | |
void | SetTileMullions (int [2]) |
Set the tile mullions in pixels. More... | |
virtual int * | GetTileMullions () |
Set the tile mullions in pixels. More... | |
virtual void | GetTileMullions (int &, int &) |
Set the tile mullions in pixels. More... | |
virtual void | GetTileMullions (int [2]) |
Set the tile mullions in pixels. More... | |
virtual void | SetTileWindowSize (int, int) |
Set the tile size i.e. More... | |
void | SetTileWindowSize (int [2]) |
Set the tile size i.e. More... | |
virtual int * | GetTileWindowSize () |
Set the tile size i.e. More... | |
virtual void | GetTileWindowSize (int &, int &) |
Set the tile size i.e. More... | |
virtual void | GetTileWindowSize (int [2]) |
Set the tile size i.e. More... | |
![]() | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkTilesHelper * | New () |
static int | IsTypeOf (const char *type) |
static vtkTilesHelper * | SafeDownCast (vtkObject *o) |
![]() | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkTilesHelper () | |
~vtkTilesHelper () override | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
int | TileDimensions [2] |
int | TileMullions [2] |
int | TileWindowSize [2] |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
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 19 of file vtkTilesHelper.h.
typedef vtkObject vtkTilesHelper::Superclass |
Definition at line 23 of file vtkTilesHelper.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkObjectBase.
|
static |
|
overridevirtual |
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 |
Set the tile dimensions.
Default is (1, 1).
Set the tile dimensions.
Default is (1, 1).
|
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 |
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 |
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 single tile. An assumption, in ParaView is that all tiles will be of the same size.
void vtkTilesHelper::SetTileWindowSize | ( | int | [2] | ) |
Set the tile size i.e.
the size of the render window for a single tile. An assumption, in ParaView is that all tiles will be of the same size.
|
virtual |
Set the tile size i.e.
the size of the render window for a single tile. An assumption, in ParaView is that all tiles will be of the same size.
Set the tile size i.e.
the size of the render window for a single tile. An assumption, in ParaView is that all tiles will be of the same size.
|
virtual |
Set the tile size i.e.
the size of the render window for a single tile. An assumption, in ParaView is that all tiles will be of the same size.
bool vtkTilesHelper::GetTiledSizeAndOrigin | ( | int | rank, |
vtkVector2i & | size, | ||
vtkVector2i & | lowerLeft | ||
) | const |
For the specified rank
, returns the tile size and origin of the tile rendered by the rank in display coordinates.
If the rank is not expected to render an tile then returns false and size
and lowerLeft
will be left unchanged. Otherwise, returns true after updating size
and lowerLeft
appropriately.
bool vtkTilesHelper::GetTiledSizeAndOrigin | ( | int | rank, |
vtkVector2i & | size, | ||
vtkVector2i & | lowerLeft, | ||
vtkVector4d | viewport | ||
) | const |
A GetTiledSizeAndOrigin
overload that takes in a viewport
expressed as (xmin, ymin, xmax, ymax)
where each coordinate is in the range [0, 1.0]
(same as vtkViewport::SetViewport).
The size and origin returned are limited to the specified viewport.
bool vtkTilesHelper::GetTileViewport | ( | int | rank, |
vtkVector4d & | tile_viewport | ||
) | const |
Provides the viewport for the tile displayed on the rank, if any.
Returns false if the rank is not expected to display a tile. Otherwise returns true after updating tile_viewport
to the result.
Given the rank, returns the tile location.
Returns false if the rank is not expected to render any tile.
|
inline |
Returns true if current rank will render a tile.
Definition at line 86 of file vtkTilesHelper.h.
|
protected |
Definition at line 96 of file vtkTilesHelper.h.
|
protected |
Definition at line 97 of file vtkTilesHelper.h.
|
protected |
Definition at line 98 of file vtkTilesHelper.h.