creaImageIO_lib
creaImageIO::WxGimmickFrame Class Reference

#include <creaImageIOWxGimmickFrame.h>

Inheritance diagram for creaImageIO::WxGimmickFrame:
Collaboration diagram for creaImageIO::WxGimmickFrame:

Public Member Functions

 WxGimmickFrame ()
 
 WxGimmickFrame (wxWindow *parent, const wxWindowID id, wxString title, const wxPoint &pos, const wxSize &size, int threads=0)
 
 ~WxGimmickFrame ()
 Destructor. More...
 

Private Attributes

boost::shared_ptr< GimmickmGimmick
 
WxGimmickViewmView
 

Detailed Description

Definition at line 44 of file creaImageIOWxGimmickFrame.h.

Constructor & Destructor Documentation

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 38 of file creaImageIOWxGimmickFrame.cpp.

References GIMMICK_2D_IMAGE_SELECTION, GIMMICK_3D_IMAGE_SELECTION, GimmickDebugMessage, creaImageIO::GimmickView::Initialize(), mGimmick, and mView.

44  : wxFrame( parent,
45  id,
46  title,
47  pos,
48  size,
49  wxRESIZE_BORDER |
50  wxSYSTEM_MENU |
51  wxCLOSE_BOX |
52  wxMAXIMIZE_BOX |
53  wxMINIMIZE_BOX |
54  wxCAPTION
55  ),
56  // mGimmick(0),
57  mView(0)
58  {
59  GimmickDebugMessage(1,"WxGimmickFrame::WxGimmickFrame"
60  <<std::endl);
61  wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL);
62 
63  try {
64 
65 // mGimmick = boost::shared_ptr<Gimmick>(new Gimmick());
66  mGimmick->Initialize();
67 
68  int min_dim = GIMMICK_2D_IMAGE_SELECTION;
69  int max_dim = GIMMICK_3D_IMAGE_SELECTION;
70  mView = new WxGimmickView(mGimmick,
71  this,
72  -1,
73  wxDefaultPosition,
74  size,
75  min_dim,
76  max_dim,
77  threads);
78  mView->Initialize();
79  }
80  catch (crea::Exception e)
81  {
82  e.Print();
83  return;
84  }
85 
86  topsizer->Add( mView,1,wxGROW,0);
87 
88  SetSizer( topsizer );
89  Layout();
90  }

Here is the call graph for this function:

creaImageIO::WxGimmickFrame::~WxGimmickFrame ( )

Destructor.

Definition at line 93 of file creaImageIOWxGimmickFrame.cpp.

References GimmickDebugMessage, mGimmick, and mView.

94  {
95  GimmickDebugMessage(1,"WxGimmickFrame::~WxGimmickFrame"
96  <<std::endl);
97  if (mView)
98  {
99  delete mView;
100  }
101  if (mGimmick)
102  {
103  mGimmick->Finalize();
104 // delete mGimmick;
105  }
106  }

Member Data Documentation

boost::shared_ptr<Gimmick> creaImageIO::WxGimmickFrame::mGimmick
private

Definition at line 73 of file creaImageIOWxGimmickFrame.h.

Referenced by WxGimmickFrame(), and ~WxGimmickFrame().

WxGimmickView* creaImageIO::WxGimmickFrame::mView
private

Definition at line 74 of file creaImageIOWxGimmickFrame.h.

Referenced by WxGimmickFrame(), and ~WxGimmickFrame().


The documentation for this class was generated from the following files: