VTK
|
abstract class to write data to file(s) More...
#include <vtkWriter.h>
Public Types | |
typedef vtkAlgorithm | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | Write () |
void | EncodeString (char *resname, const char *name, bool doublePercent) |
void | EncodeWriteString (ostream *out, const char *name, bool doublePercent) |
void | SetInput (vtkDataObject *input) |
void | SetInput (int index, vtkDataObject *input) |
vtkDataObject * | GetInput () |
vtkDataObject * | GetInput (int port) |
![]() | |
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) |
int | GetNumberOfInputConnections (int port) |
int | GetTotalNumberOfInputConnections () |
vtkAlgorithmOutput * | GetInputConnection (int port, int index) |
virtual void | Update () |
virtual void | UpdateInformation () |
virtual void | UpdateWholeExtent () |
void | ConvertTotalInputToPortConnection (int ind, int &port, int &conn) |
virtual double | ComputePriority () |
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) |
vtkAlgorithmOutput * | GetOutputPort (int index) |
vtkAlgorithmOutput * | GetOutputPort () |
virtual void | SetReleaseDataFlag (int) |
virtual int | GetReleaseDataFlag () |
void | ReleaseDataFlagOn () |
void | ReleaseDataFlagOff () |
int | UpdateExtentIsEmpty (vtkDataObject *output) |
int | UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType) |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char 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) |
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 &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Protected Attributes | |
vtkTimeStamp | WriteTime |
![]() | |
vtkInformation * | Information |
double | Progress |
char * | ProgressText |
unsigned long | ErrorCode |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Additional Inherited Members | |
![]() | |
int | AbortExecute |
![]() | |
static vtkInformationIntegerKey * | PORT_REQUIREMENTS_FILLED () |
![]() | |
static vtkExecutive * | DefaultExecutivePrototype |
![]() |
abstract class to write data to file(s)
vtkWriter is an abstract class for mapper objects that write their data to disk (or into a communications port). All writers respond to Write() method. This method insures that there is input and input is up to date.
Definition at line 43 of file vtkWriter.h.
typedef vtkAlgorithm vtkWriter::Superclass |
Definition at line 46 of file vtkWriter.h.
|
protected |
|
protected |
|
virtual |
Reimplemented from vtkAlgorithm.
Reimplemented in vtkExodusIIWriter, vtkMNITagPointWriter, vtkMNIObjectWriter, vtkArrayWriter, vtkPLYWriter, vtkCGMWriter, vtkDIMACSGraphWriter, vtkMCubesWriter, vtkDataWriter, vtkDelimitedTextWriter, vtkEnSightWriter, vtkDataObjectWriter, vtkBYUWriter, vtkSTLWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkAbstractParticleWriter, vtkJavaScriptDataWriter, vtkPolyDataWriter, vtkPDataSetWriter, vtkCompositeDataWriter, vtkIVWriter, vtkTableWriter, vtkUnstructuredGridWriter, vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, vtkTableToSQLiteWriter, vtkDataSetWriter, vtkGraphWriter, vtkStructuredPointsWriter, vtkTreeWriter, vtkGenericDataObjectWriter, and vtkTableToDatabaseWriter.
|
static |
Return 1 if this class type 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 vtkAlgorithm.
Reimplemented in vtkExodusIIWriter, vtkMNITagPointWriter, vtkMNIObjectWriter, vtkArrayWriter, vtkPLYWriter, vtkCGMWriter, vtkDIMACSGraphWriter, vtkMCubesWriter, vtkDataWriter, vtkDelimitedTextWriter, vtkEnSightWriter, vtkDataObjectWriter, vtkBYUWriter, vtkSTLWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkAbstractParticleWriter, vtkJavaScriptDataWriter, vtkPolyDataWriter, vtkPDataSetWriter, vtkCompositeDataWriter, vtkIVWriter, vtkTableWriter, vtkUnstructuredGridWriter, vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, vtkTableToSQLiteWriter, vtkDataSetWriter, vtkGraphWriter, vtkStructuredPointsWriter, vtkTreeWriter, vtkGenericDataObjectWriter, and vtkTableToDatabaseWriter.
|
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 vtkAlgorithm.
Reimplemented in vtkExodusIIWriter, vtkMNITagPointWriter, vtkMNIObjectWriter, vtkArrayWriter, vtkPLYWriter, vtkCGMWriter, vtkDIMACSGraphWriter, vtkMCubesWriter, vtkDataWriter, vtkDelimitedTextWriter, vtkEnSightWriter, vtkDataObjectWriter, vtkBYUWriter, vtkSTLWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkAbstractParticleWriter, vtkJavaScriptDataWriter, vtkPolyDataWriter, vtkPDataSetWriter, vtkCompositeDataWriter, vtkIVWriter, vtkTableWriter, vtkUnstructuredGridWriter, vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, vtkTableToSQLiteWriter, vtkDataSetWriter, vtkGraphWriter, vtkStructuredPointsWriter, vtkTreeWriter, vtkGenericDataObjectWriter, and vtkTableToDatabaseWriter.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkExodusIIWriter, vtkMNITagPointWriter, vtkMNIObjectWriter, vtkArrayWriter, vtkPLYWriter, vtkCGMWriter, vtkDIMACSGraphWriter, vtkMCubesWriter, vtkDataWriter, vtkDelimitedTextWriter, vtkEnSightWriter, vtkDataObjectWriter, vtkBYUWriter, vtkSTLWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkAbstractParticleWriter, vtkJavaScriptDataWriter, vtkPolyDataWriter, vtkPDataSetWriter, vtkCompositeDataWriter, vtkIVWriter, vtkTableWriter, vtkUnstructuredGridWriter, vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, vtkTableToSQLiteWriter, vtkDataSetWriter, vtkGraphWriter, vtkStructuredPointsWriter, vtkTreeWriter, vtkGenericDataObjectWriter, and vtkTableToDatabaseWriter.
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkAlgorithm.
Reimplemented in vtkExodusIIWriter, vtkMNITagPointWriter, vtkMNIObjectWriter, vtkArrayWriter, vtkPLYWriter, vtkCGMWriter, vtkDIMACSGraphWriter, vtkMCubesWriter, vtkDataWriter, vtkDelimitedTextWriter, vtkEnSightWriter, vtkDataObjectWriter, vtkBYUWriter, vtkSTLWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkAbstractParticleWriter, vtkJavaScriptDataWriter, vtkPolyDataWriter, vtkCompositeDataWriter, vtkIVWriter, vtkTableWriter, vtkUnstructuredGridWriter, vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, vtkTableToSQLiteWriter, vtkPDataSetWriter, vtkDataSetWriter, vtkGraphWriter, vtkStructuredPointsWriter, vtkTreeWriter, vtkGenericDataObjectWriter, and vtkTableToDatabaseWriter.
|
virtual |
Write data to output. Method executes subclasses WriteData() method, as well as StartMethod() and EndMethod() methods. Returns 1 on success and 0 on failure.
Reimplemented in vtkMNITagPointWriter, vtkArrayWriter, and vtkPDataSetWriter.
void vtkWriter::EncodeString | ( | char * | resname, |
const char * | name, | ||
bool | doublePercent | ||
) |
Encode the string so that the reader will not have problems. The resulting string is up to three times the size of the input string. doublePercent indicates whether to output a double '' before escaped characters so the string may be used as a printf format string.
void vtkWriter::EncodeWriteString | ( | ostream * | out, |
const char * | name, | ||
bool | doublePercent | ||
) |
Encode the string so that the reader will not have problems. The resulting string is up to three times the size of the input string. Write the string to the output stream. doublePercent indicates whether to output a double '' before escaped characters so the string may be used as a printf format string.
void vtkWriter::SetInput | ( | vtkDataObject * | input | ) |
Set/get the input to this writer.
void vtkWriter::SetInput | ( | int | index, |
vtkDataObject * | input | ||
) |
Set/get the input to this writer.
vtkDataObject* vtkWriter::GetInput | ( | ) |
Set/get the input to this writer.
Reimplemented in vtkEnSightWriter, vtkDIMACSGraphWriter, vtkTableToDatabaseWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkPolyDataWriter, vtkCompositeDataWriter, vtkTableWriter, vtkUnstructuredGridWriter, vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, vtkTableToSQLiteWriter, vtkDataSetWriter, vtkGraphWriter, vtkStructuredPointsWriter, and vtkTreeWriter.
vtkDataObject* vtkWriter::GetInput | ( | int | port | ) |
Set/get the input to this writer.
Reimplemented in vtkDIMACSGraphWriter, vtkTableToDatabaseWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkPolyDataWriter, vtkCompositeDataWriter, vtkTableWriter, vtkUnstructuredGridWriter, vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, vtkTableToSQLiteWriter, vtkDataSetWriter, vtkGraphWriter, vtkStructuredPointsWriter, and vtkTreeWriter.
|
protectedvirtual |
Upstream/Downstream requests form the generalized interface through which executives invoke a algorithm's functionality. Upstream requests correspond to information flow from the algorithm's outputs to its inputs. Downstream requests correspond to information flow from the algorithm's inputs to its outputs. A downstream request is defined by the contents of the request information object. The input to the request is stored in the input information vector passed to ProcessRequest. The results of an downstream request are stored in the output information vector passed to ProcessRequest. An upstream request is defined by the contents of the request information object. The input to the request is stored in the output information vector passed to ProcessRequest. The results of an upstream request are stored in the input information vector passed to ProcessRequest. It returns the boolean status of the pipeline (false means failure).
Reimplemented from vtkAlgorithm.
Reimplemented in vtkExodusIIWriter.
|
protectedvirtual |
Reimplemented in vtkExodusIIWriter, and vtkMNITagPointWriter.
|
protectedpure virtual |
Implemented in vtkExodusIIWriter, vtkDataWriter, vtkMNITagPointWriter, vtkMNIObjectWriter, vtkEnSightWriter, vtkPLYWriter, vtkCGMWriter, vtkArrayWriter, vtkDelimitedTextWriter, vtkBYUWriter, vtkAbstractParticleWriter, vtkJavaScriptDataWriter, vtkDataObjectWriter, vtkDIMACSGraphWriter, vtkMCubesWriter, vtkTableToDatabaseWriter, vtkCompositeDataWriter, vtkRectilinearGridWriter, vtkStructuredGridWriter, vtkPolyDataWriter, vtkTableWriter, vtkUnstructuredGridWriter, vtkDataSetWriter, vtkGraphWriter, vtkStructuredPointsWriter, vtkTableToMySQLWriter, vtkTableToPostgreSQLWriter, vtkTableToSQLiteWriter, vtkTreeWriter, vtkSTLWriter, vtkIVWriter, and vtkGenericDataObjectWriter.
|
protected |
Definition at line 89 of file vtkWriter.h.