StvFile.h

Go to the documentation of this file.
00001 
00011 #pragma once
00012 
00013 #include "../common/standard.h"
00014 #include "Viewpoint.h"
00015 
00016 
00017 
00026 class StvFile
00027 {
00028 public:
00030     StvFile (const char *filename, Viewpoint &photo);
00031 
00032 /*
00033  * Accessors
00034  */
00036     double     calculateWidthOverHeight() const;
00037 
00039     Vertex     calculateLookatPoint()     const;
00040 
00042     ColVector3 calculateUpVector()        const;
00043 
00045     double     calculateVerticalFOV()     const;
00046 
00049     Vertex     getCenterOfProjection ()   const;
00050 
00051 /*
00052  * Methods
00053  */
00055     void print() const; 
00056 
00057 private:
00058     Viewpoint &img;
00059     Vertex origin_of_projection;
00060     Vertex center_of_projection;
00061     ColVector3 du;
00062     ColVector3 dv;
00063     ColVector3 cop_to_origin_vector;
00064     std::string photo_filename;
00065     std::string silhouette_filename;
00066 };

Generated on Tue May 21 03:34:51 2002 for Archimedes by doxygen1.2.15