VTK  9.2.5
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 =========================================================================*/
153 #ifndef vtkPLYReader_h
154 #define vtkPLYReader_h
155 
157 #include "vtkIOPLYModule.h" // For export macro
158 
159 class vtkStringArray;
160 
161 class VTKIOPLY_EXPORT vtkPLYReader : public vtkAbstractPolyDataReader
162 {
163 public:
165  void PrintSelf(ostream& os, vtkIndent indent) override;
166 
170  static vtkPLYReader* New();
171 
175  static int CanReadFile(VTK_FILEPATH const char* filename);
176 
177  vtkGetObjectMacro(Comments, vtkStringArray);
178 
183  vtkGetMacro(FaceTextureTolerance, float);
184  vtkSetMacro(FaceTextureTolerance, float);
185 
187 
195  vtkSetMacro(ReadFromInputString, bool);
196  vtkGetMacro(ReadFromInputString, bool);
197  vtkBooleanMacro(ReadFromInputString, bool);
198  void SetInputString(const std::string& s) { this->InputString = s; }
200 
207  vtkGetMacro(DuplicatePointsForFaceTexture, bool);
208  vtkSetMacro(DuplicatePointsForFaceTexture, bool);
209 
210 protected:
212  ~vtkPLYReader() override;
213 
215  // Whether this object is reading from a string or a file.
216  // Default is 0: read from file.
218  // The input string.
220 
222 
223 private:
224  vtkPLYReader(const vtkPLYReader&) = delete;
225  void operator=(const vtkPLYReader&) = delete;
226 
227  float FaceTextureTolerance;
228  bool DuplicatePointsForFaceTexture;
229 };
230 
231 #endif
Superclass for algorithms that read models from a file.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read Stanford University PLY polygonal file format
Definition: vtkPLYReader.h:162
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkPLYReader() override
std::string InputString
Definition: vtkPLYReader.h:219
vtkStringArray * Comments
Definition: vtkPLYReader.h:214
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkPLYReader * New()
Construct object with merging set to true.
void SetInputString(const std::string &s)
Enable reading from an InputString instead of the default, a file.
Definition: vtkPLYReader.h:198
static int CanReadFile(VTK_FILEPATH const char *filename)
A simple, non-exhaustive check to see if a file is a valid ply file.
bool ReadFromInputString
Definition: vtkPLYReader.h:217
a vtkAbstractArray subclass for strings
@ string
Definition: vtkX3D.h:496
#define VTK_FILEPATH