Blender V2.61 - r43446
Classes | Typedefs | Functions

camera.c File Reference

#include <stdlib.h>
#include "DNA_camera_types.h"
#include "DNA_lamp_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_view3d_types.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_animsys.h"
#include "BKE_camera.h"
#include "BKE_object.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_screen.h"

Go to the source code of this file.

Classes

struct  CameraViewFrameData

Typedefs

typedef struct CameraViewFrameData CameraViewFrameData

Functions

void * add_camera (const char *name)
Cameracopy_camera (Camera *cam)
void make_local_camera (Camera *cam)
void free_camera (Camera *ca)
void object_camera_mode (RenderData *rd, Object *cam_ob)
float object_camera_dof_distance (Object *ob)
float camera_sensor_size (int sensor_fit, float sensor_x, float sensor_y)
int camera_sensor_fit (int sensor_fit, float sizex, float sizey)
void camera_params_init (CameraParams *params)
void camera_params_from_object (CameraParams *params, Object *ob)
void camera_params_from_view3d (CameraParams *params, View3D *v3d, RegionView3D *rv3d)
void camera_params_compute_viewplane (CameraParams *params, int winx, int winy, float xasp, float yasp)
void camera_params_compute_matrix (CameraParams *params)
void camera_view_frame_ex (Scene *scene, Camera *camera, float drawsize, const short do_clip, const float scale[3], float r_asp[2], float r_shift[2], float *r_drawsize, float r_vec[4][3])
void camera_view_frame (Scene *scene, Camera *camera, float r_vec[4][3])
static void camera_to_frame_view_cb (const float co[3], void *user_data)
int camera_view_frame_fit_to_scene (Scene *scene, struct View3D *v3d, Object *camera_ob, float r_co[3])

Detailed Description

Definition in file camera.c.


Typedef Documentation


Function Documentation

void* add_camera ( const char *  name)
void camera_params_compute_matrix ( CameraParams params)
void camera_params_compute_viewplane ( CameraParams params,
int  winx,
int  winy,
float  xasp,
float  yasp 
)
void camera_params_from_object ( CameraParams params,
Object ob 
)
void camera_params_from_view3d ( CameraParams params,
View3D v3d,
RegionView3D rv3d 
)
void camera_params_init ( CameraParams params)
int camera_sensor_fit ( int  sensor_fit,
float  sizex,
float  sizey 
)
float camera_sensor_size ( int  sensor_fit,
float  sensor_x,
float  sensor_y 
)

Definition at line 168 of file camera.c.

References CAMERA_SENSOR_FIT_VERT.

Referenced by camera_params_compute_viewplane(), and uvprojectModifier_do().

static void camera_to_frame_view_cb ( const float  co[3],
void *  user_data 
) [static]
void camera_view_frame ( Scene scene,
Camera camera,
float  r_vec[4][3] 
)

Definition at line 434 of file camera.c.

References camera_view_frame_ex(), and FALSE.

Referenced by camera_view_frame_fit_to_scene().

void camera_view_frame_ex ( Scene scene,
Camera camera,
float  drawsize,
const short  do_clip,
const float  scale[3],
float  r_asp[2],
float  r_shift[2],
float *  r_drawsize,
float  r_vec[4][3] 
)
int camera_view_frame_fit_to_scene ( Scene scene,
struct View3D v3d,
Object camera_ob,
float  r_co[3] 
)
Camera* copy_camera ( Camera cam) [read]
void free_camera ( Camera ca)

Definition at line 130 of file camera.c.

References BKE_free_animdata().

Referenced by free_libblock().

void make_local_camera ( Camera cam)
float object_camera_dof_distance ( Object ob)
void object_camera_mode ( RenderData rd,
Object cam_ob 
)