VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/Geometry/vtkUGFacetReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkUGFacetReader.h
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 =========================================================================*/
00023 #ifndef vtkUGFacetReader_h
00024 #define vtkUGFacetReader_h
00025 
00026 #include "vtkIOGeometryModule.h" // For export macro
00027 #include "vtkPolyDataAlgorithm.h"
00028 
00029 class vtkIncrementalPointLocator;
00030 class vtkShortArray;
00031 
00032 class VTKIOGEOMETRY_EXPORT vtkUGFacetReader : public vtkPolyDataAlgorithm
00033 {
00034 public:
00035   vtkTypeMacro(vtkUGFacetReader,vtkPolyDataAlgorithm);
00036   void PrintSelf(ostream& os, vtkIndent indent);
00037 
00040   static vtkUGFacetReader *New();
00041 
00044   unsigned long GetMTime();
00045 
00047 
00048   vtkSetStringMacro(FileName);
00049   vtkGetStringMacro(FileName);
00051 
00053   int GetNumberOfParts();
00054 
00056   short GetPartColorIndex(int partId);
00057 
00059 
00063   vtkSetMacro(PartNumber,int);
00064   vtkGetMacro(PartNumber,int);
00066 
00068 
00069   vtkSetMacro(Merging,int);
00070   vtkGetMacro(Merging,int);
00071   vtkBooleanMacro(Merging,int);
00073 
00075 
00077   void SetLocator(vtkIncrementalPointLocator *locator);
00078   vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
00080 
00082   void CreateDefaultLocator();
00083 
00084 protected:
00085   vtkUGFacetReader();
00086   ~vtkUGFacetReader();
00087 
00088   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00089 
00090   char *FileName;
00091   vtkShortArray *PartColors;
00092   int PartNumber;
00093   int Merging;
00094   vtkIncrementalPointLocator *Locator;
00095 private:
00096   vtkUGFacetReader(const vtkUGFacetReader&);  // Not implemented.
00097   void operator=(const vtkUGFacetReader&);  // Not implemented.
00098 };
00099 
00100 #endif