Subversion Repositories gelsvn

Rev

Rev 447 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 447 Rev 594
Line -... Line 1...
-
 
1
/**
-
 
2
 * @file GLViewController.h
-
 
3
 * @brief Class for setting view transform.
-
 
4
 */
-
 
5
/* ----------------------------------------------------------------------- *
-
 
6
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
-
 
7
 * Copyright (C) the authors and DTU Informatics
-
 
8
 * For license and list of authors, see ../../doc/intro.pdf
-
 
9
 * ----------------------------------------------------------------------- */
-
 
10
 
1
#ifndef __GLGRAPHICS_GLVIEWCONTROLLER_H__
11
#ifndef __GLGRAPHICS_GLVIEWCONTROLLER_H__
2
#define __GLGRAPHICS_GLVIEWCONTROLLER_H__
12
#define __GLGRAPHICS_GLVIEWCONTROLLER_H__
3
 
13
 
4
#include <fstream>
14
#include <fstream>
5
#include "QuatTrackBall.h"
15
#include "QuatTrackBall.h"
Line 59... Line 69...
59
		/// Set centre of ball.
69
		/// Set centre of ball.
60
		void set_centre(const CGLA::Vec3f& c)
70
		void set_centre(const CGLA::Vec3f& c)
61
		{
71
		{
62
			ball.set_centre(c);
72
			ball.set_centre(c);
63
		}
73
		}
-
 
74
        void set_rotation(const CGLA::Quatf& qrot)
-
 
75
        {
-
 
76
            ball.set_rotation(qrot);
-
 
77
        }
64
		
78
		
65
		/// Set eye distance.
79
		/// Set eye distance.
66
		void set_eye_dist(float rad)
80
		void set_eye_dist(float rad)
67
		{
81
		{
68
			ball.set_eye_dist(rad);
82
			ball.set_eye_dist(rad);