38 #ifndef vtkPLYWriter_h
39 #define vtkPLYWriter_h
41 #include "vtkIOPLYModule.h"
53 #define VTK_LITTLE_ENDIAN 0
54 #define VTK_BIG_ENDIAN 1
56 #define VTK_COLOR_MODE_DEFAULT 0
57 #define VTK_COLOR_MODE_UNIFORM_CELL_COLOR 1
58 #define VTK_COLOR_MODE_UNIFORM_POINT_COLOR 2
59 #define VTK_COLOR_MODE_UNIFORM_COLOR 3
60 #define VTK_COLOR_MODE_OFF 4
62 #define VTK_TEXTURECOORDS_UV 0
63 #define VTK_TEXTURECOORDS_TEXTUREUV 1
78 vtkGetMacro(DataByteOrder,
int);
92 vtkSetMacro(WriteToOutputString,
bool);
93 vtkGetMacro(WriteToOutputString,
bool);
94 vtkBooleanMacro(WriteToOutputString,
bool);
116 vtkSetMacro(ColorMode,
int);
117 vtkGetMacro(ColorMode,
int);
136 vtkSetMacro(EnableAlpha,
bool);
137 vtkGetMacro(EnableAlpha,
bool);
138 vtkBooleanMacro(EnableAlpha,
bool);
145 vtkSetStringMacro(ArrayName);
146 vtkGetStringMacro(ArrayName);
154 vtkGetMacro(Component,
int);
173 vtkSetVector3Macro(
Color,
unsigned char);
174 vtkGetVector3Macro(
Color,
unsigned char);
181 vtkSetMacro(Alpha,
unsigned char);
182 vtkGetMacro(Alpha,
unsigned char);
197 vtkSetStringMacro(FileName);
198 vtkGetStringMacro(FileName);
206 vtkGetMacro(FileType,
int);
217 vtkGetMacro(TextureCoordinatesName,
int);
represent and manipulate attribute data in a dataset
a simple class to control print indentation
write Stanford PLY file format
void SetDataByteOrderToLittleEndian()
const std::string & GetOutputString() const
void SetColorModeToUniformCellColor()
void SetFileTypeToASCII()
void SetColorModeToUniformColor()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetFileTypeToBinary()
void SetDataByteOrderToBigEndian()
void AddComment(const std::string &comment)
Add a comment in the header part.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkScalarsToColors * LookupTable
vtkSmartPointer< vtkUnsignedCharArray > GetColors(vtkIdType num, vtkDataSetAttributes *dsa)
void SetTextureCoordinatesNameToUV()
void SetColorModeToDefault()
void SetColorModeToUniformPointColor()
static vtkPLYWriter * New()
void WriteData() override
vtkPolyData * GetInput(int port)
int TextureCoordinatesName
virtual void SetLookupTable(vtkScalarsToColors *)
A lookup table can be specified in order to convert data arrays to RGBA colors.
void SetTextureCoordinatesNameToTextureUV()
vtkSmartPointer< vtkStringArray > HeaderComments
vtkPolyData * GetInput()
Get the input to this writer.
const float * GetTextureCoordinates(vtkIdType num, vtkDataSetAttributes *dsa)
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for mapping scalar values to colors.
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_DEFAULT
#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