VTK
vtkOverlappingAMR.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOverlappingAMR.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 =========================================================================*/
33 #ifndef vtkOverlappingAmr_h
34 #define vtkOverlappingAmr_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkUniformGridAMR.h"
38 
39 class vtkAMRBox;
41 class vtkUniformGrid;
42 class vtkAMRInformation;
44 
46 {
47 public:
49 
51  virtual int GetDataObjectType() {return VTK_OVERLAPPING_AMR;}
52 
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
58 
60 
61  void SetOrigin(const double*);
62  double* GetOrigin();
64 
66 
67  void SetSpacing(unsigned int level, const double spacing[3]);
68  void GetSpacing(unsigned int level, double spacing[3]);
70 
72 
73  void SetAMRBox(unsigned int level, unsigned int id, const vtkAMRBox& box) ;
74  const vtkAMRBox& GetAMRBox(unsigned int level, unsigned int id) ;
76 
78  void GetBounds(unsigned int level, unsigned int id, double* bb);
79 
80 
82  void GetOrigin(unsigned int level, unsigned int id, double origin[3]);
83 
85 
86  //BTX
88 
90  { return vtkOverlappingAMR::SafeDownCast(Superclass::GetData(info)); }
92  { return vtkOverlappingAMR::SafeDownCast(Superclass::GetData(v, i)); }
93  //ETX
95 
102  void SetRefinementRatio(unsigned int level, int refRatio);
103 
105  int GetRefinementRatio(unsigned int level);
106 
108 
110  void SetAMRBlockSourceIndex(unsigned int level, unsigned int id, int sourceId);
111  int GetAMRBlockSourceIndex(unsigned int level, unsigned int id);
113 
117 
120 
124 
128  unsigned int *GetParents(unsigned int level, unsigned int index, unsigned int& numParents);
129 
133  unsigned int *GetChildren(unsigned int level, unsigned int index, unsigned int& numChildren);
134 
136  void PrintParentChildInfo(unsigned int level, unsigned int index);
137 
138  //Unhide superclass method
139  void GetBounds(double b[6]) { Superclass::GetBounds(b);}
140 
142  bool FindGrid(double q[3], unsigned int& level, unsigned int& gridId);
143 
145 
146  vtkAMRInformation* GetAMRInfo(){ return Superclass::GetAMRInfo();}
147  virtual void SetAMRInfo(vtkAMRInformation* info){ return Superclass::SetAMRInfo(info);}
149 
151 
154  void Audit();
155  protected:
159 
160 private:
161  vtkOverlappingAMR(const vtkOverlappingAMR&); // Not implemented.
162  void operator=(const vtkOverlappingAMR&); // Not implemented.
163 };
164 
165 #endif
vtkAMRBox
Encloses a rectangular region of voxel like cells.
Definition: vtkAMRBox.h:39
vtkInformationIdTypeKey
Key for vtkIdType values in vtkInformation.
Definition: vtkInformationIdTypeKey.h:31
vtkOverlappingAMR::GetParents
unsigned int * GetParents(unsigned int level, unsigned int index, unsigned int &numParents)
vtkgl::b
GLboolean GLboolean GLboolean b
Definition: vtkgl.h:12312
vtkOverlappingAMR::NUMBER_OF_BLANKED_POINTS
static vtkInformationIdTypeKey * NUMBER_OF_BLANKED_POINTS()
vtkCommonDataModelModule.h
vtkOverlappingAMR::GenerateParentChildInformation
void GenerateParentChildInformation()
vtkOverlappingAMR::GetRefinementRatio
int GetRefinementRatio(unsigned int level)
vtkOverlappingAMR::FindGrid
bool FindGrid(double q[3], unsigned int &level, unsigned int &gridId)
vtkOverlappingAMR::GetDataObjectType
virtual int GetDataObjectType()
Definition: vtkOverlappingAMR.h:51
vtkAMRInformation
Meta data that describes the structure of an AMR data set.
Definition: vtkAMRInformation.h:51
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkOverlappingAMR::Audit
void Audit()
vtkUniformGrid
image data with blanking
Definition: vtkUniformGrid.h:40
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::v
const GLdouble * v
Definition: vtkgl.h:11595
vtkUniformGridAMR.h
vtkOverlappingAMR::GetAMRInfo
vtkAMRInformation * GetAMRInfo()
Definition: vtkOverlappingAMR.h:146
vtkOverlappingAMR::SetAMRBlockSourceIndex
void SetAMRBlockSourceIndex(unsigned int level, unsigned int id, int sourceId)
vtkOverlappingAMR::GetOrigin
void GetOrigin(unsigned int level, unsigned int id, double origin[3])
vtkOverlappingAMR::SafeDownCast
static vtkOverlappingAMR * SafeDownCast(vtkObjectBase *o)
vtkOverlappingAMR::GetAMRBlockSourceIndex
int GetAMRBlockSourceIndex(unsigned int level, unsigned int id)
vtkCompositeDataIterator
superclass for composite data iterators
Definition: vtkCompositeDataIterator.h:41
vtkOverlappingAMR::GetAMRBox
const vtkAMRBox & GetAMRBox(unsigned int level, unsigned int id)
vtkOverlappingAMR::GetOrigin
double * GetOrigin()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOverlappingAMR::GetChildren
unsigned int * GetChildren(unsigned int level, unsigned int index, unsigned int &numChildren)
vtkOverlappingAMR::SetAMRBox
void SetAMRBox(unsigned int level, unsigned int id, const vtkAMRBox &box)
vtkOverlappingAMR::NewIterator
virtual vtkCompositeDataIterator * NewIterator()
vtkOverlappingAMR::New
static vtkOverlappingAMR * New()
vtkOverlappingAMR::GetData
static vtkOverlappingAMR * GetData(vtkInformation *info)
Definition: vtkOverlappingAMR.h:89
vtkgl::level
GLint level
Definition: vtkgl.h:11316
vtkOverlappingAMR
hierarchical dataset of vtkUniformGrids
Definition: vtkOverlappingAMR.h:46
vtkX3D::spacing
@ spacing
Definition: vtkX3D.h:481
vtkOverlappingAMR::GetBounds
void GetBounds(unsigned int level, unsigned int id, double *bb)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkOverlappingAMR::PrintParentChildInfo
void PrintParentChildInfo(unsigned int level, unsigned int index)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
VTK_OVERLAPPING_AMR
#define VTK_OVERLAPPING_AMR
Definition: vtkType.h:97
vtkOverlappingAMR::SetSpacing
void SetSpacing(unsigned int level, const double spacing[3])
vtkOverlappingAMR::GetBounds
void GetBounds(double b[6])
Definition: vtkOverlappingAMR.h:139
vtkOverlappingAMR::HasChildrenInformation
bool HasChildrenInformation()
vtkOverlappingAMR::GetSpacing
void GetSpacing(unsigned int level, double spacing[3])
vtkUniformGridAMR
Definition: vtkUniformGridAMR.h:34
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkOverlappingAMR::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkOverlappingAMR::GetRefinementRatio
int GetRefinementRatio(vtkCompositeDataIterator *iter)
vtkOverlappingAMR::vtkOverlappingAMR
vtkOverlappingAMR()
vtkOverlappingAMR::GetData
static vtkOverlappingAMR * GetData(vtkInformationVector *v, int i=0)
Definition: vtkOverlappingAMR.h:91
q
VTKWRAPPINGJAVA_EXPORT jlong q(JNIEnv *env, jobject obj)
vtkOverlappingAMR::~vtkOverlappingAMR
virtual ~vtkOverlappingAMR()
vtkOverlappingAMR::SetAMRInfo
virtual void SetAMRInfo(vtkAMRInformation *info)
Definition: vtkOverlappingAMR.h:147
vtkOverlappingAMR::SetOrigin
void SetOrigin(const double *)
vtkOverlappingAMR::SetRefinementRatio
void SetRefinementRatio(unsigned int level, int refRatio)