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

vtkUGFacetReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkUGFacetReader.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 =========================================================================*/
00038 #ifndef __vtkUGFacetReader_h
00039 #define __vtkUGFacetReader_h
00040 
00041 #include "vtkPolyDataSource.h"
00042 
00043 class vtkPointLocator;
00044 class vtkShortArray;
00045 
00046 class VTK_IO_EXPORT vtkUGFacetReader : public vtkPolyDataSource 
00047 {
00048 public:
00049   vtkTypeRevisionMacro(vtkUGFacetReader,vtkPolyDataSource);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00054   static vtkUGFacetReader *New();
00055 
00058   unsigned long GetMTime();
00059 
00061 
00062   vtkSetStringMacro(FileName);
00063   vtkGetStringMacro(FileName);
00065 
00067   int GetNumberOfParts();
00068 
00070   short GetPartColorIndex(int partId);
00071 
00073 
00077   vtkSetMacro(PartNumber,int);
00078   vtkGetMacro(PartNumber,int);
00080 
00082 
00083   vtkSetMacro(Merging,int);
00084   vtkGetMacro(Merging,int);
00085   vtkBooleanMacro(Merging,int);
00087   
00089 
00091   void SetLocator(vtkPointLocator *locator);
00092   vtkGetObjectMacro(Locator,vtkPointLocator);
00094 
00096   void CreateDefaultLocator();
00097 
00098 protected:
00099   vtkUGFacetReader();
00100   ~vtkUGFacetReader();
00101 
00102   void Execute();
00103 
00104   char *FileName;
00105   vtkShortArray *PartColors;
00106   int PartNumber;
00107   int Merging;
00108   vtkPointLocator *Locator;
00109 private:
00110   vtkUGFacetReader(const vtkUGFacetReader&);  // Not implemented.
00111   void operator=(const vtkUGFacetReader&);  // Not implemented.
00112 };
00113 
00114 #endif
00115 
00116