Go to the documentation of this file.
41 #ifndef vtkPLYWriter_h
42 #define vtkPLYWriter_h
44 #include "vtkIOPLYModule.h"
56 #define VTK_LITTLE_ENDIAN 0
57 #define VTK_BIG_ENDIAN 1
59 #define VTK_COLOR_MODE_DEFAULT 0
60 #define VTK_COLOR_MODE_UNIFORM_CELL_COLOR 1
61 #define VTK_COLOR_MODE_UNIFORM_POINT_COLOR 2
62 #define VTK_COLOR_MODE_UNIFORM_COLOR 3
63 #define VTK_COLOR_MODE_OFF 4
65 #define VTK_TEXTURECOORDS_UV 0
66 #define VTK_TEXTURECOORDS_TEXTUREUV 1
81 vtkGetMacro(DataByteOrder,
int);
106 vtkSetMacro(ColorMode,
int);
107 vtkGetMacro(ColorMode,
int);
125 vtkSetMacro(EnableAlpha,
bool);
126 vtkGetMacro(EnableAlpha,
bool);
127 vtkBooleanMacro(EnableAlpha,
bool);
134 vtkSetStringMacro(ArrayName);
135 vtkGetStringMacro(ArrayName);
143 vtkGetMacro(Component,
int);
162 vtkSetVector3Macro(
Color,
unsigned char);
163 vtkGetVector3Macro(
Color,
unsigned char);
170 vtkSetMacro(Alpha,
unsigned char);
171 vtkGetMacro(Alpha,
unsigned char);
186 vtkSetStringMacro(FileName);
187 vtkGetStringMacro(FileName);
195 vtkGetMacro(FileType,
int);
207 vtkGetMacro(TextureCoordinatesName,
int);
void SetDataByteOrderToBigEndian()
void SetColorModeToUniformColor()
void SetColorModeToDefault()
void AddComment(const std::string &comment)
Add a comment in the header part.
represent and manipulate attribute data in a dataset
vtkPolyData * GetInput()
Get the input to this writer.
dynamic, self-adjusting array of unsigned char
vtkSmartPointer< vtkUnsignedCharArray > GetColors(vtkIdType num, vtkDataSetAttributes *dsa)
vtkSmartPointer< vtkStringArray > HeaderComments
vtkScalarsToColors * LookupTable
#define VTK_COLOR_MODE_UNIFORM_POINT_COLOR
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
write Stanford PLY file format
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_COLOR_MODE_OFF
void SetColorModeToUniformCellColor()
void SetColorModeToUniformPointColor()
#define VTK_COLOR_MODE_UNIFORM_CELL_COLOR
static vtkPLYWriter * New()
a simple class to control print indentation
#define VTK_TEXTURECOORDS_UV
#define VTK_TEXTURECOORDS_TEXTUREUV
void SetTextureCoordinatesNameToUV()
abstract class to write data to file(s)
#define VTK_COLOR_MODE_DEFAULT
int TextureCoordinatesName
const float * GetTextureCoordinates(vtkIdType num, vtkDataSetAttributes *dsa)
#define VTK_COLOR_MODE_UNIFORM_COLOR
Superclass for mapping scalar values to colors.
virtual void SetLookupTable(vtkScalarsToColors *)
A lookup table can be specified in order to convert data arrays to RGBA colors.
void WriteData() override
vtkPolyData * GetInput(int port)
void SetFileTypeToASCII()
#define VTK_LITTLE_ENDIAN
concrete dataset represents vertices, lines, polygons, and triangle strips
a vtkAbstractArray subclass for strings
void SetDataByteOrderToLittleEndian()
void SetTextureCoordinatesNameToTextureUV()
void SetFileTypeToBinary()