vtkResampledAMRImageSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
34 #ifndef vtkResampledAMRImageSource_h
35 #define vtkResampledAMRImageSource_h
36 
37 #include "vtkPVVTKExtensionsFiltersRenderingModule.h" // needed for export macro
38 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
39 #include "vtkTrivialProducer.h"
40 
41 class vtkAMRBox;
42 class vtkImageData;
43 class vtkIntArray;
44 class vtkOverlappingAMR;
45 class vtkPointData;
46 
48  : public vtkTrivialProducer
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
59  vtkSetVector3Macro(MaxDimensions, int);
60  vtkGetVector3Macro(MaxDimensions, int);
62 
64 
70  vtkSetVector6Macro(SpatialBounds, double);
71  vtkGetVector6Macro(SpatialBounds, double);
73 
78  void Reset();
79 
84  void UpdateResampledVolume(vtkOverlappingAMR*);
85 
90  bool NeedsInitialization() const { return (this->MTime > this->InitializationTime); }
91 
92 protected:
94  ~vtkResampledAMRImageSource() override;
95 
96  bool Initialize(vtkOverlappingAMR* amr);
97  bool UpdateResampledVolume(
98  const unsigned int& level, const unsigned& index, const vtkAMRBox& box, vtkImageData* data);
99 
100  int MaxDimensions[3];
101  double SpatialBounds[6];
102 
105 
107 
108 private:
110  void operator=(const vtkResampledAMRImageSource&) = delete;
111 
112  vtkTimeStamp InitializationTime;
113 };
114 
115 #endif
data
static vtkTrivialProducer * New()
vtkSmartPointer< vtkImageData > ResampledAMR
level
image data source that resamples an AMR dataset to produce the image data.
vtkSmartPointer< vtkPointData > ResampledAMRPointData
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkSmartPointer< vtkIntArray > DonorLevel
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
bool NeedsInitialization() const
Returns true if the resampler will reinitialize the volume in the next call to UpdateResampledVolume(...
index
void operator=(const vtkObjectBase &)