22 #ifndef vtkPythonCalculator_h 23 #define vtkPythonCalculator_h 42 vtkSetMacro(ArrayAssociation,
int);
43 vtkGetMacro(ArrayAssociation,
int);
52 vtkSetMacro(Expression, std::string);
53 vtkGetMacro(Expression, std::string);
61 vtkSetMacro(MultilineExpression, std::string);
62 vtkGetMacro(MultilineExpression, std::string);
69 vtkSetStringMacro(ArrayName);
70 vtkGetStringMacro(ArrayName);
78 vtkGetMacro(ResultArrayType,
int);
79 vtkSetMacro(ResultArrayType,
int);
88 vtkGetMacro(UseMultilineExpression,
bool);
89 vtkSetMacro(UseMultilineExpression,
bool);
95 static void ExecuteScript(
void*);
104 void Exec(
const std::string&);
121 bool UseMultilineExpression =
false;
123 char* ArrayName =
nullptr;
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)
std::string MultilineExpression
Evaluates a Python expression vtkPythonCalculator uses Python to calculate an expression.
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTKPVVTKEXTENSIONSFILTERSPYTHON_EXPORT
static vtkProgrammableFilter * New()
void operator=(const vtkObjectBase &)