vtkResampledAMRImageSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
22 #ifndef vtkResampledAMRImageSource_h
23 #define vtkResampledAMRImageSource_h
24 
25 #include "vtkPVVTKExtensionsFiltersRenderingModule.h" // needed for export macro
26 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
27 #include "vtkTrivialProducer.h"
28 
29 class vtkAMRBox;
30 class vtkImageData;
31 class vtkIntArray;
32 class vtkOverlappingAMR;
33 class vtkPointData;
34 
36  : public vtkTrivialProducer
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetVector3Macro(MaxDimensions, int);
48  vtkGetVector3Macro(MaxDimensions, int);
50 
52 
58  vtkSetVector6Macro(SpatialBounds, double);
59  vtkGetVector6Macro(SpatialBounds, double);
61 
66  void Reset();
67 
72  void UpdateResampledVolume(vtkOverlappingAMR*);
73 
78  bool NeedsInitialization() const { return (this->MTime > this->InitializationTime); }
79 
80 protected:
82  ~vtkResampledAMRImageSource() override;
83 
84  bool Initialize(vtkOverlappingAMR* amr);
85  bool UpdateResampledVolume(
86  const unsigned int& level, const unsigned& index, const vtkAMRBox& box, vtkImageData* data);
87 
88  int MaxDimensions[3];
89  double SpatialBounds[6];
90 
93 
95 
96 private:
98  void operator=(const vtkResampledAMRImageSource&) = delete;
99 
100  vtkTimeStamp InitializationTime;
101 };
102 
103 #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 &)