ParaView
vtkVolumeRepresentationPreprocessor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVolumeRepresentationPreprocessor.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 =========================================================================*/
32 #ifndef vtkVolumeRepresentationPreprocessor_h
33 #define vtkVolumeRepresentationPreprocessor_h
34 
35 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
36 #include "vtkUnstructuredGridAlgorithm.h"
37 
38 class vtkMultiBlockDataSet;
39 class vtkDataSetTriangleFilter;
40 class vtkExtractBlock;
41 
42 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkVolumeRepresentationPreprocessor
43  : public vtkUnstructuredGridAlgorithm
44 {
45 public:
47  vtkTypeMacro(vtkVolumeRepresentationPreprocessor, vtkUnstructuredGridAlgorithm);
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
55  void SetTetrahedraOnly(int);
56  vtkGetMacro(TetrahedraOnly, int);
58 
60 
64  void SetExtractedBlockIndex(int);
65  vtkGetMacro(ExtractedBlockIndex, int);
67 
68 protected:
71 
72  vtkUnstructuredGrid* TriangulateDataSet(vtkDataSet*);
73  vtkDataSet* MultiBlockToDataSet(vtkMultiBlockDataSet*);
74 
75  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
76  virtual int FillInputPortInformation(int port, vtkInformation* info);
77 
80 
81  vtkDataSetTriangleFilter* DataSetTriangleFilter;
82  vtkExtractBlock* ExtractBlockFilter;
83 
84 private:
86  const vtkVolumeRepresentationPreprocessor&) VTK_DELETE_FUNCTION;
87  void operator=(const vtkVolumeRepresentationPreprocessor&) VTK_DELETE_FUNCTION;
88 };
89 
90 #endif
prepare data object for volume rendering