Public Member Functions | Private Attributes

creaImageIO::WxGimmickFrame Class Reference
[Top level graphical user interfaces]

#include <creaImageIOWxGimmickFrame.h>

Collaboration diagram for creaImageIO::WxGimmickFrame:
Collaboration graph
[legend]

List of all members.

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< GimmickmGimmick
WxGimmickViewmView

Detailed Description

Definition at line 16 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 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(); 
  }

Here is the call graph for this function:

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;
      }
  }


Member Data Documentation

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

Definition at line 45 of file creaImageIOWxGimmickFrame.h.

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

Definition at line 46 of file creaImageIOWxGimmickFrame.h.

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


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