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

vtkHierarchicalBoxDataSet.h

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