On 10 March 2010 23:42, Felix Hagemann <felix.hagem...@gmail.com> wrote:
> What would others think of a new preset like "Everything (without
> XYZ)" to make things a tad easier? Or maybe even add a new check box
> which toggles XYZ for all presets?

The attached patch implements a "Everything (not x,y,z)" preset, which
does the job for me.

Felix

-- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx
Index: src/hugin1/hugin/xrc/optimize_panel.xrc
===================================================================
--- src/hugin1/hugin/xrc/optimize_panel.xrc	(revision 5059)
+++ src/hugin1/hugin/xrc/optimize_panel.xrc	(working copy)
@@ -44,6 +44,7 @@
                           <item>Positions, Translation and Barrel (y,p,r,x,y,z,b)</item>
                           <item>Positions, View and Barrel (y,p,r,v,b)</item>
                           <item>Positions, Translation, View and Barrel (y,p,r,x,y,z,v,b)</item>
+                          <item>Everything (not x,y,z)</item>
                           <item>Everything</item>
                           <item>the Custom parameters below</item>
                         </content>
Index: src/hugin1/hugin/OptimizePanel.cpp
===================================================================
--- src/hugin1/hugin/OptimizePanel.cpp	(revision 5059)
+++ src/hugin1/hugin/OptimizePanel.cpp	(working copy)
@@ -82,7 +82,7 @@
 
 // local optimize definition. need to be in sync with the xrc file
 enum OptimizeMode { OPT_PAIRWISE=0, OPT_YRP, OPT_YRP_XYZ, OPT_YRP_V, OPT_YRP_XYZ_V,
-                    OPT_YRP_B, OPT_YRP_XYZ_B, OPT_YRP_BV, OPT_YRP_XYZ_BV, OPT_ALL, OPT_CUSTOM,
+                    OPT_YRP_B, OPT_YRP_XYZ_B, OPT_YRP_BV, OPT_YRP_XYZ_BV, OPT_ALL_NOTXYZ, OPT_ALL, OPT_CUSTOM,
                     OPT_END_MARKER};
 
 OptimizePanel::OptimizePanel()
@@ -901,11 +901,26 @@
           SetCheckMark(m_d_list,false);
           SetCheckMark(m_e_list,false);
           break;
-  	    case OPT_ALL:
+  	    case OPT_ALL_NOTXYZ:
           // everything
           SetCheckMark(m_yaw_list,true);
           SetCheckMark(m_roll_list,true);
           SetCheckMark(m_pitch_list,true);
+          SetCheckMark(m_x_list,false);
+          SetCheckMark(m_y_list,false);
+          SetCheckMark(m_z_list,false);
+          SetCheckMark(m_v_list,true);
+          SetCheckMark(m_a_list,true);
+          SetCheckMark(m_b_list,true);
+          SetCheckMark(m_c_list,true);
+          SetCheckMark(m_d_list,true);
+          SetCheckMark(m_e_list,true);
+	  break;
+    	    case OPT_ALL:
+          // everything
+          SetCheckMark(m_yaw_list,true);
+          SetCheckMark(m_roll_list,true);
+          SetCheckMark(m_pitch_list,true);
           SetCheckMark(m_x_list,true);
           SetCheckMark(m_y_list,true);
           SetCheckMark(m_z_list,true);

Reply via email to