25 LWItemID
getID()
const {
return camera;}
30 void setID(LWItemID _camera) {camera = _camera;}
64 void fovAngles (LWTime time,
double *hfov,
double *vfov) {
globPtr->fovAngles (camera, time, hfov, vfov);}
73 #define LWCAMF_EYE (1<<9)
97 const char *
whichField () {
return (
flags() & LWCAMF_FIELD) ?
"Even/Upper First" :
"Odd/Lower First";}
134 void regionLimits(
int *x0,
int *y0,
int *x1,
int *y1)
const {
globPtr->regionLimits(camera, x0, y0, x1, y1);}
144 void maskLimits(
int *x0,
int *y0,
int *x1,
int *y1)
const {
globPtr->maskLimits(camera, x0, y0, x1, y1);}
195 int irisPos( LWTime time,
int pass,
float *irisx,
float *irisy){
return globPtr->irisPos(camera, time, pass, irisx, irisy);}
227 void filmSize (
double *width,
double *height) {
globPtr->filmSize(camera, width, height);}
235 bool frameTiming (LWFrame frame, LWFrameTimingInfo *timingInfo) {
return globPtr->frameTiming (camera, frame, timingInfo) ?
true :
false;}
252 void diaphragm( LWTime time,
int *sides,
double* rotation ) {
globPtr->diaphragm(camera, time, sides, rotation);}
262 LWCameraEvaluatorID cameraEvaluator;
276 CameraEvaluator(LWItemID _camera) : init(false), newframe(false), cleanup(false), cameraEvaluator(0)
293 cameraEvaluator =
globPtr->create(cameraID);
294 init=
false; newframe=
false; cleanup=
false;
300 globPtr->destroy(cameraEvaluator);
306 return globPtr->init(cameraEvaluator, mode);
312 globPtr->cleanUp(cameraEvaluator);
317 return globPtr->newTime(cameraEvaluator, frame, time);
320 int Preview(
double lpx,
double lpy, LWDMatrix4 projection)
322 return globPtr->preview(cameraEvaluator, lpx, lpy, projection);
326 if(!init)
Init(LWINIT_RENDER);
328 return globPtr->newFrame(cameraEvaluator);
335 int Evaluate(
double fpx,
double fpy,
double lpx,
double lpy,
double fractime, LWCameraRay* mycamray)
337 if(!init)
Init(LWINIT_RENDER);
339 int retValue =
globPtr->evaluate(cameraEvaluator,fpx,fpy,lpx,lpy,fractime,mycamray);
344 inline int Evaluate(
double fpx,
double fpy,
double fractime)
350 #endif // LWPP_CAMINFO_H