MOboolean moDirectorChildConsole::Init( moText p_effectname, moText p_effectconfigname, moText p_apppath, moText p_datapath, moText p_consoleconfig, moIODeviceManager* p_pIODeviceManager, moResourceManager *p_pResourceManager, MOint p_render_to_texture_mode, MOint p_screen_width, MOint p_screen_height, MOint p_render_width, MOint p_render_height ) { wxFileName xfname( wxString(moText2Wx( p_effectconfigname )) ); wxString xstring; xstring = xfname.GetName(); const char *cfilename =(const char *) xstring.c_str(); m_EffectConfigName =(char*)cfilename; m_EffectName = p_effectname; return Init( p_apppath, p_datapath, p_consoleconfig, p_pIODeviceManager, p_pResourceManager, p_render_to_texture_mode, p_screen_width, p_screen_height, p_render_width, p_render_height); }
void SingleView::saveReconAsPly(std::string const& path, float scale) const { if (path.empty()) { throw std::invalid_argument("Empty path"); } if (!util::fs::dir_exists(path.c_str())) util::fs::mkdir(path.c_str()); std::string name(this->createFileName(scale)); std::string plyname(path + "/" + name + ".ply"); std::string xfname(path + "/" + name + ".xf"); std::cout << "Saving ply file as " << plyname << std::endl; mve::geom::save_ply_view(plyname, view->get_camera(), this->depthImg, this->confImg, this->scaled_image); mve::geom::save_xf_file(xfname, view->get_camera()); }