is a factory or creating a writer based on the data type information from the output port. More...
#include <vtkSMWriterFactory.h>
Public Types | |
typedef vtkSMObject | Superclass |
Public Types inherited from vtkSMObject | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | Initialize () |
Cleanup all registered prototypes. More... | |
void | RegisterPrototype (const char *xmlgroup, const char *xmlname) |
Register a prototype. More... | |
bool | CanWrite (vtkSMSourceProxy *, unsigned int outputport) |
Returns true if the data from the output port can be written at all. More... | |
vtkSMProxy * | CreateWriter (const char *filename, vtkSMSourceProxy *, unsigned int outputport, bool proxyname=false) |
Create a new writer proxy to write the data from the specified output port to the file specified, if possible. More... | |
vtkSMProxy * | CreateWriter (const char *filename, vtkSMSourceProxy *pxy) |
const char * | GetSupportedFileTypes (vtkSMSourceProxy *source, unsigned int outputport) |
Returns a formatted string with all supported file types. More... | |
const char * | GetSupportedFileTypes (vtkSMSourceProxy *source) |
const char * | GetSupportedWriterProxies (vtkSMSourceProxy *source, unsigned int outputport) |
A variation on GetSupportedFileTypes that obtains a list of prototype proxy names. More... | |
unsigned int | GetNumberOfRegisteredPrototypes () |
void | UpdateAvailableWriters () |
Every time a new proxy definition is added we check to see if it is a writer and then we add it to the list of available writers. More... | |
void | AddGroup (const char *groupName) |
Add/remove a group name to look for writers in. More... | |
void | RemoveGroup (const char *groupName) |
Add/remove a group name to look for writers in. More... | |
void | GetGroups (vtkStringList *groups) |
Add/remove a group name to look for writers in. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
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) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
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 *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
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) |
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 *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
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) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkSMWriterFactory * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMWriterFactory * | SafeDownCast (vtkObject *o) |
static void | AddWriterToWhitelist (const char *writerxmlgroup, const char *writerxmlname) |
This function is for ParaView based applications that only wish to expose a subset of the writers. More... | |
Static Public Member Functions inherited from vtkSMObject | |
static vtkSMObject * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMObject * | SafeDownCast (vtkObject *o) |
static std::string | CreatePrettyLabel (const std::string &name) |
Return a well-formated label using provided name by adding spaces between lower cases and upper cases: More... | |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkSMWriterFactory () | |
~vtkSMWriterFactory () override | |
Protected Member Functions inherited from vtkSMObject | |
vtkSMObject () | |
~vtkSMObject () override | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
is a factory or creating a writer based on the data type information from the output port.
vtkSMWriterFactory is a factory for creating a writer to write the data provided at an output port. This is done whenever a new proxy definition is added in the writers group.
Alternatively, one can register prototypes using RegisterPrototype
API. The proxy definitions for the writer proxies must provide hints that indicate the file extension and description for the writer.
Once the factory has been configured, the API to create writers, get available writers etc. can be used.
Definition at line 33 of file vtkSMWriterFactory.h.
Definition at line 37 of file vtkSMWriterFactory.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkSMObject.
Reimplemented from vtkSMObject.
|
static |
|
overridevirtual |
Reimplemented from vtkSMObject.
void vtkSMWriterFactory::Initialize | ( | ) |
Cleanup all registered prototypes.
Register a prototype.
bool vtkSMWriterFactory::CanWrite | ( | vtkSMSourceProxy * | , |
unsigned int | outputport | ||
) |
Returns true if the data from the output port can be written at all.
vtkSMProxy* vtkSMWriterFactory::CreateWriter | ( | const char * | filename, |
vtkSMSourceProxy * | , | ||
unsigned int | outputport, | ||
bool | proxyname = false |
||
) |
Create a new writer proxy to write the data from the specified output port to the file specified, if possible.
As internally UpdatePipeline() will be called on the source proxy, in order to prevent a double pipeline execution when you want to write a given timestep, you should call updatePipeline( time ) before the CreateWriter call. The proxybyname flag tells the factory to use the proxy name rather than a filename.extension to lookup the right proxy.
|
inline |
Definition at line 67 of file vtkSMWriterFactory.h.
const char* vtkSMWriterFactory::GetSupportedFileTypes | ( | vtkSMSourceProxy * | source, |
unsigned int | outputport | ||
) |
Returns a formatted string with all supported file types.
An example returned string would look like:
* "PVD Files (*.pvd);;VTK Files (*.vtk)" *
|
inline |
Definition at line 80 of file vtkSMWriterFactory.h.
const char* vtkSMWriterFactory::GetSupportedWriterProxies | ( | vtkSMSourceProxy * | source, |
unsigned int | outputport | ||
) |
A variation on GetSupportedFileTypes that obtains a list of prototype proxy names.
unsigned int vtkSMWriterFactory::GetNumberOfRegisteredPrototypes | ( | ) |
void vtkSMWriterFactory::UpdateAvailableWriters | ( | ) |
Every time a new proxy definition is added we check to see if it is a writer and then we add it to the list of available writers.
void vtkSMWriterFactory::AddGroup | ( | const char * | groupName | ) |
Add/remove a group name to look for writers in.
By default "writers" is included.
void vtkSMWriterFactory::RemoveGroup | ( | const char * | groupName | ) |
Add/remove a group name to look for writers in.
By default "writers" is included.
void vtkSMWriterFactory::GetGroups | ( | vtkStringList * | groups | ) |
Add/remove a group name to look for writers in.
By default "writers" is included.
|
static |
This function is for ParaView based applications that only wish to expose a subset of the writers.
If this function is never called, the reader factory will expose all the writers as it has in the past. However, if any writers are specified by passing their group name and reader name to this function, then only those writers will be available in any reader factories created by the application. This is intended to be called at the beginning of the application's execution before any sessions are created.