Data Structures | Defines | Typedefs | Functions

camerad.h File Reference

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

Go to the source code of this file.

Data Structures

struct  CameraRecd
struct  PixHLine_detd

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 CameraRotXGd(CPos, angle)   CameraRotGd(CPos, 0.0, angle, 0.0)
#define CameraRotYGd(CPos, angle)   CameraRotGd(CPos, 0.5 * PI, angle, -0.5 * PI)
#define CameraRotZGd(CPos, angle)   CameraRotGd(CPos, angle, 0.0, 0.0)
#define CameraRotXCd(CPos, angle)   CameraRotCd ( CPos, 0.0, angle, 0.0 )
#define CameraRotYCd(CPos, angle)   CameraRotCd ( CPos, 0.5 * PI, angle, -0.5 * PI )
#define CameraRotZCd(CPos, angle)   CameraRotCd ( CPos, angle, 0.0, 0.0 )

Typedefs

typedef struct CameraRecd CameraRecd
typedef struct PixHLine_detd PixHLine_detd

Functions

void CameraInitFramed (CameraRecd *CPos, boolean parallel, boolean upside, short width, short height, short xmin, short ymin, double aspect, int ncplanes)
void CameraSetMagd (CameraRecd *CPos, byte mag)
void CameraSetDepthRanged (CameraRecd *CPos, double zmin, double zmax)
void CameraSetMappingd (CameraRecd *CPos)
void CameraProjectPoint3d (CameraRecd *CPos, const point3d *p, point3d *q)
void CameraUnProjectPoint3d (CameraRecd *CPos, const point3d *p, point3d *q)
void CameraProjectPoint2d (CameraRecd *CPos, const point2d *p, point2d *q)
void CameraUnProjectPoint2d (CameraRecd *CPos, const point2d *p, point2d *q)
void CameraProjectPoint3Rd (CameraRecd *CPos, const point4d *p, point3d *q)
void CameraUnProjectPoint3Rd (CameraRecd *CPos, const point3d *p, double w, point4d *q)
void CameraProjectPoint2Rd (CameraRecd *CPos, const point3d *p, point2d *q)
void CameraUnProjectPoint2Rd (CameraRecd *CPos, const point2d *p, double w, point3d *q)
void CameraProjectPoint3d2s (CameraRecd *CPos, const point3d *p, point2s *q)
void CameraProjectPoint3Rd2s (CameraRecd *CPos, const point4d *p, point2s *q)
void CameraRayOfPixeld (CameraRecd *CPos, double xi, double eta, ray3d *ray)
void CameraInitPosd (CameraRecd *CPos)
void CameraSetRotCentred (CameraRecd *CPos, point3d *centre, boolean global_coord, boolean global_fixed)
void CameraMoveToGd (CameraRecd *CPos, point3d *pos)
void CameraTurnGd (CameraRecd *CPos, double _psi, double _theta, double _phi)
void CameraMoveGd (CameraRecd *CPos, vector3d *v)
void CameraMoveCd (CameraRecd *CPos, vector3d *v)
void CameraRotGd (CameraRecd *CPos, double _psi, double _theta, double _phi)
void CameraRotVGd (CameraRecd *CPos, vector3d *v, double angle)
void CameraRotCd (CameraRecd *CPos, double, double, double)
void CameraRotVCd (CameraRecd *CPos, vector3d *v, double angle)
void CameraSetFd (CameraRecd *CPos, double f)
void CameraZoomd (CameraRecd *CPos, double fchange)
boolean CameraClipPoint3d (CameraRecd *CPos, point3d *p, point3d *q)
boolean CameraClipLine3d (CameraRecd *CPos, point3d *p0, double t0, point3d *p1, double t1, point3d *q0, point3d *q1)
boolean CameraClipPolygon3d (CameraRecd *CPos, int n, const point3d *p, void(*output)(int n, point3d *p))
boolean Pixel2Spaced (CameraRecd *CPos, double x, double y, vector3d *n, point3d *p, point3d *q, boolean global_in, boolean global_out)
boolean PixHLine2Spaced (CameraRecd *CPos, int xi1, int xi2, int eta, vector3d *n, point3d *p, point3d *p1, point3d *p2, PixHLine_detd *det)

Define Documentation

#define CameraRotXCd (   CPos,
  angle 
)    CameraRotCd ( CPos, 0.0, angle, 0.0 )
#define CameraRotXGd (   CPos,
  angle 
)    CameraRotGd(CPos, 0.0, angle, 0.0)
#define CameraRotYCd (   CPos,
  angle 
)    CameraRotCd ( CPos, 0.5 * PI, angle, -0.5 * PI )
#define CameraRotYGd (   CPos,
  angle 
)    CameraRotGd(CPos, 0.5 * PI, angle, -0.5 * PI)
#define CameraRotZCd (   CPos,
  angle 
)    CameraRotCd ( CPos, angle, 0.0, 0.0 )
#define CameraRotZGd (   CPos,
  angle 
)    CameraRotGd(CPos, 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 CameraRecd CameraRecd
typedef struct PixHLine_detd PixHLine_detd

Function Documentation

boolean CameraClipLine3d ( CameraRecd CPos,
point3d p0,
double  t0,
point3d p1,
double  t1,
point3d q0,
point3d q1 
)
boolean CameraClipPoint3d ( CameraRecd CPos,
point3d p,
point3d q 
)
boolean CameraClipPolygon3d ( CameraRecd CPos,
int  n,
const point3d p,
void(*)(int n, point3d *p)  output 
)
void CameraInitFramed ( CameraRecd CPos,
boolean  parallel,
boolean  upside,
short  width,
short  height,
short  xmin,
short  ymin,
double  aspect,
int  ncplanes 
)
void CameraInitPosd ( CameraRecd CPos  ) 
void CameraMoveCd ( CameraRecd CPos,
vector3d v 
)
void CameraMoveGd ( CameraRecd CPos,
vector3d v 
)
void CameraMoveToGd ( CameraRecd CPos,
point3d pos 
)
void CameraProjectPoint2d ( CameraRecd CPos,
const point2d p,
point2d q 
)
void CameraProjectPoint2Rd ( CameraRecd CPos,
const point3d p,
point2d q 
)
void CameraProjectPoint3d ( CameraRecd CPos,
const point3d p,
point3d q 
)
void CameraProjectPoint3d2s ( CameraRecd CPos,
const point3d p,
point2s q 
)
void CameraProjectPoint3Rd ( CameraRecd CPos,
const point4d p,
point3d q 
)
void CameraProjectPoint3Rd2s ( CameraRecd CPos,
const point4d p,
point2s q 
)
void CameraRayOfPixeld ( CameraRecd CPos,
double  xi,
double  eta,
ray3d ray 
)
void CameraRotCd ( CameraRecd CPos,
double  ,
double  ,
double   
)
void CameraRotGd ( CameraRecd CPos,
double  _psi,
double  _theta,
double  _phi 
)
void CameraRotVCd ( CameraRecd CPos,
vector3d v,
double  angle 
)
void CameraRotVGd ( CameraRecd CPos,
vector3d v,
double  angle 
)
void CameraSetDepthRanged ( CameraRecd CPos,
double  zmin,
double  zmax 
)
void CameraSetFd ( CameraRecd CPos,
double  f 
)
void CameraSetMagd ( CameraRecd CPos,
byte  mag 
)
void CameraSetMappingd ( CameraRecd CPos  ) 
void CameraSetRotCentred ( CameraRecd CPos,
point3d centre,
boolean  global_coord,
boolean  global_fixed 
)
void CameraTurnGd ( CameraRecd CPos,
double  _psi,
double  _theta,
double  _phi 
)
void CameraUnProjectPoint2d ( CameraRecd CPos,
const point2d p,
point2d q 
)
void CameraUnProjectPoint2Rd ( CameraRecd CPos,
const point2d p,
double  w,
point3d q 
)
void CameraUnProjectPoint3d ( CameraRecd CPos,
const point3d p,
point3d q 
)
void CameraUnProjectPoint3Rd ( CameraRecd CPos,
const point3d p,
double  w,
point4d q 
)
void CameraZoomd ( CameraRecd CPos,
double  fchange 
)
boolean Pixel2Spaced ( CameraRecd CPos,
double  x,
double  y,
vector3d n,
point3d p,
point3d q,
boolean  global_in,
boolean  global_out 
)
boolean PixHLine2Spaced ( CameraRecd CPos,
int  xi1,
int  xi2,
int  eta,
vector3d n,
point3d p,
point3d p1,
point3d p2,
PixHLine_detd det 
)