5 #ifndef _MGGLViewAttrib_HH_ 
    6 #define _MGGLViewAttrib_HH_ 
    8 #include "mg/Position.h" 
    9 #include "mgGL/ConstructionPlane.h" 
   57 void compute_viewing_environment(
 
   78 void setEyePositionUpVector(
 
   88 void set_perspective(
bool pers, 
double fovy=45.);
 
  118     double m_near, m_far;
 
  133     glm::mat4 m_PreCenterMat;
 
  134     glm::mat4 m_modelViewMat;
 
  140 #define INITIAL_SCALE 6. 
bool is_perspective() const 
Return if this is a perspective view or not. 
Definition: glViewAttrib.h:73
const MGPosition & center() const 
return the center of the box of this view. 
Definition: glViewAttrib.h:51
double & diameter()
Definition: glViewAttrib.h:66
MGIfstream is a class to read the serialized data generated by MGOfstream. 
Definition: Ifstream.h:30
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function. 
Definition: isect.h:95
double view_volume_far() const 
compute the view volume far. 
Definition: glViewAttrib.h:100
Vector of a general n space dimension. 
Definition: Vector.h:26
MGPosition & eye_position()
Definition: glViewAttrib.h:70
Defines a Box of any space dimendion. 
Definition: Box.h:34
MGColor defines the OpenGL color (R,G,B,A). 
Definition: Color.h:26
void set_view_up_vector(const MGVector &up)
Set the view-up vector. 
Definition: glViewAttrib.h:91
MGConstructionPlane & cplane()
Definition: glViewAttrib.h:62
const MGPosition & eye_position() const 
Get the eye position. 
Definition: glViewAttrib.h:69
double diameter() const 
Obtainthe the diameter of the sphere that surround the whole model. 
Definition: glViewAttrib.h:65
Represent a positional data. 
Definition: Position.h:28
void set_fovy(double fovy)
Definition: glViewAttrib.h:83
void set_center(const MGPosition &pos)
Definition: glViewAttrib.h:75
Defines OpenGL display class for MGCL objects. 
Definition: openglView.h:43
VIEWMODE
Definition: MGCL.h:271
MGOfstream is a class to serialize all of the subclasses of MGGel. 
Definition: Ofstream.h:31
MGPosition & center()
Definition: glViewAttrib.h:52
const MGConstructionPlane & cplane() const 
Definition: glViewAttrib.h:61
MGglViewAttrib is a class to serialize MGOpenGLView. 
Definition: glViewAttrib.h:27
MGCL::VIEWMODE viewMode() const 
Definition: glViewAttrib.h:93
double view_volume_height() const 
compute the view volume height. 
Definition: glViewAttrib.h:103
const MGVector & view_up_vector() const 
Get the view up vector. 
Definition: glViewAttrib.h:96
MGConstructionPlane defines a construction plane ton input 3D data. 
Definition: ConstructionPlane.h:33
double view_volume_near() const 
compute the view volume near. 
Definition: glViewAttrib.h:106
MGVector & view_up_vector()
Definition: glViewAttrib.h:97