/usr/include/paraview/vtkTilesHelper.h is in paraview-dev 5.0.1+dfsg1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkTilesHelper - this is a helper class that handles viewport
// computations when rendering for tile-displays.
// This assumes that all tiles have the same pixel-size.
// .SECTION Description
//
#ifndef vtkTilesHelper_h
#define vtkTilesHelper_h
#include "vtkObject.h"
#include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkTilesHelper : public vtkObject
{
public:
static vtkTilesHelper* New();
vtkTypeMacro(vtkTilesHelper, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set the tile dimensions. Default is (1, 1).
vtkSetVector2Macro(TileDimensions, int);
vtkGetVector2Macro(TileDimensions, int);
// Description:
// Set the tile mullions in pixels. Use negative numbers to indicate overlap
// between tiles.
vtkSetVector2Macro(TileMullions, int);
vtkGetVector2Macro(TileMullions, int);
// Description:
// 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).
vtkSetVector2Macro(TileWindowSize, int);
vtkGetVector2Macro(TileWindowSize, int);
// Description:
// Returns (x-origin, y-origin, x-max, y-max) in pixels for a tile with given
// \c rank. \c 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 GetTileViewport(const double *viewport, int rank,
int out_tile_viewport[4]);
// Description:
// 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 GetNormalizedTileViewport(const double* viewport, int rank,
double out_tile_viewport[4]);
// Description:
// 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.
bool GetPhysicalViewport(const double *global_viewport, int rank,
double out_phyiscal_viewport[4]);
// Description:
// Given the rank, returns the tile location.
void GetTileIndex(int rank, int* tileX, int* tileY);
//BTX
protected:
vtkTilesHelper();
~vtkTilesHelper();
int TileDimensions[2];
int TileMullions[2];
int TileWindowSize[2];
private:
vtkTilesHelper(const vtkTilesHelper&); // Not implemented
void operator=(const vtkTilesHelper&); // Not implemented
//ETX
};
#endif
|