Data Structures | Defines | Typedefs | Functions

cameraf.h File Reference

#include "pkgeom.h"
Include dependency graph for cameraf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CameraRecf
struct  PixHLine_detf

Defines

#define CPLANE_TOP   0
#define CPLANE_BOTTOM   1
#define CPLANE_LEFT   2
#define CPLANE_RIGHT   3
#define CPLANE_NEAR   4
#define CPLANE_FAR   5
#define CameraRotXGf(CPos, angle)   CameraRotGf(CPos, 0.0, (float)(angle), 0.0)
#define CameraRotYGf(CPos, angle)   CameraRotGf(CPos, (float)(0.5 * PI), (float)(angle), (float)(-0.5 * PI))
#define CameraRotZGf(CPos, angle)   CameraRotGf(CPos, (float)(angle), 0.0, 0.0)
#define CameraRotXCf(CPos, angle)   CameraRotCf ( CPos, 0.0, (float)(angle), 0.0 )
#define CameraRotYCf(CPos, angle)   CameraRotCf ( CPos, (float)(0.5 * PI), (float)(angle), (float)(-0.5 * PI) )
#define CameraRotZCf(CPos, angle)   CameraRotCf ( CPos, (float)(angle), 0.0, 0.0 )

Typedefs

typedef struct CameraRecf CameraRecf
typedef struct PixHLine_detf PixHLine_detf

Functions

void CameraInitFramef (CameraRecf *CPos, boolean parallel, boolean upside, short width, short height, short xmin, short ymin, float aspect, int ncplanes)
void CameraSetMagf (CameraRecf *CPos, byte mag)
void CameraSetDepthRangef (CameraRecf *CPos, float zmin, float zmax)
void CameraSetMappingf (CameraRecf *CPos)
void CameraProjectPoint3f (CameraRecf *CPos, const point3f *p, point3f *q)
void CameraUnProjectPoint3f (CameraRecf *CPos, const point3f *p, point3f *q)
void CameraProjectPoint2f (CameraRecf *CPos, const point2f *p, point2f *q)
void CameraUnProjectPoint2f (CameraRecf *CPos, const point2f *p, point2f *q)
void CameraProjectPoint3Rf (CameraRecf *CPos, const point4f *p, point3f *q)
void CameraUnProjectPoint3Rf (CameraRecf *CPos, const point3f *p, float w, point4f *q)
void CameraProjectPoint2Rf (CameraRecf *CPos, const point3f *p, point2f *q)
void CameraUnProjectPoint2Rf (CameraRecf *CPos, const point2f *p, float w, point3f *q)
void CameraProjectPoint3f2s (CameraRecf *CPos, const point3f *p, point2s *q)
void CameraProjectPoint3Rf2s (CameraRecf *CPos, const point4f *p, point2s *q)
void CameraRayOfPixelf (CameraRecf *CPos, float xi, float eta, ray3f *ray)
void CameraInitPosf (CameraRecf *CPos)
void CameraSetRotCentref (CameraRecf *CPos, point3f *centre, boolean global_coord, boolean global_fixed)
void CameraMoveToGf (CameraRecf *CPos, point3f *pos)
void CameraTurnGf (CameraRecf *CPos, float _psi, float _theta, float _phi)
void CameraMoveGf (CameraRecf *CPos, vector3f *v)
void CameraMoveCf (CameraRecf *CPos, vector3f *v)
void CameraRotGf (CameraRecf *CPos, float _psi, float _theta, float _phi)
void CameraRotVGf (CameraRecf *CPos, vector3f *v, float angle)
void CameraRotCf (CameraRecf *CPos, float, float, float)
void CameraRotVCf (CameraRecf *CPos, vector3f *v, float angle)
void CameraSetFf (CameraRecf *CPos, float f)
void CameraZoomf (CameraRecf *CPos, float fchange)
boolean CameraClipPoint3f (CameraRecf *CPos, point3f *p, point3f *q)
boolean CameraClipLine3f (CameraRecf *CPos, point3f *p0, float t0, point3f *p1, float t1, point3f *q0, point3f *q1)
boolean CameraClipPolygon3f (CameraRecf *CPos, int n, const point3f *p, void(*output)(int n, point3f *p))
boolean Pixel2Spacef (CameraRecf *CPos, float x, float y, vector3f *n, point3f *p, point3f *q, boolean global_in, boolean global_out)
boolean PixHLine2Spacef (CameraRecf *CPos, int xi1, int xi2, int eta, vector3f *n, point3f *p, point3f *p1, point3f *p2, PixHLine_detf *det)

Define Documentation

#define CameraRotXCf (   CPos,
  angle 
)    CameraRotCf ( CPos, 0.0, (float)(angle), 0.0 )
#define CameraRotXGf (   CPos,
  angle 
)    CameraRotGf(CPos, 0.0, (float)(angle), 0.0)
#define CameraRotYCf (   CPos,
  angle 
)    CameraRotCf ( CPos, (float)(0.5 * PI), (float)(angle), (float)(-0.5 * PI) )
#define CameraRotYGf (   CPos,
  angle 
)    CameraRotGf(CPos, (float)(0.5 * PI), (float)(angle), (float)(-0.5 * PI))
#define CameraRotZCf (   CPos,
  angle 
)    CameraRotCf ( CPos, (float)(angle), 0.0, 0.0 )
#define CameraRotZGf (   CPos,
  angle 
)    CameraRotGf(CPos, (float)(angle), 0.0, 0.0)
#define CPLANE_BOTTOM   1
#define CPLANE_FAR   5
#define CPLANE_LEFT   2
#define CPLANE_NEAR   4
#define CPLANE_RIGHT   3
#define CPLANE_TOP   0

Typedef Documentation

typedef struct CameraRecf CameraRecf
typedef struct PixHLine_detf PixHLine_detf

Function Documentation

boolean CameraClipLine3f ( CameraRecf CPos,
point3f p0,
float  t0,
point3f p1,
float  t1,
point3f q0,
point3f q1 
)
boolean CameraClipPoint3f ( CameraRecf CPos,
point3f p,
point3f q 
)
boolean CameraClipPolygon3f ( CameraRecf CPos,
int  n,
const point3f p,
void(*)(int n, point3f *p)  output 
)
void CameraInitFramef ( CameraRecf CPos,
boolean  parallel,
boolean  upside,
short  width,
short  height,
short  xmin,
short  ymin,
float  aspect,
int  ncplanes 
)
void CameraInitPosf ( CameraRecf CPos  ) 
void CameraMoveCf ( CameraRecf CPos,
vector3f v 
)
void CameraMoveGf ( CameraRecf CPos,
vector3f v 
)
void CameraMoveToGf ( CameraRecf CPos,
point3f pos 
)
void CameraProjectPoint2f ( CameraRecf CPos,
const point2f p,
point2f q 
)
void CameraProjectPoint2Rf ( CameraRecf CPos,
const point3f p,
point2f q 
)
void CameraProjectPoint3f ( CameraRecf CPos,
const point3f p,
point3f q 
)
void CameraProjectPoint3f2s ( CameraRecf CPos,
const point3f p,
point2s q 
)
void CameraProjectPoint3Rf ( CameraRecf CPos,
const point4f p,
point3f q 
)
void CameraProjectPoint3Rf2s ( CameraRecf CPos,
const point4f p,
point2s q 
)
void CameraRayOfPixelf ( CameraRecf CPos,
float  xi,
float  eta,
ray3f ray 
)
void CameraRotCf ( CameraRecf CPos,
float  ,
float  ,
float   
)
void CameraRotGf ( CameraRecf CPos,
float  _psi,
float  _theta,
float  _phi 
)
void CameraRotVCf ( CameraRecf CPos,
vector3f v,
float  angle 
)
void CameraRotVGf ( CameraRecf CPos,
vector3f v,
float  angle 
)
void CameraSetDepthRangef ( CameraRecf CPos,
float  zmin,
float  zmax 
)
void CameraSetFf ( CameraRecf CPos,
float  f 
)
void CameraSetMagf ( CameraRecf CPos,
byte  mag 
)
void CameraSetMappingf ( CameraRecf CPos  ) 
void CameraSetRotCentref ( CameraRecf CPos,
point3f centre,
boolean  global_coord,
boolean  global_fixed 
)
void CameraTurnGf ( CameraRecf CPos,
float  _psi,
float  _theta,
float  _phi 
)
void CameraUnProjectPoint2f ( CameraRecf CPos,
const point2f p,
point2f q 
)
void CameraUnProjectPoint2Rf ( CameraRecf CPos,
const point2f p,
float  w,
point3f q 
)
void CameraUnProjectPoint3f ( CameraRecf CPos,
const point3f p,
point3f q 
)
void CameraUnProjectPoint3Rf ( CameraRecf CPos,
const point3f p,
float  w,
point4f q 
)
void CameraZoomf ( CameraRecf CPos,
float  fchange 
)
boolean Pixel2Spacef ( CameraRecf CPos,
float  x,
float  y,
vector3f n,
point3f p,
point3f q,
boolean  global_in,
boolean  global_out 
)
boolean PixHLine2Spacef ( CameraRecf CPos,
int  xi1,
int  xi2,
int  eta,
vector3f n,
point3f p,
point3f p1,
point3f p2,
PixHLine_detf det 
)