#include <creaImageIOSystem.h>
#include <creaWx.h>
#include <creaImageIOWxGimmickDialog.h>
-
#include <creaVtkBasicSlicer.h>
class myApp : public wxApp
if (w.GetReturnCode() == wxID_OK)
{
+
std::cout << "$$$$ main : user clicked 'OK' $$$$"<<std::endl;
std::cout << "$$$$ selected files : "<<std::endl;
std::vector<std::string> s;
w.GetSelectedImages(images);
crea::VtkBasicSlicer(images.front());
images.front()->Delete();
-
+
}
else if (w.GetReturnCode() == wxID_CANCEL)
{
<<std::endl;
}
-
+
// std::cout << "$$$$ main : deleting dialog"<<std::endl;
// delete w;
std::cout << "$$$$$$$$$$$$$$$$$$$$ main ended "<<std::endl;
#include <creaMessageManager.h>
#include <gimmick_ggo.h>
+
int main(int argc, char* argv[])
{
+
gengetopt_args_info args;
if (cmdline_parser (argc, argv, &args) != 0) return 0 ;
{
e.Print();
}
+
return 0;
}
}
fclose(rf_file);
- std::cout << "NewVtkImageDataFromRaw" << std::endl;
+ // std::cout << "NewVtkImageDataFromRaw" << std::endl;
vtkImageData* im = crea::NewVtkImageDataFromRaw( data,
h.width,
h.height,
h.frame);
- std::cout << "OK" << std::endl;
+ return im;
+
+ // std::cout << "OK" << std::endl;
}
//=====================================================================
// Splitting
int hsize = size.GetHeight();
- int bottom_minsize = 15;
+ int bottom_minsize = 40;
mSplitter->SetMinimumPaneSize( bottom_minsize );
mSplitter->SplitHorizontally( mNotebook, mBottomPanel,
{
if (!mConstructed) return;
ProcessImageEvents();
+ static bool first_time = true;
+ if (false)
+ {
+ mViewer->SetMovieSize(1);
+ mViewer->SetImage(0,GetDefaultImage());
+ first_time = false;
+ }
// mViewer->Refresh();
}