VTK
|
Superclass for all pipeline executives in VTK. More...
#include <vtkExecutive.h>
Public Types | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkExecutive * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkAlgorithm * | GetAlgorithm () |
virtual int | UpdateInformation () |
int | GetNumberOfInputConnections (int port) |
virtual vtkInformation * | GetOutputInformation (int port) |
vtkInformationVector * | GetOutputInformation () |
vtkInformation * | GetInputInformation (int port, int connection) |
vtkInformationVector * | GetInputInformation (int port) |
vtkInformationVector ** | GetInputInformation () |
vtkExecutive * | GetInputExecutive (int port, int connection) |
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo) |
virtual int | ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime) |
virtual int | Update () |
virtual int | Update (int port) |
int | GetNumberOfInputPorts () |
int | GetNumberOfOutputPorts () |
virtual vtkDataObject * | GetOutputData (int port) |
virtual void | SetOutputData (int port, vtkDataObject *, vtkInformation *info) |
virtual void | SetOutputData (int port, vtkDataObject *) |
virtual vtkDataObject * | GetInputData (int port, int connection) |
virtual vtkDataObject * | GetInputData (int port, int connection, vtkInformationVector **inInfoVec) |
void | SetSharedInputInformation (vtkInformationVector **inInfoVec) |
void | SetSharedOutputInformation (vtkInformationVector *outInfoVec) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
virtual int | CallAlgorithm (vtkInformation *request, int direction, vtkInformationVector **inInfo, vtkInformationVector *outInfo) |
Public Member Functions inherited from vtkObject | |
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) |
Public Member Functions inherited from vtkObjectBase | |
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 () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkExecutive * | SafeDownCast (vtkObjectBase *o) |
static vtkInformationExecutivePortKey * | PRODUCER () |
static vtkInformationExecutivePortVectorKey * | CONSUMERS () |
static vtkInformationIntegerKey * | FROM_OUTPUT_PORT () |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Attributes | |
vtkAlgorithm * | Algorithm |
int | InAlgorithm |
vtkInformationVector ** | SharedInputInformation |
vtkInformationVector * | SharedOutputInformation |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Friends | |
class | vtkAlgorithmToExecutiveFriendship |
enum | { RequestUpstream, RequestDownstream } |
enum | { BeforeForward, AfterForward } |
static vtkInformationIntegerKey * | ALGORITHM_BEFORE_FORWARD () |
static vtkInformationIntegerKey * | ALGORITHM_AFTER_FORWARD () |
static vtkInformationIntegerKey * | ALGORITHM_DIRECTION () |
static vtkInformationIntegerKey * | FORWARD_DIRECTION () |
static vtkInformationKeyVectorKey * | KEYS_TO_COPY () |
Superclass for all pipeline executives in VTK.
vtkExecutive is the superclass for all pipeline executives in VTK. A VTK executive is responsible for controlling one instance of vtkAlgorithm. A pipeline consists of one or more executives that control data flow. Every reader, source, writer, or data processing algorithm in the pipeline is implemented in an instance of vtkAlgorithm.
Definition at line 51 of file vtkExecutive.h.
typedef vtkObject vtkExecutive::Superclass |
Definition at line 54 of file vtkExecutive.h.
anonymous enum |
Keys to program vtkExecutive::ProcessRequest with the default behavior for unknown requests.
Enumerator | |
---|---|
RequestUpstream | |
RequestDownstream |
Definition at line 180 of file vtkExecutive.h.
anonymous enum |
Keys to program vtkExecutive::ProcessRequest with the default behavior for unknown requests.
Enumerator | |
---|---|
BeforeForward | |
AfterForward |
Definition at line 181 of file vtkExecutive.h.
|
protected |
|
protected |
|
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 vtkObject.
Reimplemented in vtkCompositeDataPipeline, vtkDemandDrivenPipeline, vtkStreamingDemandDrivenPipeline, vtkThreadedCompositeDataPipeline, vtkCachedStreamingDemandDrivenPipeline, and vtkImageImportExecutive.
|
static |
|
protectedvirtual |
Reimplemented from vtkObject.
Reimplemented in vtkCompositeDataPipeline, vtkDemandDrivenPipeline, vtkStreamingDemandDrivenPipeline, vtkThreadedCompositeDataPipeline, vtkCachedStreamingDemandDrivenPipeline, and vtkImageImportExecutive.
vtkExecutive* vtkExecutive::NewInstance | ( | ) | const |
|
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 vtkObject.
Reimplemented in vtkStreamingDemandDrivenPipeline, and vtkThreadedCompositeDataPipeline.
vtkAlgorithm* vtkExecutive::GetAlgorithm | ( | ) |
Get the algorithm to which this executive has been assigned.
|
virtual |
Generalized interface for asking the executive to fulfill pipeline requests.
Reimplemented in vtkDemandDrivenPipeline, vtkStreamingDemandDrivenPipeline, and vtkImageImportExecutive.
|
virtual |
A special version of ProcessRequest meant specifically for the pipeline modified time request. This is an optimization since the request is called so often and it travels the full length of the pipeline. We augment the signature with method arguments containing the common information, specifically the output port through which the request was made and the resulting modified time. Note that unlike ProcessRequest the request information object may be NULL for this method. It also does not contain a request identifcation key because the request is known from the method name.
Reimplemented in vtkDemandDrivenPipeline.
|
inlinevirtual |
Bring the output information up to date.
Reimplemented in vtkDemandDrivenPipeline.
Definition at line 87 of file vtkExecutive.h.
|
virtual |
Bring the algorithm's outputs up-to-date. Returns 1 for success and 0 for failure.
Reimplemented in vtkDemandDrivenPipeline, vtkStreamingDemandDrivenPipeline, and vtkCachedStreamingDemandDrivenPipeline.
Bring the algorithm's outputs up-to-date. Returns 1 for success and 0 for failure.
Reimplemented in vtkDemandDrivenPipeline, vtkStreamingDemandDrivenPipeline, and vtkCachedStreamingDemandDrivenPipeline.
int vtkExecutive::GetNumberOfInputPorts | ( | ) |
Get the number of input/output ports for the algorithm associated with this executive. Returns 0 if no algorithm is set.
int vtkExecutive::GetNumberOfOutputPorts | ( | ) |
Get the number of input/output ports for the algorithm associated with this executive. Returns 0 if no algorithm is set.
Get the number of input connections on the given port.
|
virtual |
Get the pipeline information object for the given output port.
vtkInformationVector* vtkExecutive::GetOutputInformation | ( | ) |
Get the pipeline information object for all output ports.
vtkInformation* vtkExecutive::GetInputInformation | ( | int | port, |
int | connection | ||
) |
Get the pipeline information for the given input connection.
vtkInformationVector* vtkExecutive::GetInputInformation | ( | int | port | ) |
Get the pipeline information vectors for the given input port.
vtkInformationVector** vtkExecutive::GetInputInformation | ( | ) |
Get the pipeline information vectors for all inputs
vtkExecutive* vtkExecutive::GetInputExecutive | ( | int | port, |
int | connection | ||
) |
Get the executive managing the given input connection.
|
virtual |
Get/Set the data object for an output port of the algorithm.
|
virtual |
Get/Set the data object for an output port of the algorithm.
|
virtual |
Get/Set the data object for an output port of the algorithm.
|
virtual |
Get the data object for an input port of the algorithm.
|
virtual |
Get the data object for an input port of the algorithm.
void vtkExecutive::SetSharedInputInformation | ( | vtkInformationVector ** | inInfoVec | ) |
Get the output port that produces the given data object. Works only if the data was producer by this executive's algorithm. virtual vtkAlgorithmOutput* GetProducerPort(vtkDataObject*);
Set a pointer to an outside instance of input or output information vectors. No references are held to the given vectors, and setting this does not change the executive object modification time. This is a preliminary interface to use in implementing filters with internal pipelines, and may change without notice when a future interface is created.
void vtkExecutive::SetSharedOutputInformation | ( | vtkInformationVector * | outInfoVec | ) |
Get the output port that produces the given data object. Works only if the data was producer by this executive's algorithm. virtual vtkAlgorithmOutput* GetProducerPort(vtkDataObject*);
Set a pointer to an outside instance of input or output information vectors. No references are held to the given vectors, and setting this does not change the executive object modification time. This is a preliminary interface to use in implementing filters with internal pipelines, and may change without notice when a future interface is created.
|
virtual |
Participate in garbage collection.
Reimplemented from vtkObjectBase.
|
virtual |
Participate in garbage collection.
Reimplemented from vtkObjectBase.
|
static |
Information key to store the executive/port number producing an information object.
|
static |
Information key to store the executive/port number pairs consuming an information object.
|
static |
Information key to store the output port number from which a request is made.
|
static |
Keys to program vtkExecutive::ProcessRequest with the default behavior for unknown requests.
|
static |
Keys to program vtkExecutive::ProcessRequest with the default behavior for unknown requests.
|
static |
Keys to program vtkExecutive::ProcessRequest with the default behavior for unknown requests.
|
static |
Keys to program vtkExecutive::ProcessRequest with the default behavior for unknown requests.
|
static |
Keys to program vtkExecutive::ProcessRequest with the default behavior for unknown requests.
|
virtual |
An API to CallAlgorithm that allows you to pass in the info objects to be used
Reimplemented in vtkThreadedCompositeDataPipeline.
|
protected |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in vtkCompositeDataPipeline.
|
protectedvirtual |
Reimplemented in vtkStreamingDemandDrivenPipeline, and vtkCompositeDataPipeline.
|
protectedpure virtual |
Implemented in vtkStreamingDemandDrivenPipeline, vtkCompositeDataPipeline, and vtkDemandDrivenPipeline.
|
protectedpure virtual |
Implemented in vtkDemandDrivenPipeline.
|
protectedvirtual |
Reimplemented from vtkObjectBase.
|
protectedvirtual |
|
friend |
Definition at line 249 of file vtkExecutive.h.
|
protected |
Definition at line 230 of file vtkExecutive.h.
|
protected |
Definition at line 233 of file vtkExecutive.h.
|
protected |
Definition at line 238 of file vtkExecutive.h.
|
protected |
Definition at line 239 of file vtkExecutive.h.