wxMaracasDialog_NViewers Class Reference

#include <wxMaracasDialog_NViewers.h>

Collaboration diagram for wxMaracasDialog_NViewers:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxMaracasDialog_NViewers (wxWindow *parent, vtkImageData *img, std::vector< int > *type, wxString title)
 ~wxMaracasDialog_NViewers ()
void OnRefreshView (wxCommandEvent &event)
void OnDClickLeft (wxCommandEvent &event)
wxMaracas_N_ViewersWidgetgetViewer ()

Private Member Functions

 DECLARE_EVENT_TABLE ()

Private Attributes

wxMaracas_N_ViewersWidgetviewer
CutModelMainPanelcutter
std::vector< int > point

Detailed Description

Class constructor

Definition at line 10 of file wxMaracasDialog_NViewers.h.


Constructor & Destructor Documentation

wxMaracasDialog_NViewers::wxMaracasDialog_NViewers ( wxWindow *  parent,
vtkImageData *  img,
std::vector< int > *  type,
wxString  title 
)

Class constructor

Definition at line 15 of file wxMaracasDialog_NViewers.cpp.

References CutModelMainPanel::getInstance().

00016   : wxFrame(parent, -1, title)
00017 : wxFrame(NULL, -1, title, wxDefaultPosition,wxSize(700,700))
00018 {
00019 
00020         wxSplitterWindow *splitpanel = new wxSplitterWindow(this, -1);
00021         splitpanel->SetMinimumPaneSize(5);
00022 
00023         viewer = new wxMaracas_N_ViewersWidget(splitpanel, img, type);
00024 
00025         std::string path = crea::System::GetDllAppPath("bbcreaMaracasVisu.dll");
00026         cutter = CutModelMainPanel::getInstance(splitpanel, path);
00027         cutter->setRenderer( viewer->GetwxVtkBaseView(1)->GetRenderer() );
00028         cutter->setInteractor( viewer->GetwxVtkBaseView(1)->GetWxVTKRenderWindowInteractor() );
00029         cutter->setImageData(img);
00030         
00031         splitpanel->SplitVertically( cutter, viewer, 50);
00032 
00033 }

Here is the call graph for this function:

wxMaracasDialog_NViewers::~wxMaracasDialog_NViewers (  ) 

Class destructor

Definition at line 38 of file wxMaracasDialog_NViewers.cpp.

00038                                                    {    
00039 }


Member Function Documentation

wxMaracasDialog_NViewers::DECLARE_EVENT_TABLE (  )  [private]
wxMaracas_N_ViewersWidget * wxMaracasDialog_NViewers::getViewer (  ) 

Definition at line 66 of file wxMaracasDialog_NViewers.cpp.

References viewer.

00067 {
00068         return viewer;
00069 }

void wxMaracasDialog_NViewers::OnDClickLeft ( wxCommandEvent &  event  ) 

Definition at line 58 of file wxMaracasDialog_NViewers.cpp.

References wxMaracas_N_ViewersWidget::OnDClickLeft(), and viewer.

00059 {
00060         viewer->OnDClickLeft(event);
00061 }

Here is the call graph for this function:

void wxMaracasDialog_NViewers::OnRefreshView ( wxCommandEvent &  event  ) 

Definition at line 45 of file wxMaracasDialog_NViewers.cpp.

References wxMaracas_N_ViewersWidget::GetX(), wxMaracas_N_ViewersWidget::GetY(), wxMaracas_N_ViewersWidget::GetZ(), wxMaracas_N_ViewersWidget::OnRefreshView(), point, and viewer.

00046 {
00047         point.clear();
00048         point.push_back((int)viewer->GetX());
00049         point.push_back((int)viewer->GetY());
00050         point.push_back((int)viewer->GetZ());
00051 
00052         viewer->OnRefreshView(event);
00053 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 21 of file wxMaracasDialog_NViewers.h.

std::vector<int> wxMaracasDialog_NViewers::point [private]

Definition at line 23 of file wxMaracasDialog_NViewers.h.

Referenced by OnRefreshView().

Definition at line 20 of file wxMaracasDialog_NViewers.h.

Referenced by getViewer(), OnDClickLeft(), and OnRefreshView().


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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1