 |
VTK
9.1.0
|
Go to the documentation of this file.
67 #ifndef vtkPLYWriter_h
68 #define vtkPLYWriter_h
70 #include "vtkIOPLYModule.h"
82 #define VTK_LITTLE_ENDIAN 0
83 #define VTK_BIG_ENDIAN 1
85 #define VTK_COLOR_MODE_DEFAULT 0
86 #define VTK_COLOR_MODE_UNIFORM_CELL_COLOR 1
87 #define VTK_COLOR_MODE_UNIFORM_POINT_COLOR 2
88 #define VTK_COLOR_MODE_UNIFORM_COLOR 3
89 #define VTK_COLOR_MODE_OFF 4
91 #define VTK_TEXTURECOORDS_UV 0
92 #define VTK_TEXTURECOORDS_TEXTUREUV 1
107 vtkGetMacro(DataByteOrder,
int);
121 vtkSetMacro(WriteToOutputString,
bool);
122 vtkGetMacro(WriteToOutputString,
bool);
123 vtkBooleanMacro(WriteToOutputString,
bool);
145 vtkSetMacro(ColorMode,
int);
146 vtkGetMacro(ColorMode,
int);
165 vtkSetMacro(EnableAlpha,
bool);
166 vtkGetMacro(EnableAlpha,
bool);
167 vtkBooleanMacro(EnableAlpha,
bool);
174 vtkSetStringMacro(ArrayName);
175 vtkGetStringMacro(ArrayName);
183 vtkGetMacro(Component,
int);
202 vtkSetVector3Macro(
Color,
unsigned char);
203 vtkGetVector3Macro(
Color,
unsigned char);
210 vtkSetMacro(Alpha,
unsigned char);
211 vtkGetMacro(Alpha,
unsigned char);
235 vtkGetMacro(FileType,
int);
246 vtkGetMacro(TextureCoordinatesName,
int);
void SetDataByteOrderToBigEndian()
If the file type is binary, then the user can specify which byte order to use (little versus big endi...
void SetColorModeToUniformColor()
These methods enable the user to control how to add color into the PLY output file.
void SetColorModeToDefault()
These methods enable the user to control how to add color into the PLY output file.
void AddComment(const std::string &comment)
Add a comment in the header part.
const std::string & GetOutputString() const
Enable writing to an OutputString instead of the default, a file.
represent and manipulate attribute data in a dataset
vtkSetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
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()
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.
#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()
Choose the name used for the texture coordinates.
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
vtkGetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
void SetColorModeToOff()
These methods enable the user to control how to add color into the PLY output file.
vtkPolyData * GetInput(int port)
Get the input to this writer.
void SetFileTypeToASCII()
Specify file type (ASCII or BINARY) for vtk data file.
#define VTK_LITTLE_ENDIAN
concrete dataset represents vertices, lines, polygons, and triangle strips
a vtkAbstractArray subclass for strings
void SetDataByteOrderToLittleEndian()
If the file type is binary, then the user can specify which byte order to use (little versus big endi...
void SetTextureCoordinatesNameToTextureUV()
Choose the name used for the texture coordinates.
void SetFileTypeToBinary()
Specify file type (ASCII or BINARY) for vtk data file.