CutModelViewEventHandler Class Reference

#include <CutModelView.h>

List of all members.

Public Member Functions

 CutModelViewEventHandler ()
 ~CutModelViewEventHandler ()
void onColorChange (wxCommandEvent &event)
void onOpacityChange (wxScrollEvent &event)
void onViewBoxChecked (wxCommandEvent &event)
void onShapeChange (wxCommandEvent &event)
void onStatistics (wxCommandEvent &event)
void onExecute (wxCommandEvent &event)

Detailed Description

Definition at line 82 of file CutModelView.h.


Constructor & Destructor Documentation

CutModelViewEventHandler::CutModelViewEventHandler (  )  [inline]

Definition at line 85 of file CutModelView.h.

00085 : wxEvtHandler(){};

CutModelViewEventHandler::~CutModelViewEventHandler (  )  [inline]

Definition at line 86 of file CutModelView.h.

00086 {};


Member Function Documentation

void CutModelViewEventHandler::onColorChange ( wxCommandEvent &  event  ) 

Definition at line 205 of file CutModelView.cxx.

References CutModelMainPanel::changeColor(), CutModelView::getId(), CutModelMainPanel::getInstance(), and CutModelView::SetCurrentColor().

Referenced by CutModelView::getColorChooseActor().

00205                                                                  {
00206         CutModelView* parent = (CutModelView*)((wxWindow*)event.GetEventObject())->GetParent();
00207         wxColourDialog* colourdiag = new wxColourDialog(parent);
00208         if(colourdiag->ShowModal()==wxID_OK){
00209                 wxColour colour = colourdiag->GetColourData().GetColour();
00210                 
00211                 parent->SetCurrentColor(colour);
00212 
00213                 double r = (double)(colour.Red())/255.0;
00214                 double g = (double)(colour.Green())/255.0;
00215                 double b = (double)(colour.Blue())/255.0;               
00216                 CutModelMainPanel::getInstance()->changeColor(parent->getId(),r,g,b);
00217 
00218 
00219         }
00220         delete colourdiag;
00221 }

Here is the call graph for this function:

Here is the caller graph for this function:

void CutModelViewEventHandler::onExecute ( wxCommandEvent &  event  ) 

Definition at line 245 of file CutModelView.cxx.

References CutModelView::ExecuteCut().

Referenced by CutModelView::CutModelView().

00245                                                              {
00246      CutModelView* parent = (CutModelView*)((wxWindow*)event.GetEventObject())->GetParent();
00247 
00248          parent->ExecuteCut();
00249          
00250 }

Here is the call graph for this function:

Here is the caller graph for this function:

void CutModelViewEventHandler::onOpacityChange ( wxScrollEvent &  event  ) 

Definition at line 223 of file CutModelView.cxx.

References CutModelMainPanel::changeOpacity(), CutModelView::getId(), and CutModelMainPanel::getInstance().

Referenced by CutModelView::getOpacityActor().

00223                                                                   {
00224         CutModelView* parent = (CutModelView*)((wxWindow*)event.GetEventObject())->GetParent();
00225 
00226         CutModelMainPanel::getInstance()->changeOpacity(parent->getId(),event.GetInt());
00227 }

Here is the call graph for this function:

Here is the caller graph for this function:

void CutModelViewEventHandler::onShapeChange ( wxCommandEvent &  event  ) 

Definition at line 233 of file CutModelView.cxx.

References CutModelMainPanel::ChangeShape(), CutModelView::getId(), and CutModelMainPanel::getInstance().

Referenced by CutModelView::getBoxControls().

00233                                                                  {
00234         CutModelView* parent = (CutModelView*)((wxWindow*)event.GetEventObject())->GetParent();
00235 
00236         //if(event.GetSelection()>0){
00237                 //std::cout<<"id in CutModelViewEventHandler:: "<<parent->getId()<<std::endl;
00238         CutModelMainPanel::getInstance()->ChangeShape(parent->getId(),event.GetSelection());
00239         //}
00240 }

Here is the call graph for this function:

Here is the caller graph for this function:

void CutModelViewEventHandler::onStatistics ( wxCommandEvent &  event  ) 

Definition at line 241 of file CutModelView.cxx.

References CutModelView::getId(), CutModelMainPanel::getInstance(), and CutModelMainPanel::ShowStatistics().

Referenced by CutModelView::getBoxControls().

00241                                                                 {
00242         CutModelView* parent = (CutModelView*)((wxWindow*)event.GetEventObject())->GetParent();
00243         CutModelMainPanel::getInstance()->ShowStatistics(parent->getId());
00244 }

Here is the call graph for this function:

Here is the caller graph for this function:

void CutModelViewEventHandler::onViewBoxChecked ( wxCommandEvent &  event  ) 

Definition at line 228 of file CutModelView.cxx.

References CutModelView::getId(), CutModelMainPanel::getInstance(), and CutModelMainPanel::ShowViewBox().

Referenced by CutModelView::getBoxControls().

00228                                                                     {
00229     CutModelView* parent = (CutModelView*)((wxWindow*)event.GetEventObject())->GetParent();
00230 
00231         CutModelMainPanel::getInstance()->ShowViewBox(parent->getId(),event.IsChecked());
00232 }

Here is the call graph for this function:

Here is the caller graph for this function:


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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1