29 #ifndef vtkPLYWriter_h
30 #define vtkPLYWriter_h
32 #include "vtkIOPLYModule.h"
38 VTK_ABI_NAMESPACE_BEGIN
45 #define VTK_LITTLE_ENDIAN 0
46 #define VTK_BIG_ENDIAN 1
48 #define VTK_COLOR_MODE_DEFAULT 0
49 #define VTK_COLOR_MODE_UNIFORM_CELL_COLOR 1
50 #define VTK_COLOR_MODE_UNIFORM_POINT_COLOR 2
51 #define VTK_COLOR_MODE_UNIFORM_COLOR 3
52 #define VTK_COLOR_MODE_OFF 4
54 #define VTK_TEXTURECOORDS_UV 0
55 #define VTK_TEXTURECOORDS_TEXTUREUV 1
56 #define VTK_TEXTURECOORDS_ST 2
71 vtkGetMacro(DataByteOrder,
int);
85 vtkSetMacro(WriteToOutputString,
bool);
86 vtkGetMacro(WriteToOutputString,
bool);
87 vtkBooleanMacro(WriteToOutputString,
bool);
96 vtkSetMacro(WriteObjectInformation,
bool);
97 vtkGetMacro(WriteObjectInformation,
bool);
98 vtkBooleanMacro(WriteObjectInformation,
bool);
119 vtkSetMacro(ColorMode,
int);
120 vtkGetMacro(ColorMode,
int);
139 vtkSetMacro(EnableAlpha,
bool);
140 vtkGetMacro(EnableAlpha,
bool);
141 vtkBooleanMacro(EnableAlpha,
bool);
148 vtkSetStringMacro(ArrayName);
149 vtkGetStringMacro(ArrayName);
157 vtkGetMacro(Component,
int);
176 vtkSetVector3Macro(
Color,
unsigned char);
177 vtkGetVector3Macro(
Color,
unsigned char);
184 vtkSetMacro(Alpha,
unsigned char);
185 vtkGetMacro(Alpha,
unsigned char);
200 vtkSetFilePathMacro(FileName);
201 vtkGetFilePathMacro(FileName);
222 vtkGetMacro(TextureCoordinatesName,
int);
278 VTK_ABI_NAMESPACE_END
vtkScalarsToColors * LookupTable
#define VTK_COLOR_MODE_OFF
void SetTextureCoordinatesNameToTextureUV()
Choose the name used for the texture coordinates.
void SetTextureCoordinatesNameToST()
Choose the name used for the texture coordinates.
void SetFileTypeToBinary()
Specify file type (ASCII or BINARY) for vtk data file.
bool WriteObjectInformation
void SetDataByteOrderToBigEndian()
If the file type is binary, then the user can specify which byte order to use (little versus big endi...
write Stanford PLY file format
a vtkAbstractArray subclass for strings
concrete dataset represents vertices, lines, polygons, and triangle strips
#define VTK_COLOR_MODE_UNIFORM_POINT_COLOR
int TextureCoordinatesName
vtkSmartPointer< vtkStringArray > HeaderComments
Superclass for mapping scalar values to colors.
void SetTextureCoordinatesNameToUV()
Choose the name used for the texture coordinates.
abstract class to write data to file(s)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const std::string & GetOutputString() const
Enable writing to an OutputString instead of the default, a file.
a simple class to control print indentation
vtkDataObject * GetInput()
void SetColorModeToOff()
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.
#define VTK_COLOR_MODE_UNIFORM_COLOR
represent and manipulate attribute data in a dataset
void SetColorModeToUniformPointColor()
These methods enable the user to control how to add color into the PLY output file.
#define VTK_TEXTURECOORDS_UV
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
#define VTK_TEXTURECOORDS_ST
dynamic, self-adjusting array of unsigned char
#define VTK_LITTLE_ENDIAN
void SetColorModeToUniformCellColor()
These methods enable the user to control how to add color into the PLY output file.
#define VTK_COLOR_MODE_DEFAULT
void SetDataByteOrderToLittleEndian()
If the file type is binary, then the user can specify which byte order to use (little versus big endi...
#define VTK_TEXTURECOORDS_TEXTUREUV
void SetColorModeToUniformColor()
These methods enable the user to control how to add color into the PLY output file.
static vtkAlgorithm * New()
virtual bool WriteDataAndReturn()
void SetColorModeToDefault()
These methods enable the user to control how to add color into the PLY output file.
#define VTK_COLOR_MODE_UNIFORM_CELL_COLOR