Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkHierarchicalBoxDataSet.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkHierarchicalBoxDataSet.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00034 #ifndef __vtkHierarchicalBoxDataSet_h 00035 #define __vtkHierarchicalBoxDataSet_h 00036 00037 #include "vtkHierarchicalDataSet.h" 00038 00039 //BTX 00040 struct vtkHierarchicalBoxDataSetInternal; 00041 //ETX 00042 class vtkDataObject; 00043 class vtkUniformGrid; 00044 class vtkAMRBox; 00045 00046 class VTK_COMMON_EXPORT vtkHierarchicalBoxDataSet : public vtkHierarchicalDataSet 00047 { 00048 public: 00049 static vtkHierarchicalBoxDataSet *New(); 00050 00051 vtkTypeRevisionMacro(vtkHierarchicalBoxDataSet,vtkHierarchicalDataSet); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 virtual vtkCompositeDataVisitor* NewVisitor(); 00056 00059 virtual int GetDataObjectType() {return VTK_HIERARCHICAL_BOX_DATA_SET;} 00060 00061 //BTX 00063 00066 void SetDataSet(unsigned int level, 00067 unsigned int id, 00068 vtkAMRBox& box, 00069 vtkUniformGrid* dataSet); 00071 00073 00074 vtkUniformGrid* GetDataSet(unsigned int level, 00075 unsigned int id, 00076 vtkAMRBox& box); 00078 //ETX 00079 vtkDataObject* GetDataSet(unsigned int level, unsigned int id) 00080 { return this->Superclass::GetDataSet(level, id); } 00081 00083 void SetRefinementRatio(unsigned int level, int refRatio); 00084 00086 void GenerateVisibilityArrays(); 00087 00089 00090 virtual void ShallowCopy(vtkDataObject *src); 00091 virtual void DeepCopy(vtkDataObject *src); 00093 00094 protected: 00095 vtkHierarchicalBoxDataSet(); 00096 ~vtkHierarchicalBoxDataSet(); 00097 00098 virtual vtkHDSNode* NewNode(); 00099 00100 vtkHierarchicalBoxDataSetInternal* BoxInternal; 00101 00102 private: 00103 vtkHierarchicalBoxDataSet(const vtkHierarchicalBoxDataSet&); // Not implemented. 00104 void operator=(const vtkHierarchicalBoxDataSet&); // Not implemented. 00105 }; 00106 00107 #endif 00108