00001 #ifndef FACE_H
00002 #define FACE_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "glpoint.h"
00013
00014
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