wxMaracas_N_ViewersWidget.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   wxMaracas
00004   Module:    $RCSfile: wxMaracas_N_ViewersWidget.h,v $
00005   Language:  C++
00006   Date:      $Date: 2010/08/04 18:45:27 $
00007   Version:   $Revision: 1.11 $
00008 
00009   Copyright: (c) 2002, 2003
00010   License:
00011   
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notice for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __WX__MARACAS__N_VIEWERSWIDGET__H__
00019 #define __WX__MARACAS__N_VIEWERSWIDGET__H__
00020 
00021 
00022 // -----------------------------------------------------------------------------------------------------------
00023 // WX headers inclusion.
00024 // For compilers that support precompilation, includes <wx/wx.h>.
00025 // -----------------------------------------------------------------------------------------------------------
00026 #include <wx/wxprec.h>
00027 #ifdef __BORLANDC__
00028 #pragma hdrstop
00029 #endif
00030 #ifndef WX_PRECOMP
00031 #include <wx/wx.h>
00032 #endif
00033 
00034 //------------------------------------------------------------------------------------------------------------
00035 // Includes
00036 //------------------------------------------------------------------------------------------------------------
00037 
00038 #include "vtkImageData.h"
00039 #include "wxMaracas_ViewerWidget.h"
00040 #include <iostream>
00041 #include <vector>
00042 
00043 //------------------------------------------------------------------------------------------------------------
00044 // Class definition
00045 //------------------------------------------------------------------------------------------------------------
00046 
00047 class creaMaracasVisu_EXPORT wxMaracas_N_ViewersWidget : public wxPanel
00048   {
00049   public:
00050 
00051                   
00052         //------------------------------------------------------------------------------------------------------------
00053         // Constructors & Destructors
00054         //------------------------------------------------------------------------------------------------------------
00055 
00068         wxMaracas_N_ViewersWidget(wxWindow *parent, vtkImageData* imagedata = NULL, std::vector<int> *nTypeView = NULL);
00077         wxMaracas_N_ViewersWidget(wxWindow *parent, std::vector<int> *nTypeView, vtkImageData* imagedata = NULL);
00082         ~wxMaracas_N_ViewersWidget();
00083 
00084         
00085         //------------------------------------------------------------------------------------------------------------
00086         // Methods
00087         //------------------------------------------------------------------------------------------------------------
00088 
00089     void Update();
00090     vtkRenderer *GetRenderer();
00091         void RefreshView();
00092 
00093         virtual void OnRefreshView(wxCommandEvent & event);
00094         void OnDClickLeft(wxCommandEvent & event);
00095         wxMaracas_ViewerWidget *GetWindow(int iWin);
00096         wxVtkBaseView *GetwxVtkBaseView(int iWin);
00097         virtual void Refresh(bool eraseBackground = true,const wxRect* rect = NULL );
00098         void SetImage( vtkImageData *image      );
00099         void ConfigureVTK();
00100         void SetType(std::vector<int>* type);
00101         void UpdateLayout(vtkImageData* imagedata);
00102 //      double GetZ(int iWin);
00103         double GetX();
00104         double GetY();
00105         double GetZ();
00106 
00107         void setColorTransferFunction(vtkColorTransferFunction* colortable);
00108 
00109         void setWindowLevel(double level);
00110         void setColorLevel(double level);
00111 
00112         //------------------------------------------------------------------------------------------------------------
00113         // Attributes
00114         //------------------------------------------------------------------------------------------------------------
00115 
00116   private:
00117         
00118         wxMaracas_ViewerWidget  *wxwindow1;
00119         wxMaracas_ViewerWidget  *wxwindow2;
00120         wxMaracas_ViewerWidget  *wxwindow3;
00121         wxMaracas_ViewerWidget  *wxwindow4;
00122 
00123         wxWindow *_currentwxw;
00124 
00125 
00126         std::vector<int> *nTypeView;
00127 
00128         vtkMPRBaseData* mvtkmprbasedata;  
00129          
00130         void invariant();
00131   DECLARE_EVENT_TABLE( );
00132   };
00133 
00134 
00135 #endif // __WX__MARACAS__N_VIEWERWIDGET__H__

Generated on 20 Oct 2010 for creaMaracasVisu_lib by  doxygen 1.6.1