#include <creaImageIOWxGimmickFrame.h>

Public Member Functions | |
| WxGimmickFrame () | |
| WxGimmickFrame (wxWindow *parent, const wxWindowID id, wxString title, const wxPoint &pos, const wxSize &size, int threads=0) | |
| ~WxGimmickFrame () | |
| Destructor. | |
Private Attributes | |
| boost::shared_ptr< Gimmick > | mGimmick |
| WxGimmickView * | mView |
Definition at line 16 of file creaImageIOWxGimmickFrame.h.
| creaImageIO::WxGimmickFrame::WxGimmickFrame | ( | ) |
| creaImageIO::WxGimmickFrame::WxGimmickFrame | ( | wxWindow * | parent, | |
| const wxWindowID | id, | |||
| wxString | title, | |||
| const wxPoint & | pos, | |||
| const wxSize & | size, | |||
| int | threads = 0 | |||
| ) |
Definition at line 10 of file creaImageIOWxGimmickFrame.cpp.
References GimmickDebugMessage, creaImageIO::GimmickView::Initialize(), mGimmick, and mView.
: wxFrame( parent,
id,
title,
pos,
size,
wxRESIZE_BORDER |
wxSYSTEM_MENU |
wxCLOSE_BOX |
wxMAXIMIZE_BOX |
wxMINIMIZE_BOX |
wxCAPTION
),
// mGimmick(0),
mView(0)
{
GimmickDebugMessage(1,"WxGimmickFrame::WxGimmickFrame"
<<std::endl);
wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL);
try {
// mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
mGimmick->Initialize();
int min_dim = GIMMICK_2D_IMAGE_SELECTION;
int max_dim = GIMMICK_3D_IMAGE_SELECTION;
mView = new WxGimmickView(mGimmick,
this,
-1,
wxDefaultPosition,
size,
min_dim,
max_dim,
threads);
mView->Initialize();
}
catch (crea::Exception e)
{
e.Print();
return;
}
topsizer->Add( mView,1,wxGROW,0);
SetSizer( topsizer );
Layout();
}

| creaImageIO::WxGimmickFrame::~WxGimmickFrame | ( | ) |
Destructor.
Definition at line 65 of file creaImageIOWxGimmickFrame.cpp.
References GimmickDebugMessage, mGimmick, and mView.
{
GimmickDebugMessage(1,"WxGimmickFrame::~WxGimmickFrame"
<<std::endl);
if (mView)
{
delete mView;
}
if (mGimmick)
{
mGimmick->Finalize();
// delete mGimmick;
}
}
boost::shared_ptr<Gimmick> creaImageIO::WxGimmickFrame::mGimmick [private] |
Definition at line 45 of file creaImageIOWxGimmickFrame.h.
Referenced by WxGimmickFrame(), and ~WxGimmickFrame().
WxGimmickView* creaImageIO::WxGimmickFrame::mView [private] |
Definition at line 46 of file creaImageIOWxGimmickFrame.h.
Referenced by WxGimmickFrame(), and ~WxGimmickFrame().
1.7.1