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=========================================================================*/
53#ifndef vtkPLYReader_h
54#define vtkPLYReader_h
55
57#include "vtkIOPLYModule.h" // For export macro
58
59class vtkStringArray;
60
61class VTKIOPLY_EXPORT vtkPLYReader : public vtkAbstractPolyDataReader
62{
63public:
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
70 static vtkPLYReader* New();
71
75 static int CanReadFile(VTK_FILEPATH const char* filename);
76
77 vtkGetObjectMacro(Comments, vtkStringArray);
78
83 vtkGetMacro(FaceTextureTolerance, float);
84 vtkSetMacro(FaceTextureTolerance, float);
85
87
95 vtkSetMacro(ReadFromInputString, bool);
96 vtkGetMacro(ReadFromInputString, bool);
97 vtkBooleanMacro(ReadFromInputString, bool);
98 void SetInputString(const std::string& s) { this->InputString = s; }
100
107 vtkGetMacro(DuplicatePointsForFaceTexture, bool);
108 vtkSetMacro(DuplicatePointsForFaceTexture, bool);
109
110protected:
112 ~vtkPLYReader() override;
113
115 // Whether this object is reading from a string or a file.
116 // Default is 0: read from file.
118 // The input string.
119 std::string InputString;
120
122
123private:
124 vtkPLYReader(const vtkPLYReader&) = delete;
125 void operator=(const vtkPLYReader&) = delete;
126
127 float FaceTextureTolerance;
128 bool DuplicatePointsForFaceTexture;
129};
130
131#endif
Superclass for algorithms that read models from a file.
a simple class to control print indentation
Definition vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read Stanford University PLY polygonal file format
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
vtkStringArray * Comments
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.
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
a vtkAbstractArray subclass for strings
#define VTK_FILEPATH