StvFile Class Reference

Lets you get raw and calculated camera data from an STV file. More...

#include <StvFile.h>

Collaboration diagram for StvFile:

Collaboration graph
[legend]
List of all members.

Public Methods

 StvFile (const char *filename, Viewpoint &photo)
 Constructor.

double calculateWidthOverHeight () const
 Get the aspect ratio.

Vertex calculateLookatPoint () const
 Get a lookat point. More...

ColVector3 calculateUpVector () const
 Get a vector which indicates the "up" direction.

double calculateVerticalFOV () const
 Get the vertical field of view, in degrees.

Vertex getCenterOfProjection () const
 Get the center of projection, which is the position that the camera would be at if it were a pinhole camera.

void print () const
 prints some info to the debugging window.


Detailed Description

Lets you get raw and calculated camera data from an STV file.

An STV file gives information on intrinsic and extrinsic camera parameters.

Definition at line 26 of file StvFile.h.


Member Function Documentation

Vertex StvFile::calculateLookatPoint   const
 

Get a lookat point.

Invariant:
This method assumes that we are looking roughly towards the origin. We could really set the lookat point to be an arbitrary distance away -- it's just specifying direction. So we pick a point along the eye ray that is closest to the origin.

Definition at line 144 of file StvFile.cpp.


The documentation for this class was generated from the following files:
Generated on Tue May 21 03:35:14 2002 for Archimedes by doxygen1.2.15