+ //=========================================================================
+
+ std::string wxVtkSceneManager::generateANewNameForABox()
+ {
+ _numBoxes++;
+ std::stringstream boxname;
+ if(_numBoxes<10)
+ {
+ boxname << "Box0" << _numBoxes;
+ }else{
+ boxname << "Box" << _numBoxes;
+ }
+ return boxname.str();
+ }
+
+ //=========================================================================
+
+ std::string wxVtkSceneManager::findANewNameForABox()
+ {
+ std::string boxname=generateANewNameForABox();
+
+ while (boxExist(boxname)==true)
+ {
+ boxname=generateANewNameForABox();
+ } // while
+
+ return boxname;
+ }
+