VTK  9.1.0
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=========================================================================*/
150#ifndef vtkPLYReader_h
151#define vtkPLYReader_h
152
154#include "vtkIOPLYModule.h" // For export macro
155
156class vtkStringArray;
157
158class VTKIOPLY_EXPORT vtkPLYReader : public vtkAbstractPolyDataReader
159{
160public:
162 void PrintSelf(ostream& os, vtkIndent indent) override;
163
167 static vtkPLYReader* New();
168
172 static int CanReadFile(VTK_FILEPATH const char* filename);
173
174 vtkGetObjectMacro(Comments, vtkStringArray);
175
180 vtkGetMacro(FaceTextureTolerance, float);
181 vtkSetMacro(FaceTextureTolerance, float);
182
184
192 vtkSetMacro(ReadFromInputString, bool);
193 vtkGetMacro(ReadFromInputString, bool);
194 vtkBooleanMacro(ReadFromInputString, bool);
195 void SetInputString(const std::string& s) { this->InputString = s; }
197
204 vtkGetMacro(DuplicatePointsForFaceTexture, bool);
205 vtkSetMacro(DuplicatePointsForFaceTexture, bool);
206
207protected:
209 ~vtkPLYReader() override;
210
212 // Whether this object is reading from a string or a file.
213 // Default is 0: read from file.
215 // The input string.
217
219
220private:
221 vtkPLYReader(const vtkPLYReader&) = delete;
222 void operator=(const vtkPLYReader&) = delete;
223
224 float FaceTextureTolerance;
225 bool DuplicatePointsForFaceTexture;
226};
227
228#endif
Superclass for algorithms that read models from a file.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read Stanford University PLY polygonal file format
Definition: vtkPLYReader.h:159
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkPLYReader * New()
Construct object with merging set to true.
~vtkPLYReader() override
std::string InputString
Definition: vtkPLYReader.h:216
vtkStringArray * Comments
Definition: vtkPLYReader.h:211
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInputString(const std::string &s)
Enable reading from an InputString instead of the default, a file.
Definition: vtkPLYReader.h:195
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:214
a vtkAbstractArray subclass for strings
@ string
Definition: vtkX3D.h:496
#define VTK_FILEPATH