VTK  9.2.6
vtkPLYReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPLYReader.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 =========================================================================*/
44 #ifndef vtkPLYReader_h
45 #define vtkPLYReader_h
46 
48 #include "vtkIOPLYModule.h" // For export macro
49 
50 class vtkStringArray;
51 
52 class VTKIOPLY_EXPORT vtkPLYReader : public vtkAbstractPolyDataReader
53 {
54 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
61  static vtkPLYReader* New();
62 
66  static int CanReadFile(VTK_FILEPATH const char* filename);
67 
68  vtkGetObjectMacro(Comments, vtkStringArray);
69 
74  vtkGetMacro(FaceTextureTolerance, float);
75  vtkSetMacro(FaceTextureTolerance, float);
76 
78 
86  vtkSetMacro(ReadFromInputString, bool);
87  vtkGetMacro(ReadFromInputString, bool);
88  vtkBooleanMacro(ReadFromInputString, bool);
89  void SetInputString(const std::string& s) { this->InputString = s; }
91 
98  vtkGetMacro(DuplicatePointsForFaceTexture, bool);
99  vtkSetMacro(DuplicatePointsForFaceTexture, bool);
100 
101 protected:
102  vtkPLYReader();
103  ~vtkPLYReader() override;
104 
106  // Whether this object is reading from a string or a file.
107  // Default is 0: read from file.
109  // The input string.
111 
113 
114 private:
115  vtkPLYReader(const vtkPLYReader&) = delete;
116  void operator=(const vtkPLYReader&) = delete;
117 
118  float FaceTextureTolerance;
119  bool DuplicatePointsForFaceTexture;
120 };
121 
122 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkStringArray * Comments
Definition: vtkPLYReader.h:105
a vtkAbstractArray subclass for strings
bool ReadFromInputString
Definition: vtkPLYReader.h:108
void SetInputString(const std::string &s)
Enable reading from an InputString instead of the default, a file.
Definition: vtkPLYReader.h:89
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that read models from a file.
a simple class to control print indentation
Definition: vtkIndent.h:39
#define VTK_FILEPATH
read Stanford University PLY polygonal file format
Definition: vtkPLYReader.h:52
std::string InputString
Definition: vtkPLYReader.h:110
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.