28 #ifndef vtkPythonCalculator_h 29 #define vtkPythonCalculator_h 48 vtkSetMacro(ArrayAssociation,
int);
49 vtkGetMacro(ArrayAssociation,
int);
58 vtkSetMacro(Expression, std::string);
59 vtkGetMacro(Expression, std::string);
67 vtkSetMacro(MultilineExpression, std::string);
68 vtkGetMacro(MultilineExpression, std::string);
75 vtkSetStringMacro(ArrayName);
76 vtkGetStringMacro(ArrayName);
84 vtkGetMacro(ResultArrayType,
int);
85 vtkSetMacro(ResultArrayType,
int);
94 vtkGetMacro(UseMultilineExpression,
bool);
95 vtkSetMacro(UseMultilineExpression,
bool);
101 static void ExecuteScript(
void*);
110 void Exec(
const std::string&);
131 bool UseMultilineExpression =
false;
133 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 &)