#include "ps_view.hpp" CView::CView( ) { ; } void CView::projection( const CCord& c ) { // Set the eye position or center of projection vpx = c.x( ) ; vpy = c.y( ) ; vpz = c.z( ) ; } void CView::reference( const CCord& c ) { // Set the look at position vrx = c.x( ) ; vry = c.y( ) ; vrz = c.z( ) ; } void CView::distance( int n ) { // This is the distance between the eye // and the imaginary projection screen GsSetProjection( n ) ; } void CView::parent( _GsCOORDINATE2* pParent ) { super = pParent; } void CView::twist( int n ) { // Set which way is up rz =- n ; } bool CView::set( ) { // Activate view return GsSetRefView2( this ) ? true : false ; }