VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
vtkTableExtentTranslator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTableExtentTranslator.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
25
#ifndef __vtkTableExtentTranslator_h
26
#define __vtkTableExtentTranslator_h
27
28
#include "
vtkExtentTranslator.h
"
29
30
class
VTK_COMMON_EXPORT
vtkTableExtentTranslator
:
public
vtkExtentTranslator
31
{
32
public
:
33
vtkTypeMacro(
vtkTableExtentTranslator
,
vtkExtentTranslator
);
34
void
PrintSelf
(ostream& os,
vtkIndent
indent);
35
36
static
vtkTableExtentTranslator
*
New
();
37
38
39
// Set the number of pieces into which the whole extent will be
40
// split. If this is 1 then the whole extent will be returned. If
41
// this is more than the number of pieces in the table then the
42
// extra pieces will be empty data. If this is more than one but
43
// less than the number of pieces in the table then only this many
44
// pieces will be returned (FIXME).
45
void
SetNumberOfPieces
(
int
pieces);
46
48
49
void
SetNumberOfPiecesInTable(
int
pieces);
50
vtkGetMacro(NumberOfPiecesInTable,
int
);
52
55
int
PieceToExtent
();
56
58
int
PieceToExtentByPoints
();
59
61
62
int
PieceToExtentThreadSafe
(
int
piece,
int
numPieces,
63
int
ghostLevel,
int
*wholeExtent,
64
int
*resultExtent,
int
splitMode,
65
int
byPoints);
67
70
virtual
void
SetExtentForPiece(
int
piece,
int
*
extent
);
71
73
76
virtual
void
GetExtentForPiece(
int
piece,
int
*
extent
);
77
virtual
int
* GetExtentForPiece(
int
piece);
79
81
84
vtkSetMacro(MaximumGhostLevel,
int
);
85
vtkGetMacro(MaximumGhostLevel,
int
);
87
89
91
virtual
void
SetPieceAvailable(
int
piece,
int
available);
92
virtual
int
GetPieceAvailable(
int
piece);
94
95
protected
:
96
vtkTableExtentTranslator
();
97
~
vtkTableExtentTranslator
();
98
99
// Store the extent table in a single array. Every 6 values form an extent.
100
int
*
ExtentTable
;
101
int
NumberOfPiecesInTable
;
102
int
MaximumGhostLevel
;
103
104
// Store a flag for the availability of each piece.
105
int
*
PieceAvailable
;
106
107
private
:
108
vtkTableExtentTranslator
(
const
vtkTableExtentTranslator
&);
// Not implemented.
109
void
operator=(
const
vtkTableExtentTranslator
&);
// Not implemented.
110
};
111
112
#endif
Generated on Wed Nov 21 2012 21:33:40 for VTK by
1.8.2