std::vector<vtkImageData*> images;
bool r = creaImageIO::GimmickReaderDialog(images,
"GimmickReaderDialog test",
+ "localdatabase_Descriptor.dscp",
+ "Local Database",
0,0,800,800,2,3,3,1);
if (r)
creaImageIO::WxGimmickReaderDialog w(
0,
-1,
+ "localdatabase_Descriptor.dscp",
+ "Local Database",
_T("Select image(s) - Gimmick! (c) CREATIS-LRMN 2008"),
wxDefaultPosition,
wxSize(810,750),
//==============================================================
//==============================================================
- void Gimmick::Initialize(const std::string& i_namedescp, const std::string i_namedb)
+ void Gimmick::Initialize(const std::string i_namedescp, const std::string i_namedb)
{
mLocalDescpName = i_namedescp;
mLocalDBName = i_namedb;
void Initialize();
/// Initializes with the local database descriptor in the path given (read/creates databases, etc.)
- void Initialize(const std::string& namedescp, const std::string namedb = "Local Database");
+ void Initialize(const std::string namedescp, const std::string namedb = "Local Database");
/// Finalize (closes databases, etc.)
void Finalize();
{
bool GimmickReaderDialog(std::vector<vtkImageData*>& images,
+ const std::string i_namedescp ,
+ const std::string i_namedb ,
const std::string& title,
int posx,
int posy,
creaImageIO::WxGimmickReaderDialog w(0,
-1,
+ i_namedescp,
+ i_namedb,
crea::std2wx(title),
wxPoint(posx,posy),
wxSize(sizex,sizey),
*/
bool CREAIMAGEIO_EXPORT GimmickReaderDialog
(std::vector<vtkImageData*>& images,
+ const std::string i_namedescp ,
+ const std::string i_namedb = "Local Database",
const std::string& title = "Select images",
int posx = 0, int posy = 0,
int sizex = 1200, int sizey = 800,
wxWindowID id,
const wxPoint& pos,
const wxSize& size,
+ const std::string i_namedescp ,
+ const std::string i_namedb ,
int threads)
: wxPanel( parent,
id,
try {
mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
- mGimmick->Initialize();
+ mGimmick->Initialize(i_namedescp,i_namedb);
int min_dim = GIMMICK_2D_IMAGE_SELECTION;
int max_dim = GIMMICK_3D_IMAGE_SELECTION;
const wxWindowID id,
const wxPoint& pos,
const wxSize& size,
+ const std::string i_namedescp ,
+ const std::string i_namedb = _T("Local Database"),
int threads = 0);
~WxGimmickPanel();
// CTor
WxGimmickReaderDialog::WxGimmickReaderDialog(wxWindow *parent,
wxWindowID id,
+ const std::string i_namedescp ,
+ const std::string i_namedb ,
wxString title,
const wxPoint& pos,
const wxSize& size,
- int min_dim,
+ int min_dim,
int max_dim,
int output_dim,
int threads)
try {
mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
- mGimmick->Initialize();
+ mGimmick->Initialize(i_namedescp,i_namedb);
mView = new WxGimmickView(mGimmick,
WxGimmickReaderDialog();
WxGimmickReaderDialog(wxWindow *parent,
const wxWindowID id,
+ const std::string i_namedescp ,
+ const std::string i_namedb ,
wxString title,
const wxPoint& pos,
const wxSize& size,