VTK
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 
31 {
32 public:
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 
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:
98 
99  // Store the extent table in a single array. Every 6 values form an extent.
103 
104  // Store a flag for the availability of each piece.
106 
107 private:
108  vtkTableExtentTranslator(const vtkTableExtentTranslator&); // Not implemented.
109  void operator=(const vtkTableExtentTranslator&); // Not implemented.
110 };
111 
112 #endif
virtual void SetNumberOfPieces(int)
Generates a structured extent from unstructured.
static vtkExtentTranslator * New()
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_COMMON_EXPORT
virtual int PieceToExtentByPoints()
virtual int PieceToExtent()
Extent translation through lookup table.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int PieceToExtentThreadSafe(int piece, int numPieces, int ghostLevel, int *wholeExtent, int *resultExtent, int splitMode, int byPoints)