VTK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
vtkPythonArgs Class Reference

#include <vtkPythonArgs.h>

Public Member Functions

void Reset ()
 
bool CheckArgCount (int nmin, int nmax)
 
bool CheckArgCount (int n)
 
bool IsBound ()
 
bool IsPureVirtual ()
 
bool NoArgsLeft ()
 
int GetArgSize (int i)
 
bool GetBuffer (void *&v, Py_buffer *buf)
 
bool GetBuffer (const void *&v, Py_buffer *buf)
 
 vtkPythonArgs (PyObject *self, PyObject *args, const char *methodname)
 
 vtkPythonArgs (PyObject *args, const char *methodname)
 
bool GetPythonObject (PyObject *&v)
 
bool GetPythonObject (PyObject *o, PyObject *&v)
 
template<class T >
bool GetVTKObject (T *&v, const char *classname)
 
template<class T >
bool GetVTKObject (PyObject *o, T *&v, const char *classname)
 
bool GetArray (float *v, int n)
 
bool GetArray (double *v, int n)
 
bool GetArray (bool *v, int n)
 
bool GetArray (char *v, int n)
 
bool GetArray (signed char *v, int n)
 
bool GetArray (unsigned char *v, int n)
 
bool GetArray (short *v, int n)
 
bool GetArray (unsigned short *v, int n)
 
bool GetArray (int *v, int n)
 
bool GetArray (unsigned int *v, int n)
 
bool GetArray (long *v, int n)
 
bool GetArray (unsigned long *v, int n)
 
bool GetArray (long long *v, int n)
 
bool GetArray (unsigned long long *v, int n)
 
bool GetNArray (float *v, int ndims, const int *dims)
 
bool GetNArray (double *v, int ndims, const int *dims)
 
bool GetNArray (bool *v, int ndims, const int *dims)
 
bool GetNArray (char *v, int ndims, const int *dims)
 
bool GetNArray (signed char *v, int ndims, const int *dims)
 
bool GetNArray (unsigned char *v, int ndims, const int *dims)
 
bool GetNArray (short *v, int ndims, const int *dims)
 
bool GetNArray (unsigned short *v, int ndims, const int *dims)
 
bool GetNArray (int *v, int ndims, const int *dims)
 
bool GetNArray (unsigned int *v, int ndims, const int *dims)
 
bool GetNArray (long *v, int ndims, const int *dims)
 
bool GetNArray (unsigned long *v, int ndims, const int *dims)
 
bool GetNArray (long long *v, int ndims, const int *dims)
 
bool GetNArray (unsigned long long *v, int ndims, const int *dims)
 
bool SetArgValue (int i, const std::string &v)
 
bool SetArgValue (int i, const vtkUnicodeString &v)
 
bool SetArgValue (int i, char v)
 
bool SetArgValue (int i, float v)
 
bool SetArgValue (int i, double v)
 
bool SetArgValue (int i, bool v)
 
bool SetArgValue (int i, signed char v)
 
bool SetArgValue (int i, unsigned char v)
 
bool SetArgValue (int i, short v)
 
bool SetArgValue (int i, unsigned short v)
 
bool SetArgValue (int i, int v)
 
bool SetArgValue (int i, unsigned int v)
 
bool SetArgValue (int i, long v)
 
bool SetArgValue (int i, unsigned long v)
 
bool SetArgValue (int i, long long v)
 
bool SetArgValue (int i, unsigned long long v)
 
bool SetArray (int i, const float *v, int n)
 
bool SetArray (int i, const double *v, int n)
 
bool SetArray (int i, const bool *v, int n)
 
bool SetArray (int i, const char *v, int n)
 
bool SetArray (int i, const signed char *v, int n)
 
bool SetArray (int i, const unsigned char *v, int n)
 
bool SetArray (int i, const short *v, int n)
 
bool SetArray (int i, const unsigned short *v, int n)
 
bool SetArray (int i, const int *v, int n)
 
bool SetArray (int i, const unsigned int *v, int n)
 
bool SetArray (int i, const long *v, int n)
 
bool SetArray (int i, const unsigned long *v, int n)
 
bool SetArray (int i, const long long *v, int n)
 
bool SetArray (int i, const unsigned long long *v, int n)
 
bool SetNArray (int i, const float *v, int n, const int *d)
 
bool SetNArray (int i, const double *v, int n, const int *d)
 
bool SetNArray (int i, const bool *v, int n, const int *d)
 
bool SetNArray (int i, const char *v, int n, const int *d)
 
bool SetNArray (int i, const signed char *v, int n, const int *d)
 
bool SetNArray (int i, const unsigned char *v, int n, const int *d)
 
bool SetNArray (int i, const short *v, int n, const int *d)
 
bool SetNArray (int i, const unsigned short *v, int n, const int *d)
 
bool SetNArray (int i, const int *v, int n, const int *d)
 
bool SetNArray (int i, const unsigned int *v, int n, const int *d)
 
bool SetNArray (int i, const long *v, int n, const int *d)
 
bool SetNArray (int i, const unsigned long *v, int n, const int *d)
 
bool SetNArray (int i, const long long *v, int n, const int *d)
 
bool SetNArray (int i, const unsigned long long *v, int n, const int *d)
 

Static Public Member Functions

static vtkObjectBaseGetSelfPointer (PyObject *self, PyObject *args)
 
static void * GetSelfSpecialPointer (PyObject *self, PyObject *args)
 
static void * GetSelfSpecialPointer (PyObject *self)
 
static bool ErrorOccurred ()
 
static bool GetBuffer (PyObject *o, void *&v, Py_buffer *buf)
 
static bool GetBuffer (PyObject *o, const void *&v, Py_buffer *buf)
 
static PyObjectBuildNone ()
 
static PyObjectBuildVTKObject (const void *v)
 
static PyObjectBuildSpecialObject (const void *v, const char *classname)
 
static PyObjectBuildEnumValue (int v, const char *enumname)
 
static PyObjectBuildSIPEnumValue (int v, const char *classname)
 
static PyObjectBuildValue (const void *v)
 
static PyObjectBuildValue (char v)
 
static PyObjectBuildBytes (const char *v, int n)
 
static bool ArgCountError (int n, const char *name)
 
static PyObjectBuildSIPObject (const void *v, const char *classname, bool created)
 
static PyObjectBuildValue (const char *v, size_t l)
 
static PyObjectBuildValue (const char *v)
 
static PyObjectBuildValue (const std::string &v)
 
static PyObjectBuildValue (const vtkUnicodeString &v)
 
static PyObjectBuildValue (double v)
 
static PyObjectBuildValue (bool v)
 
static PyObjectBuildValue (int v)
 
static PyObjectBuildValue (unsigned int v)
 
static PyObjectBuildValue (long v)
 
static PyObjectBuildValue (unsigned long v)
 
static PyObjectBuildValue (long long v)
 
static PyObjectBuildValue (unsigned long long v)
 
static PyObjectBuildTuple (const float *v, int n)
 
static PyObjectBuildTuple (const double *v, int n)
 
static PyObjectBuildTuple (const bool *v, int n)
 
static PyObjectBuildTuple (const signed char *v, int n)
 
static PyObjectBuildTuple (const unsigned char *v, int n)
 
static PyObjectBuildTuple (const short *v, int n)
 
static PyObjectBuildTuple (const unsigned short *v, int n)
 
static PyObjectBuildTuple (const int *v, int n)
 
static PyObjectBuildTuple (const unsigned int *v, int n)
 
static PyObjectBuildTuple (const long *v, int n)
 
static PyObjectBuildTuple (const unsigned long *v, int n)
 
static PyObjectBuildTuple (const long long *v, int n)
 
static PyObjectBuildTuple (const unsigned long long *v, int n)
 
template<class T >
static void SaveArray (const T *a, T *b, int n)
 
template<class T >
static bool ArrayHasChanged (const T *a, const T *b, int n)
 
static int GetArgCount (PyObject *args)
 
static int GetArgCount (PyObject *self, PyObject *args)
 

Protected Member Functions

bool PureVirtualError ()
 
bool ArgCountError (int m, int n)
 
bool RefineArgTypeError (int i)
 

Static Protected Member Functions

static PyObjectGetSelfFromFirstArg (PyObject *self, PyObject *args)
 
template<class T >
bool GetSpecialObject (T *&v, PyObject *&o, const char *classname)
 
template<class T >
static bool GetSpecialObject (PyObject *arg, T *&v, PyObject *&o, const char *classname)
 
template<class T >
bool GetSpecialObject (T *&v, const char *classname)
 
template<class T >
static bool GetSpecialObject (PyObject *o, T *&v, const char *classname)
 
template<class T >
bool GetEnumValue (T &v, const char *enumname)
 
template<class T >
static bool GetEnumValue (PyObject *o, T &v, const char *enumname)
 
template<class T >
bool GetSIPObject (T *&v, const char *classname)
 
template<class T >
static bool GetSIPObject (PyObject *o, T *&v, const char *classname)
 
template<class T >
bool GetSIPEnumValue (T &v, const char *enumname)
 
template<class T >
static bool GetSIPEnumValue (PyObject *o, T &v, const char *enumname)
 
bool GetFunction (PyObject *&o)
 
static bool GetFunction (PyObject *arg, PyObject *&o)
 
bool GetValue (const char *&v)
 
bool GetValue (char *&v)
 
bool GetValue (std::string &v)
 
bool GetValue (vtkUnicodeString &v)
 
static bool GetValue (PyObject *o, const char *&v)
 
static bool GetValue (PyObject *o, char *&v)
 
static bool GetValue (PyObject *o, std::string &v)
 
static bool GetValue (PyObject *o, vtkUnicodeString &v)
 
bool GetValue (char &v)
 
static bool GetValue (PyObject *o, char &v)
 
bool GetValue (float &v)
 
bool GetValue (double &v)
 
bool GetValue (bool &v)
 
bool GetValue (signed char &v)
 
bool GetValue (unsigned char &v)
 
bool GetValue (short &v)
 
bool GetValue (unsigned short &v)
 
bool GetValue (int &v)
 
bool GetValue (unsigned int &v)
 
bool GetValue (long &v)
 
bool GetValue (unsigned long &v)
 
bool GetValue (long long &v)
 
bool GetValue (unsigned long long &v)
 
static bool GetValue (PyObject *o, float &v)
 
static bool GetValue (PyObject *o, double &v)
 
static bool GetValue (PyObject *o, bool &v)
 
static bool GetValue (PyObject *o, signed char &v)
 
static bool GetValue (PyObject *o, unsigned char &v)
 
static bool GetValue (PyObject *o, short &v)
 
static bool GetValue (PyObject *o, unsigned short &v)
 
static bool GetValue (PyObject *o, int &v)
 
static bool GetValue (PyObject *o, unsigned int &v)
 
static bool GetValue (PyObject *o, long &v)
 
static bool GetValue (PyObject *o, unsigned long &v)
 
static bool GetValue (PyObject *o, long long &v)
 
static bool GetValue (PyObject *o, unsigned long long &v)
 
static PyObjectGetArgAsPythonObject (PyObject *o, bool &valid)
 
PyObjectGetArgAsPythonObject (bool &valid)
 
static vtkObjectBaseGetArgAsVTKObject (PyObject *o, const char *classname, bool &valid)
 
vtkObjectBaseGetArgAsVTKObject (const char *classname, bool &valid)
 
static void * GetArgAsSpecialObject (PyObject *o, const char *classname, PyObject **newobj)
 
void * GetArgAsSpecialObject (const char *classname, PyObject **newobj)
 
static int GetArgAsEnum (PyObject *o, const char *enumname, bool &valid)
 
int GetArgAsEnum (const char *enumname, bool &valid)
 
static void * GetArgAsSIPObject (PyObject *o, const char *classname, bool &valid)
 
void * GetArgAsSIPObject (const char *classname, bool &valid)
 
static int GetArgAsSIPEnum (PyObject *o, const char *classname, bool &valid)
 
int GetArgAsSIPEnum (const char *classname, bool &valid)
 

Detailed Description

Definition at line 40 of file vtkPythonArgs.h.

Constructor & Destructor Documentation

vtkPythonArgs::vtkPythonArgs ( PyObject self,
PyObject args,
const char *  methodname 
)
inline

Constructor for parsing args of a vtkObjectBase object.

Definition at line 46 of file vtkPythonArgs.h.

vtkPythonArgs::vtkPythonArgs ( PyObject args,
const char *  methodname 
)
inline

Constructor for parsing method args.

Definition at line 56 of file vtkPythonArgs.h.

Member Function Documentation

void vtkPythonArgs::Reset ( )
inline

Reset in order to re-parse the args.

Definition at line 65 of file vtkPythonArgs.h.

vtkObjectBase * vtkPythonArgs::GetSelfPointer ( PyObject self,
PyObject args 
)
inlinestatic

Get a pointer to the self object, converted to its C++ type. Returns NULL and sets a TypeError if the type is wrong. If "self" is a class type, pull the object from the first arg.

Definition at line 532 of file vtkPythonArgs.h.

void * vtkPythonArgs::GetSelfSpecialPointer ( PyObject self,
PyObject args 
)
inlinestatic

Get a pointer to the self object, converted to its C++ type. Returns NULL and sets a TypeError if the type is wrong. If "self" is a type, pull the object from the first arg.

Definition at line 543 of file vtkPythonArgs.h.

void * vtkPythonArgs::GetSelfSpecialPointer ( PyObject self)
inlinestatic

Get a pointer to the self object, converted to its C++ type. Always succeeds.

Definition at line 554 of file vtkPythonArgs.h.

bool vtkPythonArgs::CheckArgCount ( int  nmin,
int  nmax 
)
inline

Verify the arg count for a method with optional arguments.

Definition at line 564 of file vtkPythonArgs.h.

bool vtkPythonArgs::CheckArgCount ( int  n)
inline

Verify the arg count. Sets a python exception on failure.

Definition at line 577 of file vtkPythonArgs.h.

bool vtkPythonArgs::IsBound ( )
inline

Returns true if self is an object, false if self is a class.

Definition at line 88 of file vtkPythonArgs.h.

bool vtkPythonArgs::IsPureVirtual ( )
inline

Raise an exception if method call is not bound.

Definition at line 592 of file vtkPythonArgs.h.

bool vtkPythonArgs::ErrorOccurred ( )
inlinestatic

Check if an error has occurred.

Definition at line 606 of file vtkPythonArgs.h.

bool vtkPythonArgs::NoArgsLeft ( )
inline

Check if there are any args left.

Definition at line 97 of file vtkPythonArgs.h.

int vtkPythonArgs::GetArgSize ( int  i)

Get the size of an arg, if it is a sequence. If no size is available, or if the arg is out of range, then it returns 0 but doesn't set error.

bool vtkPythonArgs::GetPythonObject ( PyObject *&  v)
inline

Get the next argument as a naked Python object.

Definition at line 106 of file vtkPythonArgs.h.

bool vtkPythonArgs::GetPythonObject ( PyObject o,
PyObject *&  v 
)
inline

Get the next argument as a naked Python object.

Definition at line 110 of file vtkPythonArgs.h.

template<class T >
bool vtkPythonArgs::GetVTKObject ( T *&  v,
const char *  classname 
)
inline

Get the next argument as a vtkObjectBase derived type. It uses a C-style cast instead of a static_cast, which means that it works on incomplete types, and also means that it will give undefined results if "T" uses multiple inheritance.

Definition at line 122 of file vtkPythonArgs.h.

template<class T >
bool vtkPythonArgs::GetVTKObject ( PyObject o,
T *&  v,
const char *  classname 
)
inline

Get the next argument as a vtkObjectBase derived type. It uses a C-style cast instead of a static_cast, which means that it works on incomplete types, and also means that it will give undefined results if "T" uses multiple inheritance.

Definition at line 127 of file vtkPythonArgs.h.

template<class T >
bool vtkPythonArgs::GetSpecialObject ( T *&  v,
PyObject *&  o,
const char *  classname 
)
inline

Get the next argument as a special object. If a constructor was needed to convert the arg, the constructed object will be returned in "o" and must be freed after "v" is used.

Definition at line 138 of file vtkPythonArgs.h.

template<class T >
static bool vtkPythonArgs::GetSpecialObject ( PyObject arg,
T *&  v,
PyObject *&  o,
const char *  classname 
)
inlinestatic

Get the next argument as a special object. If a constructor was needed to convert the arg, the constructed object will be returned in "o" and must be freed after "v" is used.

Definition at line 142 of file vtkPythonArgs.h.

template<class T >
bool vtkPythonArgs::GetSpecialObject ( T *&  v,
const char *  classname 
)
inline

Get the next argument as a special object. Use this if the arg is a non-const ref, as it will disallow conversion.

Definition at line 153 of file vtkPythonArgs.h.

template<class T >
static bool vtkPythonArgs::GetSpecialObject ( PyObject o,
T *&  v,
const char *  classname 
)
inlinestatic

Get the next argument as a special object. Use this if the arg is a non-const ref, as it will disallow conversion.

Definition at line 157 of file vtkPythonArgs.h.

template<class T >
bool vtkPythonArgs::GetEnumValue ( T &  v,
const char *  enumname 
)
inline

Get the next argument as an enum value.

Definition at line 166 of file vtkPythonArgs.h.

template<class T >
static bool vtkPythonArgs::GetEnumValue ( PyObject o,
T &  v,
const char *  enumname 
)
inlinestatic

Get the next argument as an enum value.

Definition at line 171 of file vtkPythonArgs.h.

template<class T >
bool vtkPythonArgs::GetSIPObject ( T *&  v,
const char *  classname 
)
inline

Get the next argument as a SIP object.

Definition at line 180 of file vtkPythonArgs.h.

template<class T >
static bool vtkPythonArgs::GetSIPObject ( PyObject o,
T *&  v,
const char *  classname 
)
inlinestatic

Get the next argument as a SIP object.

Definition at line 185 of file vtkPythonArgs.h.

template<class T >
bool vtkPythonArgs::GetSIPEnumValue ( T &  v,
const char *  enumname 
)
inline

Get the next argument as a SIP enum value.

Definition at line 194 of file vtkPythonArgs.h.

template<class T >
static bool vtkPythonArgs::GetSIPEnumValue ( PyObject o,
T &  v,
const char *  enumname 
)
inlinestatic

Get the next argument as a SIP enum value.

Definition at line 199 of file vtkPythonArgs.h.

bool vtkPythonArgs::GetFunction ( PyObject *&  o)

Get the arguments needed for a SetExecuteMethod or a similar method that requires a function-pointer argument.

static bool vtkPythonArgs::GetFunction ( PyObject arg,
PyObject *&  o 
)
static

Get the arguments needed for a SetExecuteMethod or a similar method that requires a function-pointer argument.

bool vtkPythonArgs::GetBuffer ( void *&  v,
Py_buffer buf 
)
static bool vtkPythonArgs::GetBuffer ( PyObject o,
void *&  v,
Py_buffer buf 
)
static
bool vtkPythonArgs::GetBuffer ( const void *&  v,
Py_buffer buf 
)
static bool vtkPythonArgs::GetBuffer ( PyObject o,
const void *&  v,
Py_buffer buf 
)
static
bool vtkPythonArgs::GetValue ( const char *&  v)

Get the next argument as a string.

static bool vtkPythonArgs::GetValue ( PyObject o,
const char *&  v 
)
static

Get the next argument as a string.

bool vtkPythonArgs::GetValue ( char *&  v)

Get the next argument as a string.

static bool vtkPythonArgs::GetValue ( PyObject o,
char *&  v 
)
static

Get the next argument as a string.

bool vtkPythonArgs::GetValue ( std::string &  v)

Get the next argument as a string.

static bool vtkPythonArgs::GetValue ( PyObject o,
std::string &  v 
)
static

Get the next argument as a string.

bool vtkPythonArgs::GetValue ( vtkUnicodeString v)

Get the next argument as a string.

static bool vtkPythonArgs::GetValue ( PyObject o,
vtkUnicodeString v 
)
static

Get the next argument as a string.

bool vtkPythonArgs::GetValue ( char &  v)

Get the next string arg as a character.

static bool vtkPythonArgs::GetValue ( PyObject o,
char &  v 
)
static

Get the next string arg as a character.

bool vtkPythonArgs::GetValue ( float v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
float v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( double v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
double v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( bool &  v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
bool &  v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( signed char &  v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
signed char &  v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( unsigned char &  v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
unsigned char &  v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( short &  v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
short &  v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( unsigned short &  v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
unsigned short &  v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( int v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
int v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( unsigned int v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
unsigned int v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( long &  v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
long &  v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( unsigned long &  v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
unsigned long &  v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( long long &  v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
long long &  v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetValue ( unsigned long long &  v)

Get the next argument. Sets a TypeError on failure.

static bool vtkPythonArgs::GetValue ( PyObject o,
unsigned long long &  v 
)
static

Get the next argument. Sets a TypeError on failure.

bool vtkPythonArgs::GetArray ( float v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( double v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( bool *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( char *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( signed char *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( unsigned char *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( short *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( unsigned short *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( int v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( unsigned int v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( long *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( unsigned long *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( long long *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetArray ( unsigned long long *  v,
int  n 
)

Get the next argument as an array.

bool vtkPythonArgs::GetNArray ( float v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( double v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( bool *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( char *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( signed char *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( unsigned char *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( short *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( unsigned short *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( int v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( unsigned int v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( long *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( unsigned long *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( long long *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::GetNArray ( unsigned long long *  v,
int  ndims,
const int dims 
)

Get the next argument as a multi-dimensional array.

bool vtkPythonArgs::SetArgValue ( int  i,
const std::string &  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
const vtkUnicodeString v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
char  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
float  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
double  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
bool  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
signed char  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
unsigned char  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
short  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
unsigned short  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
int  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
unsigned int  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
long  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
unsigned long  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
long long  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArgValue ( int  i,
unsigned long long  v 
)

Set the value of an argument if it is an assignable type.

bool vtkPythonArgs::SetArray ( int  i,
const float v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const double v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const bool *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const char *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const signed char *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const unsigned char *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const short *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const unsigned short *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const int v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const unsigned int v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const long *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const unsigned long *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const long long *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetArray ( int  i,
const unsigned long long *  v,
int  n 
)

Set the values in an array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const float v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const double v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const bool *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const char *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const signed char *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const unsigned char *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const short *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const unsigned short *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const int v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const unsigned int v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const long *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const unsigned long *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const long long *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

bool vtkPythonArgs::SetNArray ( int  i,
const unsigned long long *  v,
int  n,
const int d 
)

Set the values in a multi-dimensional array argument.

PyObject * vtkPythonArgs::BuildNone ( )
inlinestatic

Build a value of None.

Definition at line 615 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildVTKObject ( const void *  v)
inlinestatic

Build a vtkObjectBase object, use GetClassName() to get its type. If a null pointer is given, then None will be returned.

Definition at line 622 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildSpecialObject ( const void *  v,
const char *  classname 
)
inlinestatic

Build a non-vtkObjectBase object of the specified type.

Definition at line 629 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildEnumValue ( int  v,
const char *  enumname 
)
inlinestatic

Build an enum value object of the specified type.

Definition at line 636 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildSIPObject ( const void *  v,
const char *  classname,
bool  created 
)
inlinestatic

Build a SIP object of the specified type. Set "created" to true if the object was just created with new.

Definition at line 643 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildSIPEnumValue ( int  v,
const char *  classname 
)
inlinestatic

Build a SIP enum object.

Definition at line 650 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( const void *  v)
inlinestatic

Create a mangled string containing a memory address.

Definition at line 657 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( const char *  v,
size_t  l 
)
inlinestatic

Build a string return value.

Definition at line 669 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( const char *  v)
inlinestatic

Build a string return value.

Definition at line 689 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( const std::string &  v)
inlinestatic

Build a string return value.

Definition at line 700 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( const vtkUnicodeString v)
inlinestatic

Build a string return value.

Definition at line 706 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( char  v)
inlinestatic

Build a char return value.

Definition at line 718 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( double  v)
inlinestatic

Build a numeric return value.

Definition at line 727 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( bool  v)
inlinestatic

Build a numeric return value.

Definition at line 733 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( int  v)
inlinestatic

Build a numeric return value.

Definition at line 739 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( unsigned int  v)
inlinestatic

Build a numeric return value.

Definition at line 745 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( long  v)
inlinestatic

Build a numeric return value.

Definition at line 759 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( unsigned long  v)
inlinestatic

Build a numeric return value.

Definition at line 765 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( long long  v)
inlinestatic

Build a numeric return value.

Definition at line 775 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildValue ( unsigned long long  v)
inlinestatic

Build a numeric return value.

Definition at line 781 of file vtkPythonArgs.h.

PyObject * vtkPythonArgs::BuildBytes ( const char *  v,
int  n 
)
inlinestatic

Build a bytes object (or string).

Definition at line 787 of file vtkPythonArgs.h.

static PyObject* vtkPythonArgs::BuildTuple ( const float v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const double v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const bool *  v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const signed char *  v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const unsigned char *  v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const short *  v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const unsigned short *  v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const int v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const unsigned int v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const long *  v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const unsigned long *  v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const long long *  v,
int  n 
)
static

Build a tuple for a return value.

static PyObject* vtkPythonArgs::BuildTuple ( const unsigned long long *  v,
int  n 
)
static

Build a tuple for a return value.

template<class T >
static void vtkPythonArgs::SaveArray ( const T *  a,
T *  b,
int  n 
)
inlinestatic

Copy an array.

Definition at line 430 of file vtkPythonArgs.h.

template<class T >
static bool vtkPythonArgs::ArrayHasChanged ( const T *  a,
const T *  b,
int  n 
)
inlinestatic

Check if an array has changed.

Definition at line 438 of file vtkPythonArgs.h.

static int vtkPythonArgs::GetArgCount ( PyObject args)
inlinestatic

Get the argument count.

Definition at line 446 of file vtkPythonArgs.h.

static int vtkPythonArgs::GetArgCount ( PyObject self,
PyObject args 
)
inlinestatic

Get the argument count for a method that might be unbound.

Definition at line 452 of file vtkPythonArgs.h.

static bool vtkPythonArgs::ArgCountError ( int  n,
const char *  name 
)
static

Raise a type error just saying that the arg count is wrong.

static PyObject* vtkPythonArgs::GetSelfFromFirstArg ( PyObject self,
PyObject args 
)
staticprotected

Get the "self" object from the first argument.

PyObject* vtkPythonArgs::GetArgAsPythonObject ( bool &  valid)
protected

Get the next argument as an object of the given type.

static PyObject* vtkPythonArgs::GetArgAsPythonObject ( PyObject o,
bool &  valid 
)
staticprotected

Get the next argument as an object of the given type.

vtkObjectBase* vtkPythonArgs::GetArgAsVTKObject ( const char *  classname,
bool &  valid 
)
protected

Get the next argument as an object of the given type.

static vtkObjectBase* vtkPythonArgs::GetArgAsVTKObject ( PyObject o,
const char *  classname,
bool &  valid 
)
staticprotected

Get the next argument as an object of the given type.

void* vtkPythonArgs::GetArgAsSpecialObject ( const char *  classname,
PyObject **  newobj 
)
protected

Get the next argument as an object of the given type.

static void* vtkPythonArgs::GetArgAsSpecialObject ( PyObject o,
const char *  classname,
PyObject **  newobj 
)
staticprotected

Get the next argument as an object of the given type.

int vtkPythonArgs::GetArgAsEnum ( const char *  enumname,
bool &  valid 
)
protected

Get the next argument as an object of the given type.

static int vtkPythonArgs::GetArgAsEnum ( PyObject o,
const char *  enumname,
bool &  valid 
)
staticprotected

Get the next argument as an object of the given type.

void* vtkPythonArgs::GetArgAsSIPObject ( const char *  classname,
bool &  valid 
)
protected

Get the next argument as an object of the given type.

static void* vtkPythonArgs::GetArgAsSIPObject ( PyObject o,
const char *  classname,
bool &  valid 
)
staticprotected

Get the next argument as an object of the given type.

int vtkPythonArgs::GetArgAsSIPEnum ( const char *  classname,
bool &  valid 
)
protected

Get the next argument as an object of the given type.

static int vtkPythonArgs::GetArgAsSIPEnum ( PyObject o,
const char *  classname,
bool &  valid 
)
staticprotected

Get the next argument as an object of the given type.

bool vtkPythonArgs::PureVirtualError ( )
protected

Raise a TypeError if a virtual method call was called.

bool vtkPythonArgs::ArgCountError ( int  m,
int  n 
)
protected

Raise an TypeError stating that the arg count is incorrect.

bool vtkPythonArgs::RefineArgTypeError ( int  i)
protected

Prefix a TypeError that has occurred with the arg number.


The documentation for this class was generated from the following file: