Эх сурвалжийг харах

expose items of reanttweakbar

Former-commit-id: e997a316b442488505ad7b978155e835fa1b0d65
Alec Jacobson (jalec 12 жил өмнө
parent
commit
3b40e964eb

+ 10 - 0
include/igl/ReAntTweakBar.cpp

@@ -828,3 +828,13 @@ bool igl::ReTwBar::set_value_from_string(
   }
   return true;
 }
+
+const std::vector<igl::ReTwRWItem> & igl::ReTwBar::get_rw_items()
+{
+  return rw_items;
+}
+
+const std::vector<igl::ReTwCBItem> & igl::ReTwBar::get_cb_items()
+{
+  return cb_items;
+}

+ 2 - 0
include/igl/ReAntTweakBar.h

@@ -232,6 +232,8 @@ namespace igl
         const char * name, 
         TwType type, 
         const char * value_str);
+      const std::vector<ReTwRWItem> & get_rw_items();
+      const std::vector<ReTwCBItem> & get_cb_items();
   };
 
 };