VTK
|
write Stanford PLY file format More...
#include <vtkPLYWriter.h>
Public Types | |
typedef vtkWriter | Superclass |
![]() | |
typedef vtkAlgorithm | Superclass |
![]() | |
typedef vtkObject | Superclass |
enum | DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION } |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPLYWriter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | AddComment (const std::string &comment) |
virtual void | SetDataByteOrder (int) |
virtual int | GetDataByteOrder () |
void | SetDataByteOrderToBigEndian () |
void | SetDataByteOrderToLittleEndian () |
virtual void | SetColorMode (int) |
virtual int | GetColorMode () |
void | SetColorModeToDefault () |
void | SetColorModeToUniformCellColor () |
void | SetColorModeToUniformPointColor () |
void | SetColorModeToUniformColor () |
void | SetColorModeToOff () |
virtual void | SetArrayName (const char *) |
virtual char * | GetArrayName () |
virtual void | SetComponent (int) |
virtual int | GetComponent () |
virtual void | SetLookupTable (vtkScalarsToColors *) |
virtual vtkScalarsToColors * | GetLookupTable () |
virtual void | SetColor (unsigned char, unsigned char, unsigned char) |
virtual void | SetColor (unsigned char[3]) |
virtual unsigned char * | GetColor () |
virtual void | GetColor (unsigned char &, unsigned char &, unsigned char &) |
virtual void | GetColor (unsigned char[3]) |
vtkPolyData * | GetInput () |
vtkPolyData * | GetInput (int port) |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetFileType (int) |
virtual int | GetFileType () |
void | SetFileTypeToASCII () |
void | SetFileTypeToBinary () |
virtual void | SetTextureCoordinatesName (int) |
virtual int | GetTextureCoordinatesName () |
void | SetTextureCoordinatesNameToUV () |
void | SetTextureCoordinatesNameToTextureUV () |
![]() | |
vtkWriter * | NewInstance () const |
virtual int | Write () |
void | EncodeString (char *resname, const char *name, bool doublePercent) |
void | EncodeWriteString (ostream *out, const char *name, bool doublePercent) |
void | SetInputData (vtkDataObject *input) |
void | SetInputData (int index, vtkDataObject *input) |
vtkDataObject * | GetInput () |
vtkDataObject * | GetInput (int port) |
![]() | |
vtkAlgorithm * | NewInstance () const |
int | HasExecutive () |
vtkExecutive * | GetExecutive () |
virtual void | SetExecutive (vtkExecutive *executive) |
virtual int | ModifyRequest (vtkInformation *request, int when) |
vtkInformation * | GetInputPortInformation (int port) |
vtkInformation * | GetOutputPortInformation (int port) |
int | GetNumberOfInputPorts () |
int | GetNumberOfOutputPorts () |
void | UpdateProgress (double amount) |
vtkInformation * | GetInputArrayInformation (int idx) |
void | RemoveAllInputs () |
vtkDataObject * | GetOutputDataObject (int port) |
virtual void | RemoveInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | RemoveInputConnection (int port, int idx) |
virtual void | RemoveAllInputConnections (int port) |
int | GetNumberOfInputConnections (int port) |
int | GetTotalNumberOfInputConnections () |
vtkAlgorithmOutput * | GetInputConnection (int port, int index) |
vtkAlgorithm * | GetInputAlgorithm (int port, int index, int &algPort) |
vtkAlgorithm * | GetInputAlgorithm (int port, int index) |
vtkExecutive * | GetInputExecutive (int port, int index) |
vtkInformation * | GetInputInformation (int port, int index) |
vtkInformation * | GetOutputInformation (int port) |
virtual void | UpdateInformation () |
virtual void | UpdateDataObject () |
virtual void | PropagateUpdateExtent () |
virtual void | UpdateWholeExtent () |
void | ConvertTotalInputToPortConnection (int ind, int &port, int &conn) |
int | SetUpdateExtentToWholeExtent (int port) |
int | SetUpdateExtentToWholeExtent () |
void | SetUpdateExtent (int port, int extent[6]) |
int | ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo) |
virtual int | ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime) |
virtual vtkInformation * | GetInformation () |
virtual void | SetInformation (vtkInformation *) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
virtual void | SetAbortExecute (int) |
virtual int | GetAbortExecute () |
virtual void | AbortExecuteOn () |
virtual void | AbortExecuteOff () |
virtual void | SetProgress (double) |
virtual double | GetProgress () |
void | SetProgressText (const char *ptext) |
virtual char * | GetProgressText () |
virtual unsigned long | GetErrorCode () |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) |
virtual void | SetInputArrayToProcess (int idx, vtkInformation *info) |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName) |
vtkDataObject * | GetInputDataObject (int port, int connection) |
virtual void | SetInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | SetInputConnection (vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (vtkAlgorithmOutput *input) |
virtual void | SetInputDataObject (int port, vtkDataObject *data) |
virtual void | SetInputDataObject (vtkDataObject *data) |
virtual void | AddInputDataObject (int port, vtkDataObject *data) |
virtual void | AddInputDataObject (vtkDataObject *data) |
vtkAlgorithmOutput * | GetOutputPort (int index) |
vtkAlgorithmOutput * | GetOutputPort () |
vtkAlgorithm * | GetInputAlgorithm () |
vtkExecutive * | GetInputExecutive () |
vtkInformation * | GetInputInformation () |
virtual void | Update (int port) |
virtual void | Update () |
virtual void | SetReleaseDataFlag (int) |
virtual int | GetReleaseDataFlag () |
void | ReleaseDataFlagOn () |
void | ReleaseDataFlagOff () |
int | UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output) |
int | UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType) |
void | SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel) |
void | SetUpdateExtent (int piece, int numPieces, int ghostLevel) |
void | SetUpdateExtent (int extent[6]) |
int * | GetUpdateExtent () |
int * | GetUpdateExtent (int port) |
void | GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1) |
void | GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1) |
void | GetUpdateExtent (int extent[6]) |
void | GetUpdateExtent (int port, int extent[6]) |
int | GetUpdatePiece () |
int | GetUpdatePiece (int port) |
int | GetUpdateNumberOfPieces () |
int | GetUpdateNumberOfPieces (int port) |
int | GetUpdateGhostLevel () |
int | GetUpdateGhostLevel (int port) |
void | SetProgressObserver (vtkProgressObserver *) |
virtual vtkProgressObserver * | GetProgressObserver () |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Protected Attributes | |
int | DataByteOrder |
char * | ArrayName |
int | Component |
int | ColorMode |
vtkScalarsToColors * | LookupTable |
unsigned char | Color [3] |
char * | FileName |
int | FileType |
int | TextureCoordinatesName |
vtkSmartPointer< vtkStringArray > | HeaderComments |
![]() | |
vtkTimeStamp | WriteTime |
![]() | |
vtkInformation * | Information |
double | Progress |
char * | ProgressText |
vtkProgressObserver * | ProgressObserver |
unsigned long | ErrorCode |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Additional Inherited Members | |
![]() | |
int | AbortExecute |
![]() | |
static vtkInformationIntegerKey * | PORT_REQUIREMENTS_FILLED () |
![]() | |
static vtkExecutive * | DefaultExecutivePrototype |
write Stanford PLY file format
vtkPLYWriter writes polygonal data in Stanford University PLY format (see http://graphics.stanford.edu/data/3Dscanrep/). The data can be written in either binary (little or big endian) or ASCII representation. As for PointData and CellData, vtkPLYWriter cannot handle normals or vectors. It only handles RGB PointData and CellData. You need to set the name of the array (using SetName for the array and SetArrayName for the writer). If the array is not a vtkUnsignedCharArray with 3 components, you need to specify a vtkLookupTable to map the scalars to RGB.
Definition at line 63 of file vtkPLYWriter.h.
typedef vtkWriter vtkPLYWriter::Superclass |
Definition at line 67 of file vtkPLYWriter.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkWriter.
|
static |
|
protectedvirtual |
Reimplemented from vtkWriter.
vtkPLYWriter* vtkPLYWriter::NewInstance | ( | ) | const |
|
virtual |
|
virtual |
If the file type is binary, then the user can specify which byte order to use (little versus big endian).
|
virtual |
If the file type is binary, then the user can specify which byte order to use (little versus big endian).
|
inline |
If the file type is binary, then the user can specify which byte order to use (little versus big endian).
Definition at line 75 of file vtkPLYWriter.h.
|
inline |
If the file type is binary, then the user can specify which byte order to use (little versus big endian).
Definition at line 77 of file vtkPLYWriter.h.
|
virtual |
These methods enable the user to control how to add color into the PLY output file. The default behavior is as follows. The user provides the name of an array and a component number. If the type of the array is three components, unsigned char, then the data is written as three separate "red", "green" and "blue" properties. If the type is not unsigned char, and a lookup table is provided, then the array/component are mapped through the table to generate three separate "red", "green" and "blue" properties in the PLY file. The user can also set the ColorMode to specify a uniform color for the whole part (on a vertex colors, face colors, or both. (Note: vertex colors or cell colors may be written, depending on where the named array is found. If points and cells have the arrays with the same name, then both colors will be written.)
|
virtual |
These methods enable the user to control how to add color into the PLY output file. The default behavior is as follows. The user provides the name of an array and a component number. If the type of the array is three components, unsigned char, then the data is written as three separate "red", "green" and "blue" properties. If the type is not unsigned char, and a lookup table is provided, then the array/component are mapped through the table to generate three separate "red", "green" and "blue" properties in the PLY file. The user can also set the ColorMode to specify a uniform color for the whole part (on a vertex colors, face colors, or both. (Note: vertex colors or cell colors may be written, depending on where the named array is found. If points and cells have the arrays with the same name, then both colors will be written.)
|
inline |
These methods enable the user to control how to add color into the PLY output file. The default behavior is as follows. The user provides the name of an array and a component number. If the type of the array is three components, unsigned char, then the data is written as three separate "red", "green" and "blue" properties. If the type is not unsigned char, and a lookup table is provided, then the array/component are mapped through the table to generate three separate "red", "green" and "blue" properties in the PLY file. The user can also set the ColorMode to specify a uniform color for the whole part (on a vertex colors, face colors, or both. (Note: vertex colors or cell colors may be written, depending on where the named array is found. If points and cells have the arrays with the same name, then both colors will be written.)
Definition at line 97 of file vtkPLYWriter.h.
|
inline |
These methods enable the user to control how to add color into the PLY output file. The default behavior is as follows. The user provides the name of an array and a component number. If the type of the array is three components, unsigned char, then the data is written as three separate "red", "green" and "blue" properties. If the type is not unsigned char, and a lookup table is provided, then the array/component are mapped through the table to generate three separate "red", "green" and "blue" properties in the PLY file. The user can also set the ColorMode to specify a uniform color for the whole part (on a vertex colors, face colors, or both. (Note: vertex colors or cell colors may be written, depending on where the named array is found. If points and cells have the arrays with the same name, then both colors will be written.)
Definition at line 99 of file vtkPLYWriter.h.
|
inline |
These methods enable the user to control how to add color into the PLY output file. The default behavior is as follows. The user provides the name of an array and a component number. If the type of the array is three components, unsigned char, then the data is written as three separate "red", "green" and "blue" properties. If the type is not unsigned char, and a lookup table is provided, then the array/component are mapped through the table to generate three separate "red", "green" and "blue" properties in the PLY file. The user can also set the ColorMode to specify a uniform color for the whole part (on a vertex colors, face colors, or both. (Note: vertex colors or cell colors may be written, depending on where the named array is found. If points and cells have the arrays with the same name, then both colors will be written.)
Definition at line 101 of file vtkPLYWriter.h.
|
inline |
These methods enable the user to control how to add color into the PLY output file. The default behavior is as follows. The user provides the name of an array and a component number. If the type of the array is three components, unsigned char, then the data is written as three separate "red", "green" and "blue" properties. If the type is not unsigned char, and a lookup table is provided, then the array/component are mapped through the table to generate three separate "red", "green" and "blue" properties in the PLY file. The user can also set the ColorMode to specify a uniform color for the whole part (on a vertex colors, face colors, or both. (Note: vertex colors or cell colors may be written, depending on where the named array is found. If points and cells have the arrays with the same name, then both colors will be written.)
Definition at line 103 of file vtkPLYWriter.h.
|
inline |
These methods enable the user to control how to add color into the PLY output file. The default behavior is as follows. The user provides the name of an array and a component number. If the type of the array is three components, unsigned char, then the data is written as three separate "red", "green" and "blue" properties. If the type is not unsigned char, and a lookup table is provided, then the array/component are mapped through the table to generate three separate "red", "green" and "blue" properties in the PLY file. The user can also set the ColorMode to specify a uniform color for the whole part (on a vertex colors, face colors, or both. (Note: vertex colors or cell colors may be written, depending on where the named array is found. If points and cells have the arrays with the same name, then both colors will be written.)
Definition at line 105 of file vtkPLYWriter.h.
|
virtual |
Specify the array name to use to color the data.
|
virtual |
Specify the array name to use to color the data.
|
virtual |
Specify the array component to use to color the data.
|
virtual |
Specify the array component to use to color the data.
|
virtual |
A lookup table can be specified in order to convert data arrays to RGBA colors.
|
virtual |
A lookup table can be specified in order to convert data arrays to RGBA colors.
|
virtual |
Set the color to use when using a uniform color (either point or cells, or both). The color is specified as a triplet of three unsigned chars between (0,255). This only takes effect when the ColorMode is set to uniform point, uniform cell, or uniform color.
|
virtual |
Set the color to use when using a uniform color (either point or cells, or both). The color is specified as a triplet of three unsigned chars between (0,255). This only takes effect when the ColorMode is set to uniform point, uniform cell, or uniform color.
|
virtual |
Set the color to use when using a uniform color (either point or cells, or both). The color is specified as a triplet of three unsigned chars between (0,255). This only takes effect when the ColorMode is set to uniform point, uniform cell, or uniform color.
|
virtual |
Set the color to use when using a uniform color (either point or cells, or both). The color is specified as a triplet of three unsigned chars between (0,255). This only takes effect when the ColorMode is set to uniform point, uniform cell, or uniform color.
|
virtual |
Set the color to use when using a uniform color (either point or cells, or both). The color is specified as a triplet of three unsigned chars between (0,255). This only takes effect when the ColorMode is set to uniform point, uniform cell, or uniform color.
vtkPolyData* vtkPLYWriter::GetInput | ( | ) |
Get the input to this writer.
vtkPolyData* vtkPLYWriter::GetInput | ( | int | port | ) |
Get the input to this writer.
|
virtual |
Specify file name of vtk polygon data file to write.
|
virtual |
Specify file name of vtk polygon data file to write.
|
virtual |
Specify file type (ASCII or BINARY) for vtk data file.
|
virtual |
Specify file type (ASCII or BINARY) for vtk data file.
|
inline |
Specify file type (ASCII or BINARY) for vtk data file.
Definition at line 153 of file vtkPLYWriter.h.
|
inline |
Specify file type (ASCII or BINARY) for vtk data file.
Definition at line 154 of file vtkPLYWriter.h.
|
virtual |
Choose the name used for the texture coordinates. (u, v) or (texture_u, texture_v)
|
virtual |
Choose the name used for the texture coordinates. (u, v) or (texture_u, texture_v)
|
inline |
Choose the name used for the texture coordinates. (u, v) or (texture_u, texture_v)
Definition at line 162 of file vtkPLYWriter.h.
|
inline |
Choose the name used for the texture coordinates. (u, v) or (texture_u, texture_v)
Definition at line 164 of file vtkPLYWriter.h.
void vtkPLYWriter::AddComment | ( | const std::string & | comment | ) |
Add a comment in the header part.
|
protectedvirtual |
Implements vtkWriter.
|
protected |
|
protected |
|
protectedvirtual |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkAlgorithm.
|
protected |
Definition at line 179 of file vtkPLYWriter.h.
|
protected |
Definition at line 180 of file vtkPLYWriter.h.
|
protected |
Definition at line 181 of file vtkPLYWriter.h.
|
protected |
Definition at line 182 of file vtkPLYWriter.h.
|
protected |
Definition at line 183 of file vtkPLYWriter.h.
|
protected |
Definition at line 184 of file vtkPLYWriter.h.
|
protected |
Definition at line 186 of file vtkPLYWriter.h.
|
protected |
Definition at line 188 of file vtkPLYWriter.h.
|
protected |
Definition at line 189 of file vtkPLYWriter.h.
|
protected |
Definition at line 191 of file vtkPLYWriter.h.