00001 /*******************************************************************/ 00002 /* XDMF */ 00003 /* eXtensible Data Model and Format */ 00004 /* */ 00005 /* Id : $Id: vtkXdmfUtil.h,v 1.1 2002/12/02 17:13:54 clarke Exp $ */ 00006 /* Date : $Date: 2002/12/02 17:13:54 $ */ 00007 /* Version : $Revision: 1.1 $ */ 00008 /* */ 00009 /* Author: */ 00010 /* Jerry A. Clarke */ 00011 /* clarke@arl.army.mil */ 00012 /* US Army Research Laboratory */ 00013 /* Aberdeen Proving Ground, MD */ 00014 /* */ 00015 /* Copyright @ 2002 US Army Research Laboratory */ 00016 /* All Rights Reserved */ 00017 /* See Copyright.txt or http://www.arl.hpc.mil/ice for details */ 00018 /* */ 00019 /* This software is distributed WITHOUT ANY WARRANTY; without */ 00020 /* even the implied warranty of MERCHANTABILITY or FITNESS */ 00021 /* FOR A PARTICULAR PURPOSE. See the above copyright notice */ 00022 /* for more information. */ 00023 /* */ 00024 /*******************************************************************/ 00025 #ifndef _vtkXdmfUtil_h 00026 #define _vtkXdmfUtil_h 00027 00028 #include <vtkCell.h> 00029 #include <vtkUnstructuredGrid.h> 00030 #include <vtkIntArray.h> 00031 00032 class VTK_EXPORT vtkXdmfUtil : public vtkObject 00033 { 00034 public: 00035 00036 vtkXdmfUtil(); 00037 static vtkXdmfUtil *New(); 00038 vtkTypeMacro(vtkXdmfUtil,vtkObject); 00039 00040 int IsInside( vtkCell *Cell, float X, float Y, float Z ); 00041 vtkIntArray *GetInside( vtkUnstructuredGrid *Cells, vtkPoints *Points ); 00042 vtkIntArray *GetInsideRect( vtkUnstructuredGrid *Cells, int Kdim, float zstart, float dz, int Jdim, float ystart, float dy, int Idim, float xstart, float dx); 00043 00044 00045 }; 00046 #endif /* _vtkXdmfUtil_h */