ParaView
|
filter used to generate text annotation from Python expressions. More...
#include <vtkPythonAnnotationFilter.h>
Public Types | |
typedef vtkTableAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | GetNumberOfTimeSteps () |
double | GetTimeStep (int index) |
virtual bool | GetTimeRangeValid () |
virtual double * | GetTimeRange () |
virtual void | GetTimeRange (double &, double &) |
virtual void | GetTimeRange (double [2]) |
virtual vtkDataObject * | GetCurrentInputDataObject () |
void | SetComputedAnnotationValue (const char *value) |
virtual void | SetExpression (const char *) |
Set the expression to evaluate. More... | |
virtual char * | GetExpression () |
Set the expression to evaluate. More... | |
virtual void | SetArrayAssociation (int) |
Set the input array association. More... | |
virtual int | GetArrayAssociation () |
Set the input array association. More... | |
virtual char * | GetComputedAnnotationValue () |
Get the value that is going to be printed to the output. More... | |
virtual bool | GetDataTimeValid () |
Get methods for use in annotation.py. More... | |
virtual double | GetDataTime () |
Get methods for use in annotation.py. More... | |
Static Public Member Functions | |
static vtkPythonAnnotationFilter * | New () |
static int | IsTypeOf (const char *type) |
static vtkPythonAnnotationFilter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPythonAnnotationFilter () | |
~vtkPythonAnnotationFilter () | |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual void | EvaluateExpression () |
Protected Attributes | |
char * | Expression |
char * | ComputedAnnotationValue |
int | ArrayAssociation |
filter used to generate text annotation from Python expressions.
vtkPythonAnnotationFilter is designed to generate vtkTableAlgorithm with a single string in it. The goal is that user will write a Python expression, similar to an expression in Python Calculator (vtkPythonCalculator). The generated result is converted to string and placed in the output.
The variables available in the expression evaluation scope are as follows:
Examples of valid expressions are:
Definition at line 43 of file vtkPythonAnnotationFilter.h.
typedef vtkTableAlgorithm vtkPythonAnnotationFilter::Superclass |
Definition at line 47 of file vtkPythonAnnotationFilter.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented in vtkAnnotateGlobalDataFilter, and vtkAnnotateAttributeDataFilter.
|
static |
|
virtual |
Reimplemented in vtkAnnotateGlobalDataFilter, and vtkAnnotateAttributeDataFilter.
|
static |
void vtkPythonAnnotationFilter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Set the expression to evaluate.
Here is a set of common expressions:
|
virtual |
Set the expression to evaluate.
Here is a set of common expressions:
|
virtual |
Set the input array association.
This dictates which array names are made available in the namespace by default. You can still use input.PointData['foo'] or input.CellData['bar'] explicitly to pick a specific array in your expression.
|
virtual |
Set the input array association.
This dictates which array names are made available in the namespace by default. You can still use input.PointData['foo'] or input.CellData['bar'] explicitly to pick a specific array in your expression.
|
virtual |
Get the value that is going to be printed to the output.
|
virtual |
Get methods for use in annotation.py.
The values are only valid during RequestData().
|
virtual |
Get methods for use in annotation.py.
The values are only valid during RequestData().
|
virtual |
|
inline |
Definition at line 89 of file vtkPythonAnnotationFilter.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void vtkPythonAnnotationFilter::SetComputedAnnotationValue | ( | const char * | value | ) |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in vtkAnnotateAttributeDataFilter, and vtkAnnotateGlobalDataFilter.
|
protected |
Definition at line 109 of file vtkPythonAnnotationFilter.h.
|
protected |
Definition at line 110 of file vtkPythonAnnotationFilter.h.
|
protected |
Definition at line 111 of file vtkPythonAnnotationFilter.h.