Go to the documentation of this file.
4 #ifndef tools_sg_base_camera
5 #define tools_sg_base_camera
43 static const desc_fields s_v(parent::node_desc_fields(),8,
69 virtual void zoom(
float) = 0;
71 virtual void get_lrbt(
unsigned int,
unsigned int,
72 float&,
float&,
float&,
float&) = 0;
112 mem::increment(s_class().c_str());
119 mem::decrement(s_class().c_str());
135 mem::increment(s_class().c_str());
140 parent::operator=(a_from);
237 vec3f v = side * (side.
dot(a_dir)) + dir * (dir.
dot(a_dir));
267 vec3f d(a_x,a_y,a_z);
314 rot.set_value(0,0,x[0]);
315 rot.set_value(1,0,x[1]);
316 rot.set_value(2,0,x[2]);
318 rot.set_value(0,1,y[0]);
319 rot.set_value(1,1,y[1]);
320 rot.set_value(2,1,y[2]);
322 rot.set_value(0,2,z[0]);
323 rot.set_value(1,2,z[1]);
324 rot.set_value(2,2,z[2]);
331 void dump(std::ostream& a_out) {
332 a_out <<
" znear " <<
znear.
value() << std::endl;
333 a_out <<
" zfar " <<
zfar.
value() << std::endl;
335 a_out <<
" pos " << pos[0] <<
" " << pos[1] <<
" " << pos[2] << std::endl;
497 a_out <<
"update_sg :"
498 <<
" get orientation inverse failed."
533 #if defined(TOOLS_MEM) && !defined(TOOLS_MEM_ATEXIT)
#define TOOLS_HEADER(a__class, a__sclass, a__parent)
#define TOOLS_FIELD_DESC_NODE_CLASS(a__class)
#define TOOLS_ARG_FIELD_DESC(a__field)