61#include "vtkIOPLYModule.h"
67VTK_ABI_NAMESPACE_BEGIN
74#define VTK_LITTLE_ENDIAN 0
75#define VTK_BIG_ENDIAN 1
77#define VTK_COLOR_MODE_DEFAULT 0
78#define VTK_COLOR_MODE_UNIFORM_CELL_COLOR 1
79#define VTK_COLOR_MODE_UNIFORM_POINT_COLOR 2
80#define VTK_COLOR_MODE_UNIFORM_COLOR 3
81#define VTK_COLOR_MODE_OFF 4
83#define VTK_TEXTURECOORDS_UV 0
84#define VTK_TEXTURECOORDS_TEXTUREUV 1
99 vtkGetMacro(DataByteOrder,
int);
113 vtkSetMacro(WriteToOutputString,
bool);
114 vtkGetMacro(WriteToOutputString,
bool);
115 vtkBooleanMacro(WriteToOutputString,
bool);
124 vtkSetMacro(WriteObjectInformation,
bool);
125 vtkGetMacro(WriteObjectInformation,
bool);
126 vtkBooleanMacro(WriteObjectInformation,
bool);
147 vtkSetMacro(ColorMode,
int);
148 vtkGetMacro(ColorMode,
int);
167 vtkSetMacro(EnableAlpha,
bool);
168 vtkGetMacro(EnableAlpha,
bool);
169 vtkBooleanMacro(EnableAlpha,
bool);
176 vtkSetStringMacro(ArrayName);
177 vtkGetStringMacro(ArrayName);
185 vtkGetMacro(Component,
int);
204 vtkSetVector3Macro(Color,
unsigned char);
205 vtkGetVector3Macro(Color,
unsigned char);
212 vtkSetMacro(Alpha,
unsigned char);
213 vtkGetMacro(Alpha,
unsigned char);
237 vtkGetMacro(FileType,
int);
248 vtkGetMacro(TextureCoordinatesName,
int);
275 unsigned char Color[3];
represent and manipulate attribute data in a dataset
a simple class to control print indentation
write Stanford PLY file format
void SetDataByteOrderToLittleEndian()
If the file type is binary, then the user can specify which byte order to use (little versus big endi...
vtkSetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
void SetColorModeToUniformCellColor()
These methods enable the user to control how to add color into the PLY output file.
void SetFileTypeToASCII()
Specify file type (ASCII or BINARY) for vtk data file.
void SetColorModeToUniformColor()
These methods enable the user to control how to add color into the PLY output file.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetFileTypeToBinary()
Specify file type (ASCII or BINARY) for vtk data file.
void SetDataByteOrderToBigEndian()
If the file type is binary, then the user can specify which byte order to use (little versus big endi...
const std::string & GetOutputString() const
Enable writing to an OutputString instead of the default, a file.
vtkGetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
vtkPolyData * GetInput(int port)
Get the input to this writer.
void AddComment(const std::string &comment)
Add a comment in the header part.
const float * GetTextureCoordinates(vtkIdType num, vtkDataSetAttributes *dsa)
vtkPolyData * GetInput()
Get the input to this writer.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkScalarsToColors * LookupTable
void SetTextureCoordinatesNameToUV()
Choose the name used for the texture coordinates.
void SetColorModeToDefault()
These methods enable the user to control how to add color into the PLY output file.
void SetColorModeToUniformPointColor()
These methods enable the user to control how to add color into the PLY output file.
const float * GetNormals(vtkIdType num, vtkDataSetAttributes *dsa)
void WriteData() override
int TextureCoordinatesName
static vtkPLYWriter * New()
virtual void SetLookupTable(vtkScalarsToColors *)
A lookup table can be specified in order to convert data arrays to RGBA colors.
bool WriteObjectInformation
void SetTextureCoordinatesNameToTextureUV()
Choose the name used for the texture coordinates.
vtkSmartPointer< vtkStringArray > HeaderComments
void SetColorModeToOff()
These methods enable the user to control how to add color into the PLY output file.
vtkSmartPointer< vtkUnsignedCharArray > GetColors(vtkIdType num, vtkDataSetAttributes *dsa)
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for mapping scalar values to colors.
Hold a reference to a vtkObjectBase instance.
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of unsigned char
abstract class to write data to file(s)
#define VTK_LITTLE_ENDIAN
#define VTK_COLOR_MODE_OFF
#define VTK_COLOR_MODE_UNIFORM_POINT_COLOR
#define VTK_TEXTURECOORDS_UV
#define VTK_COLOR_MODE_UNIFORM_COLOR
#define VTK_COLOR_MODE_UNIFORM_CELL_COLOR
#define VTK_TEXTURECOORDS_TEXTUREUV
#define VTK_COLOR_MODE_DEFAULT