Subversion Repositories gelsvn

Rev

Rev 594 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 594 Rev 623
Line 69... Line 69...
69
		/// Set centre of ball.
69
		/// Set centre of ball.
70
		void set_centre(const CGLA::Vec3f& c)
70
		void set_centre(const CGLA::Vec3f& c)
71
		{
71
		{
72
			ball.set_centre(c);
72
			ball.set_centre(c);
73
		}
73
		}
-
 
74
 
-
 
75
		/// Set rotation of ball.
74
        void set_rotation(const CGLA::Quatf& qrot)
76
		void set_rotation(const CGLA::Quatf& qrot)
75
        {
77
		{
76
            ball.set_rotation(qrot);
78
			ball.set_rotation(qrot);
77
        }
79
		}
78
		
80
		
79
		/// Set eye distance.
81
		/// Set eye distance.
80
		void set_eye_dist(float rad)
82
		void set_eye_dist(float rad)
81
		{
83
		{
82
			ball.set_eye_dist(rad);
84
			ball.set_eye_dist(rad);
Line 93... Line 95...
93
		void get_view_param(CGLA::Vec3f& e, CGLA::Vec3f& c, CGLA::Vec3f& u) const
95
		void get_view_param(CGLA::Vec3f& e, CGLA::Vec3f& c, CGLA::Vec3f& u) const
94
		{
96
		{
95
			ball.get_view_param(e,c,u);
97
			ball.get_view_param(e,c,u);
96
		}
98
		}
97
 
99
 
-
 
100
		/// Set viewing parameters: eye centre, up
-
 
101
		void set_view_param(const CGLA::Vec3f& e, const CGLA::Vec3f& c, const CGLA::Vec3f& u);
-
 
102
 
98
		/// Load trackball from stream
103
		/// Load trackball from stream
99
		bool load(std::ifstream&);
104
		bool load(std::ifstream&);
100
		
105
		
101
		/// Save trackball to stream.
106
		/// Save trackball to stream.
102
		bool save(std::ofstream&) const;
107
		bool save(std::ofstream&) const;
103
	};
108
	};
104
	
-
 
105
}
109
}
106
 
110
 
107
#endif
111
#endif