Go to the documentation of this file.
16 a_out <<
"tools::mnmx :"
23 a_mn = action.
box().
mn();
24 a_mx = action.
box().
mx();
36 unsigned int a_ww,
unsigned int a_wh,
38 float& a_dx,
float& a_dy,
float& a_dz,
39 bool a_verbose =
true) {
43 a_out <<
"tools::center_adjust :"
44 <<
" null viewer width or height."
47 a_dx = 0;a_dy = 0;a_dz = 0;
54 a_out <<
"tools::center_adjust :"
58 a_dx = 0;a_dy = 0;a_dz = 0;
63 a_out <<
"tools::center_adjust :"
67 a_dx = 0;a_dy = 0;a_dz = 0;
73 a_out <<
"tools::center_adjust :"
74 <<
" can't get box center."
77 a_dx = 0;a_dy = 0;a_dz = 0;
80 float vp_aspect = float(a_ww)/float(a_wh);
81 float scene_aspect = float(a_dx)/float(a_dy);
85 if(vp_aspect>=scene_aspect) {
86 scale = a_height/a_dy;
88 scale = (vp_aspect*a_height)/a_dx;
97 unsigned int a_ww,
unsigned int a_wh,
98 float a_height,
bool a_verbose =
true) {