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

Camera-doxy.c File Reference

Blender.Camera Module and Camera Data PyObject implementation. More...

#include "Camera.h"

Go to the source code of this file.

Functions

PyObject * M_Camera_New (PyObject *self, PyObject *args, PyObject *kwords)
 Python module function: Blender.Camera.New(). More...

PyObject * M_Camera_Get (PyObject *self, PyObject *args)
 Python module function: Blender.Camera.Get(). More...

PyObject * Camera_Init (void)
 Initializes the Blender.Camera submodule. More...

PyObject * Camera_CreatePyObject (Camera *cam)
 Creates a new Python wrapper from an existing Blender Camera Data obj. More...

int Camera_CheckPyObject (PyObject *pyobj)
 Checks if the given object is of type BPy_Camera. More...

Camera * Camera_FromPyObject (PyObject *pyobj)
 Returns the Blender Camera object from the given PyObject. More...

PyObject * Camera_getName (BPy_Camera *self)
 Camera PyMethod getName. More...

PyObject * Camera_getType (BPy_Camera *self)
 Camera PyMethod getType. More...

PyObject * Camera_getMode (BPy_Camera *self)
 Camera PyMethod getMode. More...

PyObject * Camera_getLens (BPy_Camera *self)
 Camera PyMethod getLens. More...

PyObject * Camera_getClipStart (BPy_Camera *self)
 Camera PyMethod getClipStart. More...

PyObject * Camera_getClipEnd (BPy_Camera *self)
 Camera PyMethod getClipEnd. More...

PyObject * Camera_getDrawSize (BPy_Camera *self)
 Camera method getDrawSize. More...

PyObject * Camera_setName (BPy_Camera *self, PyObject *args)
 Camera PyMethod setName. More...

PyObject * Camera_setType (BPy_Camera *self, PyObject *args)
 Camera PyMethod setName. More...

PyObject * Camera_setIntType (BPy_Camera *self, PyObject *args)
 Internal helper function. More...

PyObject * Camera_setMode (BPy_Camera *self, PyObject *args)
 Camera PyMethod setMode. More...

PyObject * Camera_setIntMode (BPy_Camera *self, PyObject *args)
 Internal helper function. More...

PyObject * Camera_setLens (BPy_Camera *self, PyObject *args)
 Camera PyMethod setLens. More...

PyObject * Camera_setClipStart (BPy_Camera *self, PyObject *args)
 Camera PyMethod setClipStart. More...

PyObject * Camera_setClipEnd (BPy_Camera *self, PyObject *args)
 Camera PyMethod setClipEnd. More...

PyObject * Camera_setDrawSize (BPy_Camera *self, PyObject *args)
 Camera PyMethod setDrawSize. More...

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

Blender.Camera Module and Camera Data PyObject implementation.

Note: Parameters between "<" and ">" are optional. But if one of them is given, all preceding ones must be given, too. Of course, this only relates to the Python functions and methods described here and only inside Python code. [ This will go to another file later, probably the main exppython doc file].

Definition in file Camera-doxy.c.


Function Documentation

int Camera_CheckPyObject PyObject *    pyobj
 

Checks if the given object is of type BPy_Camera.

This is also used in Object.c when handling the object.data member variable for an object of type 'Camera'.

Parameters:
pyobj  - PyObject*: A pointer to a Camera PyObject.
Returns:
int: True or false.

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

PyObject* Camera_CreatePyObject Camera *    cam
 

Creates a new Python wrapper from an existing Blender Camera Data obj.

This is also used in Object.c when defining the object.data member variable for an Object of type 'Camera'.

Parameters:
cam  - Camera*: A pointer to an existing Blender Camera Data object.
Returns:
PyObject*: The Camera Data wrapper created.

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

Camera* Camera_FromPyObject PyObject *    pyobj
 

Returns the Blender Camera object from the given PyObject.

This is also used in Object.c when handling the object.data member variable for an object of type 'Camera'.

Parameters:
pyobj  - PyObject*: A pointer to a Camera PyObject.
Returns:
Camera*: A pointer to the wrapped Blender Camera Data object.

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

PyObject* Camera_Init void   
 

Initializes the Blender.Camera submodule.

This function is used by Blender_Init() in Blender.c to register the Blender.Camera submodule in the main Blender module.

Returns:
PyObject*: The initialized submodule.

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


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