VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkFacetReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkFacetReader.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
41 #ifndef __vtkFacetReader_h
42 #define __vtkFacetReader_h
43 
44 #include "vtkFiltersHybridModule.h" // For export macro
45 #include "vtkPolyDataAlgorithm.h"
46 
47 class VTKFILTERSHYBRID_EXPORT vtkFacetReader : public vtkPolyDataAlgorithm
48 {
49 public:
50  static vtkFacetReader *New();
51  vtkTypeMacro(vtkFacetReader,vtkPolyDataAlgorithm);
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
56  vtkSetStringMacro(FileName);
57  vtkGetStringMacro(FileName);
59 
60  static int CanReadFile(const char *filename);
61 
62 protected:
64  ~vtkFacetReader();
65 
66  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
67 
68  char *FileName;
69 
70 private:
71  vtkFacetReader(const vtkFacetReader&); // Not implemented.
72  void operator=(const vtkFacetReader&); // Not implemented.
73 };
74 
75 #endif
76 
reads a dataset in Facet format