face.h

Go to the documentation of this file.
00001 #ifndef FACE_H
00002 #define FACE_H
00003 /* ============================================================================
00004 'face.h' defines a Face class.
00005 
00006 Written by Nicholas Phillips.
00007 QT4 adaption by Michael R. Greason, ADNET, 27 August 2007
00008 ============================================================================ */
00009 /*
00010                         Fetch header files.
00011 */
00012 #include "glpoint.h"
00013 /* ============================================================================
00014 'Face' maintains the contents of one block of the sky.
00015 ============================================================================ */
00016 class Face 
00017 {
00018 private:
00019         int face;
00020         bool rigging_set;
00021         GLVertList quadList;
00022 protected:
00023         void setRigging_NP(const int nside, std::vector<double> &costhetas, double rad = 1.);
00024         void setRigging_EQ(const int nside, std::vector<double> &costhetas, double rad = 1.);
00025         void setRigging_SP(const int nside, std::vector<double> &costhetas, double rad = 1.);
00026 public:
00027         Face() : face(0), rigging_set(false) {};
00028         virtual ~Face() {};
00029 
00030         void faceNumber(const int face_) { face = face_; }
00031         void setRigging(const int nside, std::vector<double> &costhetas,
00032                 bool viewmoll, double rad = 1.);
00033         void draw();
00034         void toMollweide(double rad = 1.);
00035         void toMollweideBackfaceSplit(void);
00036 };
00037 #endif

Generated on Fri Feb 6 15:32:42 2009 for Skyviewer by  doxygen 1.4.7