importexport/impexpcamera/orimpexpcamera_menu.cxx
#include "orimpexpcamera_menu.h"
bool ORMenuItemCameraExport::FBCreate()
{
FBSystem lSystem;
FBString lPath( lSystem.ApplicationPath );
Path = lPath + "/../../OpenRealitySDK/Samples/importexport/impexpcamera/res/";
Extension = "*.txt";
Label = "&OR - &Camera &Exporter";
Description = "OR - Camera Exporter Description";
return true;
}
bool ORMenuItemCameraExport::Execute(const char *pFilename)
{
if( mEngine )
{
mPopupExport.SetFilename( pFilename );
mPopupExport.SetEngine ( mEngine );
mPopupExport.Show ();
}
return true;
}
bool ORMenuItemCameraImport::FBCreate()
{
FBSystem lSystem;
FBString lPath( lSystem.ApplicationPath );
Path = lPath + "/../../OpenRealitySDK/Samples/importexport/impexpcamera/res/";
Extension = "*.txt";
Label = "OR - Camera Importer";
Description = "OR - Camera Importer Description";
return true;
}
bool ORMenuItemCameraImport::Execute(const char *pFilename)
{
if( mEngine )
{
mEngine->Import( pFilename );
}
return true;
}