Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

Callback functions for the Camera PyType


Functions

void Camera_Dealloc (BPy_Camera *self)
 The Camera PyType destructor.

PyObject * Camera_GetAttr (BPy_Camera *self, char *name)
 The Camera PyType attribute getter. More...

int Camera_SetAttr (BPy_Camera *self, char *name, PyObject *value)
 The Camera PyType attribute setter. More...

int Camera_Compare (BPy_Camera *a, BPy_Camera *b)
 The Camera PyType compare function. More...

int Camera_Print (BPy_Camera *self, FILE *fp, int flags)
 The Camera PyType print callback. More...

PyObject * Camera_Repr (BPy_Camera *self)
 The Camera PyType repr callback. More...


Detailed Description

These callbacks are called by the Python interpreter when dealing with PyObjects of type Camera.

Function Documentation

int Camera_Compare BPy_Camera *    a,
BPy_Camera *    b
[static]
 

The Camera PyType compare function.

This function compares two given Camera PyObjects, returning 0 for equality and -1 otherwise. In Python it becomes 1 if they are equal and 0 case not. The comparison is done with their pointers to Blender Camera Data objects, so any two wrappers pointing to the same Blender Camera Data will be considered the same Camera PyObject. Currently, only the "==" and "!=" comparisons are meaninful -- the "<", "<=", ">" or ">=" are not.

Definition at line 765 of file Camera-doxy.c.

PyObject* Camera_GetAttr BPy_Camera *    self,
char *    name
[static]
 

The Camera PyType attribute getter.

This is the callback called when a user tries to retrieve the contents of Camera PyObject data members. Ex. in Python: "print mycamera.lens".

Definition at line 643 of file Camera-doxy.c.

int Camera_Print BPy_Camera *    self,
FILE *    fp,
int    flags
[static]
 

The Camera PyType print callback.

This function is called when the user tries to print a PyObject of type Camera. It builds a string with the name of the wrapped Blender Camera.

Definition at line 778 of file Camera-doxy.c.

PyObject* Camera_Repr BPy_Camera *    self [static]
 

The Camera PyType repr callback.

This function is called when the statement "repr(mycamera)" is executed in Python. Repr gives a string representation of a PyObject.

Definition at line 791 of file Camera-doxy.c.

int Camera_SetAttr BPy_Camera *    self,
char *    name,
PyObject *    value
[static]
 

The Camera PyType attribute setter.

This is the callback called when the user tries to change the value of some Camera data member. Ex. in Python: "mycamera.lens = 45.0".

Definition at line 695 of file Camera-doxy.c.

References Camera_setClipEnd(), Camera_setClipStart(), Camera_setDrawSize(), Camera_setIntMode(), Camera_setIntType(), Camera_setLens(), and Camera_setName().


Generated on Mon Jun 2 16:32:09 2003 for Blender by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001