wxMaracas_ViewerWidget Class Reference

#include <wxMaracas_ViewerWidget.h>

Collaboration diagram for wxMaracas_ViewerWidget:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxMaracas_ViewerWidget (wxWindow *parent, vtkImageData *imagedata, int type, vtkMPRBaseData *vtkmprbasedata=NULL)
 ~wxMaracas_ViewerWidget ()
void ConfigureVTK ()
void RefreshView ()
virtual void Refresh (bool eraseBackground=true, const wxRect *rect=NULL)
wxVtkBaseViewGetwxVtkBaseView ()
void SetImage (vtkImageData *image)
double GetX ()
double GetY ()
double GetZ ()
void setColorTransferFunction (vtkColorTransferFunction *colortable)
void setWindowLevel (double level)
void setColorLevel (double level)

Private Attributes

int mType
bool minternalVtkmprbasedata
vtkMPRBaseDatamvtkmprbasedata
wxVtk2DBaseViewmvtk2Dbaseview
wxVtkMPR2DViewmvtkmpr2Dview_X
wxVtkMPR2DViewmvtkmpr2Dview_Y
wxVtkMPR2DViewmvtkmpr2Dview_Z
wxWidgetMesure2D_Plane_in_MPRmwidgetMesure
vtkPlane2DViewmvtkplane2Dview
wxSphereViewmwxsphereview
wxVtkClipping3DViewmwxvtkclipping3Dview
wxVtk3DBaseViewmwxvtk3Dbaseview_Clipping3D
wxVtkMPR3DViewmwxvtkmpr3Dview
vtkMPR3DDataViewervtkmpr3Ddataviewer

Detailed Description

Definition at line 50 of file wxMaracas_ViewerWidget.h.


Constructor & Destructor Documentation

wxMaracas_ViewerWidget::wxMaracas_ViewerWidget ( wxWindow *  parent,
vtkImageData *  imagedata,
int  type,
vtkMPRBaseData vtkmprbasedata = NULL 
)

Definition at line 31 of file wxMaracas_ViewerWidget.cxx.

References vtkMPR3DDataViewer::Configure(), vtkClipping3DDataViewer::Configure(), wxVtkMPR3DView::CreateControlPanel(), wxVtkClipping3DView::CreateSurfControlPanel(), wxVtkClipping3DView::CreateVolControlPanel(), vtkBaseData::GetImageData(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), minternalVtkmprbasedata, mType, mvtk2Dbaseview, mvtkmpr2Dview_X, mvtkmpr2Dview_Y, mvtkmpr2Dview_Z, mvtkmprbasedata, mvtkplane2Dview, mwidgetMesure, mwxsphereview, mwxvtk3Dbaseview_Clipping3D, mwxvtkclipping3Dview, mwxvtkmpr3Dview, vtkBaseData::SetMarImageData(), wxVtk2DBaseView::SetVtkBaseData(), wxVtkClipping3DView::SetVtkClipping3DDataViewer(), wxVtkMPR3DView::SetVtkMPR3DDataViewer(), vtkMPR3DDataViewer::SetVtkMPRBaseData(), vtkClipping3DDataViewer::SetVtkMPRBaseData(), and vtkmpr3Ddataviewer.

00032                 : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
00033         {
00034                 wxPanel *panel = this;
00035                 wxWindow *wxwindow = NULL, *window3D    = 0;
00036                 wxSplitterWindow        *panelClipping3D= 0;
00037 //              wxPanel *panelControl                   = 0;
00038 //              wxFlexGridSizer  *sizerCtrol            = 0;            
00039                 wxPanel *controlPanelMPR3D              = 0;
00040                 wxPanel *controlPanelClippingSurf3D     = 0;
00041                 //RaC 03-2010 Adding a tab
00042                 wxPanel *controlPanelClippingVol3D      = 0;
00043 
00044                 wxBoxSizer *sizer                       = 0;
00045 
00046                 mType = type;
00047 
00048                 if (vtkmprbasedata==NULL)
00049                 {
00050                         minternalVtkmprbasedata = true;
00051                         mvtkmprbasedata         = new vtkMPRBaseData();
00052                         marImageData    *marimagedata   = new marImageData( imagedata );                        
00053                         mvtkmprbasedata->SetMarImageData(marimagedata);
00054                 } else {
00055                         minternalVtkmprbasedata         = false;
00056                         mvtkmprbasedata                 = vtkmprbasedata;
00057                 }
00058 
00059                 mvtk2Dbaseview                  = NULL;
00060                 mvtkmpr2Dview_X                 = NULL;
00061                 mvtkmpr2Dview_Y                 = NULL;
00062                 mvtkmpr2Dview_Z                 = NULL;
00063                 mvtkplane2Dview                 = NULL;
00064                 mwidgetMesure                   = NULL;
00065                 mwxsphereview                   = NULL;
00066                 mwxvtkclipping3Dview            = NULL;
00067                 mwxvtk3Dbaseview_Clipping3D     = NULL;
00068                 mwxvtkmpr3Dview                     = NULL;
00069                 vtkmpr3Ddataviewer                  = NULL;
00070 
00071                 if (type==-1)
00072                 {
00073                         mvtk2Dbaseview  = new wxVtk2DBaseView(panel);
00074                         mvtk2Dbaseview->SetVtkBaseData(mvtkmprbasedata);
00075                         wxwindow        = mvtk2Dbaseview->GetWxVTKRenderWindowInteractor();
00076                 }else if (type==0)
00077                 {
00078                         mvtkmpr2Dview_Z = new wxVtkMPR2DView(panel,2);
00079                         mvtkmpr2Dview_Z->SetVtkBaseData(mvtkmprbasedata);
00080                         wxwindow        = mvtkmpr2Dview_Z->GetWxVTKRenderWindowInteractor();
00081                 }else if (type==1)
00082                 {
00083                         mvtkmpr2Dview_X = new wxVtkMPR2DView(panel,0);
00084                         mvtkmpr2Dview_X->SetVtkBaseData(mvtkmprbasedata);
00085                         wxwindow        = mvtkmpr2Dview_X->GetWxVTKRenderWindowInteractor();
00086                 }else if (type==2)
00087                 {
00088                         mvtkmpr2Dview_Y = new wxVtkMPR2DView(panel,1);
00089                         mvtkmpr2Dview_Y->SetVtkBaseData(mvtkmprbasedata);
00090                         wxwindow        = mvtkmpr2Dview_Y->GetWxVTKRenderWindowInteractor();
00091                 }else if (type==3)
00092                 {
00093                         mwidgetMesure   = new wxWidgetMesure2D_Plane_in_MPR(panel);
00094                         mvtkplane2Dview = new vtkPlane2DView( mwidgetMesure->GetWindow2());
00095                         mwidgetMesure   -> SetVtkPlane2DView( mvtkplane2Dview );
00096                         mvtkplane2Dview -> SetImgSize( 200 );
00097                         mvtkplane2Dview -> SetVtkBaseData(mvtkmprbasedata);
00098                         wxwindow        = mwidgetMesure;
00099                 }else if (type==4)
00100                 {
00101                         mwxsphereview   = new wxSphereView( panel , mvtkmprbasedata, mvtkmprbasedata->GetImageData() );
00102                         wxwindow=mwxsphereview->GetWxVTKRenderWindowInteractor();
00103                 }else if (type==5)
00104                 {
00105                         panelClipping3D = new wxSplitterWindow( panel , -1);
00106                         mwxvtk3Dbaseview_Clipping3D             = new wxVtk3DBaseView( panelClipping3D );
00107 
00108                         mwxvtkclipping3Dview                    = new wxVtkClipping3DView(mwxvtk3Dbaseview_Clipping3D);
00109                         vtkClipping3DDataViewer *vtkclipping3Ddataviewer = new vtkClipping3DDataViewer(); 
00110                         vtkclipping3Ddataviewer->SetVtkMPRBaseData(mvtkmprbasedata);
00111                         vtkclipping3Ddataviewer->Configure();
00112                         mwxvtkclipping3Dview->SetVtkClipping3DDataViewer(vtkclipping3Ddataviewer);
00113 
00114                         mwxvtkmpr3Dview                         = new wxVtkMPR3DView( mwxvtk3Dbaseview_Clipping3D );
00115                         vtkMPR3DDataViewer *vtkmpr3Ddataviewer  = new vtkMPR3DDataViewer(); 
00116                         vtkmpr3Ddataviewer->SetVtkMPRBaseData(mvtkmprbasedata);
00117                         vtkmpr3Ddataviewer->Configure();
00118                         mwxvtkmpr3Dview->SetVtkMPR3DDataViewer(vtkmpr3Ddataviewer);
00119 
00120                         window3D = mwxvtk3Dbaseview_Clipping3D->GetWxVTKRenderWindowInteractor();
00121 
00122 //--
00123                         wxNotebook *notebook = new wxNotebook(panelClipping3D, -1);
00124 
00125                         // First tab
00126                         controlPanelMPR3D               = mwxvtkmpr3Dview->CreateControlPanel(notebook, true);
00127                         notebook->AddPage(controlPanelMPR3D, _T("Planes") );
00128 
00129                         // Second Tab
00130                         controlPanelClippingSurf3D      = mwxvtkclipping3Dview->CreateSurfControlPanel(notebook);                       
00131                         notebook->AddPage(controlPanelClippingSurf3D, _T("Surface") );
00132                         
00133                         //Third tab
00134                         //RaC 03-2010 Moving the volume functionnality to other tab. The changes were realized only in the wxVtkClipping3DViewCntrlPanel class
00135                         controlPanelClippingVol3D       = mwxvtkclipping3Dview->CreateVolControlPanel(notebook);
00136                         notebook->AddPage(controlPanelClippingVol3D, _T("Volume") );
00137 
00138                         panelClipping3D->SplitHorizontally( notebook , window3D , 10  );
00139                         //panelClipping3D->SetMinimumPaneSize( 15 );
00140                         panelClipping3D->SetMinimumPaneSize( 70 ); // JPR 
00141                         
00142         /*              EED 04 / Febrary / 2010
00143                         panelControl                    = new wxPanel(panelClipping3D,-1);      
00144                         controlPanelMPR3D               = mwxvtkmpr3Dview->CreateControlPanel(panelControl, false);
00145                         controlPanelClipping3D  = mwxvtkclipping3Dview->CreateControlPanel(panelControl);
00146         //                               mbtnCutImageData               = new wxCheckBox(panelControl,-1,_T("Cut Module"));
00147         //              Connect(_btnCutImageData->GetId() , wxEVT_COMMAND_CHECKBOX_CLICKED  , (wxObjectEventFunction) &wxMPRWidget::OnCutImagaData );
00148                         sizerCtrol             = new wxFlexGridSizer(1);
00149                         sizerCtrol->Add(controlPanelMPR3D       , 1, wxALL|wxEXPAND, 2);
00150                         sizerCtrol->Add(controlPanelClipping3D  , 1, wxALL|wxEXPAND, 2);
00151         //              sizerCtrol->Add( mbtnCutImageData       , 1, wxALL, 2);
00152                         panelControl->SetAutoLayout(true);
00153                         panelControl->SetSizer(sizerCtrol);
00154                         panelControl->SetSize(400,350);
00155                         panelControl->Layout();
00156                         panelClipping3D -> SplitHorizontally( panelControl , window3D , 10  );
00157                         panelClipping3D -> SetMinimumPaneSize( 5 );
00158          */
00159                         wxwindow=panelClipping3D;
00160                         
00161                 } else if (type==6)             {
00162                         panelClipping3D = new wxSplitterWindow( panel , -1);
00163                         mwxvtk3Dbaseview_Clipping3D     = new wxVtk3DBaseView( panelClipping3D );
00164 
00165                         mwxvtkmpr3Dview         = new wxVtkMPR3DView( mwxvtk3Dbaseview_Clipping3D );
00166 
00167                         vtkmpr3Ddataviewer      = new vtkMPR3DDataViewer();     
00168                         
00169                         wxWindow *window3D = mwxvtk3Dbaseview_Clipping3D->GetWxVTKRenderWindowInteractor();
00170 
00171                         wxPanel *panelControl   = new wxPanel(panelClipping3D,-1);      
00172                         wxPanel *controlPanelMPR3D = mwxvtkmpr3Dview->CreateControlPanel(panelControl, false);
00173 
00174                         wxFlexGridSizer  *sizerCtrol     = new wxFlexGridSizer(1);
00175                         sizerCtrol->Add(controlPanelMPR3D, 1, wxALL|wxEXPAND, 2);
00176 
00177                         panelControl->SetAutoLayout(true);
00178                         panelControl->SetSizer(sizerCtrol);
00179                         panelControl->SetSize(400,350);
00180                         panelControl->Layout();
00181                         //panelClipping3D->SetMinimumPaneSize( 5 );
00182                         panelClipping3D->SetMinimumPaneSize( 100 );  // JPR
00183 
00184                         panelClipping3D->SplitHorizontally( panelControl , window3D , 10  );
00185                         wxwindow=panelClipping3D;
00186 
00187                         vtkmpr3Ddataviewer->SetVtkMPRBaseData(mvtkmprbasedata);                 
00188                         //vtkmpr3Ddataviewer->Configure();
00189 
00190                         mwxvtkmpr3Dview->SetVtkMPR3DDataViewer(vtkmpr3Ddataviewer);
00191                         
00192                 }else if (type==7)
00193                 {
00194                         mwxvtk3Dbaseview_Clipping3D = new wxVtk3DBaseView( panel );                                             
00195                         wxwindow = (wxWindow*) mwxvtk3Dbaseview_Clipping3D->GetWxVTKRenderWindowInteractor();
00196                 }
00197 
00198         sizer = new wxBoxSizer(wxVERTICAL);
00199         sizer->Add( wxwindow, 1, wxGROW);       
00200         panel->SetSizer(sizer);
00201         panel->SetAutoLayout(true);
00202         sizer->Layout();
00203         panel->Layout();
00204         panel->Refresh();
00205 
00206         //   mbbtkViewerMaracas= NULL;
00207         }

Here is the call graph for this function:

wxMaracas_ViewerWidget::~wxMaracas_ViewerWidget (  ) 

Member Function Documentation

void wxMaracas_ViewerWidget::ConfigureVTK (  ) 

Definition at line 234 of file wxMaracas_ViewerWidget.cxx.

References wxVtkClipping3DView::Configure(), wxVtkMPR3DView::Configure(), vtkMPR3DDataViewer::Configure(), wxVtk3DBaseView::Configure(), wxSphereView::Configure(), vtkPlane2DView::Configure(), wxVtkMPR2DView::Configure(), wxVtk2DBaseView::Configure(), vtkMPRBaseData::Configure(), wxWidgetMesure2D_Plane::ConfigureA(), vtkBaseData::GetImageData(), mvtk2Dbaseview, mvtkmpr2Dview_X, mvtkmpr2Dview_Y, mvtkmpr2Dview_Z, mvtkmprbasedata, mvtkplane2Dview, mwidgetMesure, mwxsphereview, mwxvtk3Dbaseview_Clipping3D, mwxvtkclipping3Dview, mwxvtkmpr3Dview, wxVtkMPR3DView::ResetCamera(), wxWidgetMesure2D_Plane_in_MPR::SetActiveLink(), wxWidgetMesure2D::SetMesureScale(), vtkMPRBaseData::SetX(), vtkMPRBaseData::SetY(), vtkBaseData::SetZ(), and vtkmpr3Ddataviewer.

Referenced by wxMaracas_N_ViewersWidget::ConfigureVTK(), and wxMaracas_N_ViewersWidget::UpdateLayout().

00235         {
00236                 int x=0,y=0,z=0;
00237                 /*
00238                 int ext[6];
00239                 ext[0]=0;
00240                 ext[1]=0;
00241                 ext[2]=0;
00242                 ext[3]=0;
00243                 ext[4]=0;
00244                 ext[5]=0;
00245                 */
00246                 int ext[] = {0, 0, 0, 0, 0, 0}; //JPR
00247                 
00248                 /*double org[3],spc[3];
00249                 org[0]=0;
00250                 org[1]=0;
00251                 org[2]=0;
00252                 spc[0]=0;
00253                 spc[1]=0;
00254                 spc[2]=0;
00255                 */
00256                 double org[]={0.0, 0.0, 0.0}; //JPR
00257                 double spc[]={0.0, 0.0, 0.0}; //JPR
00258                 if (mvtkmprbasedata!=NULL)
00259                 {
00260                         mvtkmprbasedata->Configure();
00261                         /*
00262                         x = mvtkmprbasedata->GetMaxPositionX()/2;
00263                         y = mvtkmprbasedata->GetMaxPositionY()/2;
00264                         z = mvtkmprbasedata->GetMaxPositionZ()/2;               
00265                         */      
00266 
00267                         if(mvtkmprbasedata->GetImageData() != NULL)
00268                         {
00269                                 mvtkmprbasedata->GetImageData()->GetExtent(ext);
00270                                 mvtkmprbasedata->GetImageData()->GetOrigin(org);
00271                                 mvtkmprbasedata->GetImageData()->GetSpacing(spc);
00272 
00273                                 x = (ext[0]+ext[1])/2;
00274                                 y = (ext[2]+ext[3])/2;
00275                                 z = (ext[4]+ext[5])/2;
00276 
00277                                 mvtkmprbasedata->SetX( x );
00278                                 mvtkmprbasedata->SetY( y );
00279                                 mvtkmprbasedata->SetZ( z );
00280                         }
00281                         else
00282                         {
00283                                 mvtkmprbasedata->SetX( 0 );
00284                                 mvtkmprbasedata->SetY( 0 );
00285                                 mvtkmprbasedata->SetZ( 0 );
00286                         }
00287                 }
00288                 
00289                 if ( mvtk2Dbaseview      !=NULL ) { mvtk2Dbaseview->Configure();                }
00290                 if ( mvtkmpr2Dview_X     !=NULL ) { mvtkmpr2Dview_X->Configure();               }
00291                 if ( mvtkmpr2Dview_Y     !=NULL ) { mvtkmpr2Dview_Y->Configure();               }
00292                 if ( mvtkmpr2Dview_Z     !=NULL ) { mvtkmpr2Dview_Z->Configure();               }
00293                 if ( mvtkplane2Dview     !=NULL ) { mvtkplane2Dview->Configure();               }
00294                 if ( mwidgetMesure       !=NULL ) { mwidgetMesure->ConfigureA(mvtkplane2Dview); }
00295                 if ( mwidgetMesure       !=NULL ) { mwidgetMesure->ConfigureA(mvtkplane2Dview); }
00296                 if ( mwidgetMesure       !=NULL ) { mwidgetMesure->SetActiveLink(true);         }
00297                 if ( mwidgetMesure       !=NULL ) { mwidgetMesure->SetMesureScale( 1 );         }
00298                 if ( mwxsphereview       !=NULL ) { mwxsphereview->Configure();                 }
00299                 
00300 
00301                 if (mwxvtk3Dbaseview_Clipping3D !=NULL) 
00302                 {
00303                         mwxvtk3Dbaseview_Clipping3D->Configure();                               
00304                 }
00305 
00306                 if (vtkmpr3Ddataviewer                  !=NULL)
00307                 {                       
00308                         vtkmpr3Ddataviewer->Configure();                        
00309 
00310                 }
00311                 
00312 
00313 
00314                 if (mwxvtkmpr3Dview                     !=NULL)
00315                 {                       
00316 
00317                         mwxvtkmpr3Dview->Configure();
00318                         mwxvtkmpr3Dview->ResetCamera(ext,org,spc);
00319                 }
00320 
00321                 if (mwxvtkclipping3Dview                !=NULL) 
00322                 { 
00323                         mwxvtkclipping3Dview->Configure();      
00324                 }
00325 
00326                 
00327                 if (mwxvtkclipping3Dview                !=NULL) { mwxvtkclipping3Dview->Configure();    }
00328 
00329                 
00330                 //if(vtkmpr3Ddataviewer!=NULL){vtkmpr3Ddataviewer->Configure();}
00331 //              RefreshView();
00332 
00333                 //if (mwxvtkmpr3Dview                           !=NULL) {
00334                 //      mwxvtkmpr3Dview->ResetCamera();
00335                 //}
00336         }

Here is the call graph for this function:

Here is the caller graph for this function:

wxVtkBaseView * wxMaracas_ViewerWidget::GetwxVtkBaseView (  ) 

Definition at line 362 of file wxMaracas_ViewerWidget.cxx.

References mvtk2Dbaseview, mvtkmpr2Dview_X, mvtkmpr2Dview_Y, mvtkmpr2Dview_Z, mvtkplane2Dview, mwxsphereview, and mwxvtk3Dbaseview_Clipping3D.

Referenced by wxMaracas_N_ViewersWidget::GetwxVtkBaseView().

00363         {
00364                 wxVtkBaseView *wxvtkbaseview=NULL;
00365                 if (mvtk2Dbaseview!=NULL){ 
00366                         wxvtkbaseview = mvtk2Dbaseview;                 
00367                 }
00368                 if (mvtkmpr2Dview_X!=NULL){ 
00369                         wxvtkbaseview = mvtkmpr2Dview_X;
00370                 }
00371                 if (mvtkmpr2Dview_Y!=NULL){ 
00372                         wxvtkbaseview = mvtkmpr2Dview_Y;
00373                 }
00374                 if (mvtkmpr2Dview_Z!=NULL){ 
00375                         wxvtkbaseview = mvtkmpr2Dview_Z;                
00376                 }
00377                 if (mvtkplane2Dview!=NULL){
00378                         wxvtkbaseview = mvtkplane2Dview;                
00379                 }
00380                 if (mwxsphereview!=NULL){ 
00381                         wxvtkbaseview = mwxsphereview;
00382                 }
00383                 if (mwxvtk3Dbaseview_Clipping3D!=NULL){ 
00384                         wxvtkbaseview = mwxvtk3Dbaseview_Clipping3D;
00385                 }
00386                 return wxvtkbaseview   ;
00387         }

Here is the caller graph for this function:

double wxMaracas_ViewerWidget::GetX (  ) 

Definition at line 403 of file wxMaracas_ViewerWidget.cxx.

References vtkMPRBaseData::GetX(), and mvtkmprbasedata.

00404         {
00405                 double value = -1;
00406                 if(mvtkmprbasedata !=NULL)
00407                 {
00408                         value = mvtkmprbasedata->GetX();
00409                 }
00410                 return value;
00411         }

Here is the call graph for this function:

double wxMaracas_ViewerWidget::GetY (  ) 

Definition at line 413 of file wxMaracas_ViewerWidget.cxx.

References vtkMPRBaseData::GetY(), and mvtkmprbasedata.

00414         {
00415                 double value = -1;
00416                 if(mvtkmprbasedata !=NULL)
00417                 {
00418                         value = mvtkmprbasedata->GetY();
00419                 }
00420                 return value;
00421         }

Here is the call graph for this function:

double wxMaracas_ViewerWidget::GetZ (  ) 

Definition at line 423 of file wxMaracas_ViewerWidget.cxx.

References vtkBaseData::GetZ(), and mvtkmprbasedata.

00424         {
00425                 double value = -1;
00426                 if(mvtkmprbasedata !=NULL)
00427                 {
00428                         value = mvtkmprbasedata->GetZ();
00429                 }
00430                 return value;
00431 //              return mvtk2Dbaseview->GetVtkBaseData()->GetZ();
00432         }

Here is the call graph for this function:

void wxMaracas_ViewerWidget::Refresh ( bool  eraseBackground = true,
const wxRect *  rect = NULL 
) [virtual]

Definition at line 340 of file wxMaracas_ViewerWidget.cxx.

00341   {
00342     wxPanel::Refresh(false);
00343   }

void wxMaracas_ViewerWidget::RefreshView (  ) 
void wxMaracas_ViewerWidget::setColorLevel ( double  level  ) 

Definition at line 464 of file wxMaracas_ViewerWidget.cxx.

References mvtkmpr2Dview_X, mvtkmpr2Dview_Y, mvtkmpr2Dview_Z, and wxVtk2DBaseView::setColorLevel().

Referenced by wxMaracas_N_ViewersWidget::setColorLevel().

00464                                                               {
00465                 if(mvtkmpr2Dview_X!=NULL){
00466                         mvtkmpr2Dview_X->setColorLevel(level);
00467                 }
00468                 if(mvtkmpr2Dview_Y!=NULL){
00469                         mvtkmpr2Dview_Y->setColorLevel(level);
00470                 }
00471                 if(mvtkmpr2Dview_Z!=NULL){
00472                         mvtkmpr2Dview_Z->setColorLevel(level);
00473                 }
00474                 /*if(mwxvtkmpr3Dview!=NULL){
00475                         mwxvtkmpr3Dview->setColorLevel(level);
00476                 }*/
00477     }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxMaracas_ViewerWidget::setColorTransferFunction ( vtkColorTransferFunction *  colortable  ) 

Definition at line 434 of file wxMaracas_ViewerWidget.cxx.

References mvtkmpr2Dview_X, mvtkmpr2Dview_Y, mvtkmpr2Dview_Z, mwxvtkmpr3Dview, wxVtkMPR3DView::setColorTransferFunction(), and wxVtk2DBaseView::setColorTransferFunction().

Referenced by wxMaracas_N_ViewersWidget::setColorTransferFunction().

00434                                                                                                  {              
00435                 if(mvtkmpr2Dview_X!=NULL){
00436                         mvtkmpr2Dview_X->setColorTransferFunction(colortable);
00437                 }
00438                 if(mvtkmpr2Dview_Y!=NULL){
00439                         mvtkmpr2Dview_Y->setColorTransferFunction(colortable);
00440                 }
00441                 if(mvtkmpr2Dview_Z!=NULL){
00442                         mvtkmpr2Dview_Z->setColorTransferFunction(colortable);
00443                 }
00444                 if(mwxvtkmpr3Dview!=NULL){
00445                         mwxvtkmpr3Dview->setColorTransferFunction(colortable);
00446                 }
00447         }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxMaracas_ViewerWidget::SetImage ( vtkImageData *  image  ) 

Definition at line 389 of file wxMaracas_ViewerWidget.cxx.

References marImageData::AddImageData(), vtkBaseData::GetMarImageData(), mvtkmprbasedata, and marImageData::removeImageData().

Referenced by wxMaracas_N_ViewersWidget::SetImage().

00390         {
00391                 if(mvtkmprbasedata !=NULL)
00392                 {
00393                         marImageData* mar = mvtkmprbasedata->GetMarImageData();
00394                         mar->removeImageData(0);
00395                         mar->AddImageData(image);
00396                 }
00397 
00398 //EED 26/11/2009
00399 //              ConfigureVTK();
00400 //              RefreshView();
00401         }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxMaracas_ViewerWidget::setWindowLevel ( double  level  ) 

Definition at line 449 of file wxMaracas_ViewerWidget.cxx.

References mvtkmpr2Dview_X, mvtkmpr2Dview_Y, mvtkmpr2Dview_Z, and wxVtk2DBaseView::setWindowLevel().

Referenced by wxMaracas_N_ViewersWidget::setWindowLevel().

00449                                                                {
00450                 if(mvtkmpr2Dview_X!=NULL){
00451                         mvtkmpr2Dview_X->setWindowLevel(level);
00452                 }
00453                 if(mvtkmpr2Dview_Y!=NULL){
00454                         mvtkmpr2Dview_Y->setWindowLevel(level);
00455                 }
00456                 if(mvtkmpr2Dview_Z!=NULL){
00457                         mvtkmpr2Dview_Z->setWindowLevel(level);
00458                 }
00459                 /*if(mwxvtkmpr3Dview!=NULL){
00460                         mwxvtkmpr3Dview->setWindowLevel(level);
00461                 }*/
00462         }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 88 of file wxMaracas_ViewerWidget.h.

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

Definition at line 86 of file wxMaracas_ViewerWidget.h.

Referenced by wxMaracas_ViewerWidget().

Definition at line 104 of file wxMaracas_ViewerWidget.h.

Referenced by ConfigureVTK(), and wxMaracas_ViewerWidget().


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

Generated on 20 Oct 2010 for creaMaracasVisu_lib by  doxygen 1.6.1