wxVtk2DBaseView Class Reference

#include <wxVtk2DBaseView.h>

Inheritance diagram for wxVtk2DBaseView:
Inheritance graph
[legend]
Collaboration diagram for wxVtk2DBaseView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxVtk2DBaseView (wxWindow *parent)
virtual ~wxVtk2DBaseView ()
virtual void Configure (bool okimage=true)
vtkBaseDataGetVtkBaseData ()
void SetVtkBaseData (vtkBaseData *vtkbasedata)
virtual void Refresh ()
virtual void ResetView ()
virtual int GetActualSlice ()
virtual void SetActualSlice (int slice)
void SetInteractorStyleImage (vtkInteractorStyleBaseView *interactorstylebaseview)
virtual vtkRenderer * GetRenderer ()
virtual vtkRenderWindow * GetRenWin ()
virtual void TransformCoordinate_spacing_ViewToModel (double &X, double &Y, double &Z)
virtual void TransformCoordinate_spacing_ModelToView (double &X, double &Y, double &Z)
virtual void GetSpacing (double spc[3])
void setColorTransferFunction (vtkColorTransferFunction *colortable)
void setWindowLevel (double level)
void setColorLevel (double level)
wxVTKRenderWindowInteractorGetWxVTKRenderWindowInteractor () throw (char*)
virtual void Configure ()
virtual void RefreshView ()
virtual void TransFromCoordScreenToWorld (double &X, double &Y, double &Z, bool keepNormalDirection=false, int type=2)
void SetInteractorStyleBaseView (vtkInteractorStyleImage *interactorStyle)
vtkInteractorStyleImage * GetInteractorStyleBaseView ()

Public Attributes

vtkImageViewer2_XYZ_imageViewer2XYZ

Private Attributes

vtkBaseData_vtkbasedata
vtkInfoTextImage_vtkIinfoTextImage
vtkInfoTextImageInteractor_vtkIinfoTextImageInteractor

Detailed Description

Definition at line 17 of file wxVtk2DBaseView.h.


Constructor & Destructor Documentation

wxVtk2DBaseView::wxVtk2DBaseView ( wxWindow *  parent  ) 

Definition at line 8 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, and _vtkIinfoTextImage.

00009 :wxVtkBaseView(parent)
00010 {
00011    _imageViewer2XYZ   = NULL;
00012    _vtkIinfoTextImage = NULL;
00013 }

wxVtk2DBaseView::~wxVtk2DBaseView (  )  [virtual]

Definition at line 17 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, and _vtkIinfoTextImage.

00018 {       
00019         if (_vtkIinfoTextImage!=NULL) 
00020         {
00021            delete _vtkIinfoTextImage; 
00022         }
00023 
00024         if (_imageViewer2XYZ!=NULL) 
00025         {
00026            delete _imageViewer2XYZ; 
00027         }
00028 }


Member Function Documentation

void wxVtkBaseView::Configure (  )  [virtual, inherited]

Reimplemented in wxVtk2DView_TMP, vtkPlane2DView, wxSphereView, wxVtk3DBaseView, and wxVtkMPR2DView.

Definition at line 47 of file wxVtkBaseView.cxx.

Referenced by Configure(), wxPanelCuttingImageData::CreatePlotHistogrammeInterface(), and ResetView().

00048 {
00049 }

Here is the caller graph for this function:

void wxVtk2DBaseView::Configure ( bool  okimage = true  )  [virtual]

Definition at line 84 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, _vtkIinfoTextImage, _vtkIinfoTextImageInteractor, vtkInfoTextImage::Configure(), wxVtkBaseView::Configure(), marImageData::GetImageData(), wxVtkBaseView::GetInteractorStyleBaseView(), vtkBaseData::GetMarImageData(), GetVtkBaseData(), vtkImageViewer2_XYZ::GetVtkImageViewer2(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), vtkInteractorStyleBaseView2D::New(), vtkImageViewer2_XYZ::SetExtentDimension(), SetInteractorStyleImage(), vtkInfoTextImage::SetMarImageData(), vtkInfoTextImageInteractor::SetModelVtkInfoTextImage(), and vtkInfoTextImage::SetWxVtk2DBaseView().

Referenced by wxQuantificationWidgetCT::ConfigureVTK(), wxProcessingCTWidget::ConfigureVTK(), wxEmptyPanel_3_Widget::ConfigureVTK(), and wxMaracasImageBrowser02::LoadData().

00085 {
00086         double spx,spy,spz;
00087         int x1,x2,y1,y2,z1,z2;
00088         wxVtkBaseView::Configure();
00089 
00090 // EED 17 Oct 2007
00091         if (_imageViewer2XYZ==NULL)
00092         {
00093                 _imageViewer2XYZ = new vtkImageViewer2_XYZ();
00094                 wxVTKRenderWindowInteractor *iren = GetWxVTKRenderWindowInteractor();
00095                 _imageViewer2XYZ -> GetVtkImageViewer2()->SetupInteractor ( iren );
00096                 SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
00097         }
00098 
00099 
00100         vtkImageData *imageData = GetVtkBaseData()->GetMarImageData()->GetImageData();
00101         if (imageData!=NULL){
00102                 imageData->UpdateInformation();
00103                 imageData->SetUpdateExtent( imageData->GetWholeExtent());
00104                 imageData->Update();
00105                 if (okimage==true){
00106                         imageData->GetSpacing (spx,spy,spz);
00107                         imageData->GetExtent (x1,x2,y1,y2,z1,z2);
00108 
00109 
00110                         _imageViewer2XYZ->GetVtkImageViewer2()->SetInput(imageData );
00111                         _imageViewer2XYZ->SetExtentDimension(x1,x2,y1,y2,z1,z2);
00112                         double range[2];
00113                           imageData->GetScalarRange(range);
00114                           if (range[1]<20000){
00115                                  _imageViewer2XYZ->GetVtkImageViewer2()->SetColorWindow( (range[1]-range[0])/2 );
00116                                  _imageViewer2XYZ->GetVtkImageViewer2()->SetColorLevel( (range[1]+range[0])/4 );
00117                           } else {
00118                                  _imageViewer2XYZ->GetVtkImageViewer2()->SetColorWindow( 1000 );
00119                                  _imageViewer2XYZ->GetVtkImageViewer2()->SetColorLevel( 500 );
00120                           }
00121 // EED 31 Janvier 2007
00122 //vtkImageActor *vtkimageactor = _imageViewer2XYZ->GetVtkImageViewer2()->GetImageActor ();
00123 //vtkimageactor->InterpolateOff ();
00124 //vtkLookupTable * _collookup = vtkLookupTable::New( );
00125 //_collookup->SetNumberOfColors( 256 );
00126 //_collookup->SetTableRange( 0 , 255 );
00127 //_collookup->Build( );
00128 //_collookup->SetTableValue( 0  , 1 , 0 , 0 , 1 );
00129 //_collookup->SetTableValue(128 , 0 , 0 , 1 , 1 );
00130 //_collookup->SetTableValue(255 , 0 , 1 , 0 , 1 );
00131 //_imageViewer2XYZ->GetVtkImageViewer2()->GetWindowLevel ()->SetLookupTable(_collookup );
00132 
00133 
00134 // EED 17 Oct 2007
00135 //                      SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
00136 
00137 
00138                         vtkImageViewer2 *IV2=_imageViewer2XYZ->GetVtkImageViewer2();
00139                         vtkCamera *camera = IV2->GetRenderer()->GetActiveCamera();
00140 
00141 //EED 17Avril2009       
00142 /*                      
00143                         camera->SetViewUp               ( spx*0                 , -spy*1                        , spz*0         );
00144                         camera->SetPosition             ( spx*(x1+x2)/2 , spy*(y1+y2)/2 , -spz*10000    ); 
00145                         camera->SetFocalPoint   ( spx*(x1+x2)/2 , spy*(y1+y2)/2 , spz*0         ); 
00146 */ 
00147                         camera->SetViewUp               ( spx*0                 , spy*1                 , spz*0         );
00148                         camera->SetPosition             ( spx*(x1+x2)/2 , spy*(y1+y2)/2 , spz*10000     ); 
00149                         camera->SetFocalPoint   ( spx*(x1+x2)/2 , spy*(y1+y2)/2 , spz*0         ); 
00150                         
00151                         
00152                         camera->SetClippingRange( 0.01                  , 1000000 );
00153                         camera->ComputeViewPlaneNormal();
00154                         camera->SetParallelScale( spx*(x2-x1)/3.0 );
00155                         
00156                         // text information over the graphic window
00157                         if(_vtkIinfoTextImage == NULL){
00158                                 _vtkIinfoTextImage              = new vtkInfoTextImage();
00159                                 _vtkIinfoTextImageInteractor    = new vtkInfoTextImageInteractor();                             
00160                                 ((vtkInteractorStyleBaseView*)this->GetInteractorStyleBaseView())->AddInteractorStyleMaracas(_vtkIinfoTextImageInteractor);
00161                         }
00162                         _vtkIinfoTextImage->SetWxVtk2DBaseView(this);
00163                         _vtkIinfoTextImage->SetMarImageData( GetVtkBaseData()->GetMarImageData() );
00164                         _vtkIinfoTextImageInteractor->SetModelVtkInfoTextImage(_vtkIinfoTextImage);                             
00165                         _vtkIinfoTextImage->Configure();
00166                         
00167                 } // okimage
00168         } // imageData
00169 
00170 }

Here is the call graph for this function:

Here is the caller graph for this function:

int wxVtk2DBaseView::GetActualSlice (  )  [virtual]

Reimplemented in vtkPlane2DView, and wxVtkMPR2DView.

Definition at line 174 of file wxVtk2DBaseView.cxx.

References _vtkbasedata, and vtkBaseData::GetZ().

00175 {
00176    return (int)(_vtkbasedata->GetZ());
00177 }

Here is the call graph for this function:

vtkInteractorStyleImage * wxVtkBaseView::GetInteractorStyleBaseView (  )  [inherited]
vtkRenderer * wxVtk2DBaseView::GetRenderer (  )  [virtual]

Reimplemented from wxVtkBaseView.

Definition at line 229 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, and vtkImageViewer2_XYZ::GetVtkImageViewer2().

Referenced by vtkInfoTextImage::Create_Text_Label().

00230 {
00231    return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer();
00232 }

Here is the call graph for this function:

Here is the caller graph for this function:

vtkRenderWindow * wxVtk2DBaseView::GetRenWin (  )  [virtual]

Reimplemented from wxVtkBaseView.

Definition at line 234 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, and vtkImageViewer2_XYZ::GetVtkImageViewer2().

Referenced by wxMaracasSuperpositionPanel::Refresh().

00235 {
00236    return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderWindow();
00237 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtk2DBaseView::GetSpacing ( double  spc[3]  )  [virtual]

Reimplemented from wxVtkBaseView.

Definition at line 241 of file wxVtk2DBaseView.cxx.

References vtkBaseData::GetImageData(), and GetVtkBaseData().

00242 {
00243    vtkImageData *imageData      = GetVtkBaseData()->GetImageData();
00244    imageData->GetSpacing(spc);
00245 }

Here is the call graph for this function:

vtkBaseData * wxVtk2DBaseView::GetVtkBaseData (  ) 
wxVTKRenderWindowInteractor * wxVtkBaseView::GetWxVTKRenderWindowInteractor (  )  throw (char*) [inherited]

Reimplemented in wxVtk2DView_TMP.

Definition at line 38 of file wxVtkBaseView.cxx.

References wxVtkBaseView::_iren.

Referenced by wxMaracasRenderTabbedPanel::addRemoveActorMPR(), wxVtkClipping3DView::Configure(), wxVtk3DBaseView::Configure(), Configure(), vtkPlane2DView::Configure(), wxWidgetMesure2D::ConfigureA(), wxManualRegistration3D::Create3DView(), wxManualTree_MPRWidget::Create3DViewContour(), wxSegmentationFM3DWidget::Create3DViewContour(), wxManualSegmentation_MPRWidget::Create3DViewContour(), wxMPRWidget::CreateMPRPanel4View(), wxPanelCuttingImageData::CreatePlotHistogrammeInterface(), wxMaracas_ManualContour_Panel::CreateSplitePanel(), wxMPRWidget::CreateView(), wxQuantificationWidgetCT::CreateView2DPanel(), wxProcessingCTWidget::CreateViewPanel(), wxEmptyPanelWidget::CreateViewPanel(), wxEmptyPanel_3_Widget::CreateViewPanel(), vtkInteractorStyleBaseView::EvaluateToRefresh(), wxMaracasImageBrowser02::LoadData(), wxVtkClipping3DViewCntrlPanel::OnBtnMeshVTKLoad(), wxVtkClipping3DViewVolCntrlPanel::OnBtnVolumeFunctions(), wxVtkClipping3DViewCntrlPanel::OnBtnVolumeFunctions(), manualContourBaseControler::OnChar(), wxVtkClipping3DViewCntrlPanel::OnColor(), wxPanelCuttingImageData::OnExtract(), wxVtkClipping3DViewCntrlPanel::OnIsoValue(), manualContourBaseControler::OnLeftButtonDown(), manualContour3DControler::OnLeftButtonDown(), vtkInteractorStyleSphere::OnLeftButtonUp(), manualContourBaseControler::OnLeftButtonUp(), vtkInteractorStyleMPRView::OnLeftDClick(), manualContourBaseControler::OnLeftDClick(), manualInteractorWindowLevel::OnMiddleButtonDown(), manualContourBaseControler::OnMiddleButtonDown(), vtkInfoTextImageInteractorPlane2D::OnMouseMove(), vtkInfoTextImageInteractor::OnMouseMove(), manualInteractorWindowLevel::OnMouseMove(), manualContourBaseControler::OnMouseMove(), wxVtkClipping3DViewCntrlPanel::OnOpacity(), wxVtkMPR3DViewCntrlPanel::OnPositionX(), wxVtkMPR3DViewCntrlPanel::OnPositionY(), wxVtkMPR3DViewCntrlPanel::OnPositionZ(), wxMaracasRenderTabbedPanel::OnRefreshView(), wxVtkClipping3DViewCntrlPanel::OnRepresentationSurfaceWireFrame(), manualContourBaseControler::OnRightButtonDown(), wxVtkMPR3DViewCntrlPanel::OnVisibleAxisX(), wxVtkMPR3DViewCntrlPanel::OnVisibleAxisY(), wxVtkMPR3DViewCntrlPanel::OnVisibleAxisZ(), wxVtkClipping3DViewCntrlPanel::OnVisibleSurface(), wxVtkClipping3DViewVolCntrlPanel::OnVisibleVolume(), wxVtkClipping3DViewCntrlPanel::OnVisibleVolume(), wxVtkBaseView::Refresh(), wxVtk3DBaseView::Refresh(), manualViewBaseContour::Refresh(), ResetView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), SetInteractorStyleImage(), wxVtkMPR3DViewCntrlPanel::SetVisibleX(), wxVtkMPR3DViewCntrlPanel::SetVisibleY(), wxVtkMPR3DViewCntrlPanel::SetVisibleZ(), and wxMaracas_ViewerWidget::wxMaracas_ViewerWidget().

00039 {
00040 
00041         if(_iren==NULL){
00042                 throw "wxVtkBaseView::GetWxVTKRenderWindowInteractor() _iren wxVTKRenderWindowInteractorPlus =NULL";
00043         }
00044    return _iren;
00045 }

void wxVtk2DBaseView::Refresh (  )  [virtual]
void wxVtkBaseView::RefreshView (  )  [virtual, inherited]
void wxVtk2DBaseView::ResetView (  )  [virtual]

Definition at line 59 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, wxVtkBaseView::Configure(), vtkBaseData::GetImageData(), GetVtkBaseData(), vtkImageViewer2_XYZ::GetVtkImageViewer2(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), vtkInteractorStyleBaseView2D::New(), and SetInteractorStyleImage().

Referenced by wxQuantificationWidgetCT::RefreshView().

00060 {
00061         double spx,spy,spz;
00062         int x1,x2,y1,y2,z1,z2;
00063         wxVtkBaseView::Configure();
00064         
00065         wxVTKRenderWindowInteractor *iren = GetWxVTKRenderWindowInteractor();
00066         vtkImageData *imageData = GetVtkBaseData()->GetImageData();
00067         imageData->UpdateInformation();
00068         imageData->SetUpdateExtent( imageData->GetWholeExtent());
00069         imageData->Update();
00070 
00071         _imageViewer2XYZ->GetVtkImageViewer2()->SetInput(imageData );
00072         imageData->GetSpacing (spx,spy,spz);
00073         imageData->GetExtent (x1,x2,y1,y2,z1,z2);
00074         _imageViewer2XYZ -> SetExtentDimension(x1,x2,y1,y2,z1,z2);
00075         _imageViewer2XYZ -> GetVtkImageViewer2()->SetupInteractor ( iren );
00076 
00077         _imageViewer2XYZ->GetVtkImageViewer2()->Render();
00078         SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
00079         
00080 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtk2DBaseView::SetActualSlice ( int  slice  )  [virtual]

Reimplemented in vtkPlane2DView, and wxVtkMPR2DView.

Definition at line 180 of file wxVtk2DBaseView.cxx.

References _vtkbasedata, and vtkBaseData::SetZ().

Referenced by wxQuantificationWidgetCT::RefreshView().

00181 {
00182    _vtkbasedata->SetZ(slice);
00183 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtk2DBaseView::setColorLevel ( double  level  ) 

Definition at line 262 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, vtkImageViewer2_XYZ::GetVtkImageViewer2(), and Refresh().

Referenced by wxMaracas_ViewerWidget::setColorLevel().

00262                                                {
00263 //      _imageViewer2XYZ->GetVtkImageViewer2()->SetColorLevel(level);
00264         vtkImageMapToWindowLevelColors* imagemaptowindowlevel = _imageViewer2XYZ->GetVtkImageViewer2()->GetWindowLevel();
00265         imagemaptowindowlevel->SetLevel(level);
00266         this->Refresh();
00267 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtk2DBaseView::setColorTransferFunction ( vtkColorTransferFunction *  colortable  ) 

Definition at line 247 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, Refresh(), and vtkImageViewer2_XYZ::setColorTransferFunction().

Referenced by wxMaracas_ViewerWidget::setColorTransferFunction().

00247                                                                                   {
00248         if(_imageViewer2XYZ!=NULL){
00249                 _imageViewer2XYZ->setColorTransferFunction(colortable);
00250                 this->Refresh();
00251         }
00252 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtkBaseView::SetInteractorStyleBaseView ( vtkInteractorStyleImage *  interactorStyle  )  [inherited]

Definition at line 142 of file wxVtkBaseView.cxx.

References wxVtkBaseView::_interactorStyle.

Referenced by wxVtk3DBaseView::Configure(), wxVtk2DView_TMP::Configure(), and SetInteractorStyleImage().

00143 {
00144         _interactorStyle = interactorStyle;
00145 }

Here is the caller graph for this function:

void wxVtk2DBaseView::SetInteractorStyleImage ( vtkInteractorStyleBaseView interactorstylebaseview  ) 

Definition at line 211 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, vtkImageViewer2_XYZ::GetVtkImageViewer2(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), vtkMaracasImageViewer2Callback::IV, vtkMaracasImageViewer2Callback::New(), wxVtkBaseView::SetInteractorStyleBaseView(), and vtkInteractorStyleBaseView::SetwxVtkBaseView().

Referenced by Configure(), vtkPlane2DView::Configure(), and ResetView().

00212 {
00213         SetInteractorStyleBaseView(interactorstylebaseview);
00214 
00215         wxVTKRenderWindowInteractor *iren = GetWxVTKRenderWindowInteractor();
00216         interactorstylebaseview->SetInteractor ( iren );
00217         iren->SetInteractorStyle(interactorstylebaseview);
00218         interactorstylebaseview->SetwxVtkBaseView(this);        
00219 
00220         vtkMaracasImageViewer2Callback * cbk = vtkMaracasImageViewer2Callback::New();
00221         cbk->IV = _imageViewer2XYZ->GetVtkImageViewer2();
00222         interactorstylebaseview->AddObserver( vtkCommand::WindowLevelEvent, cbk );
00223         interactorstylebaseview->AddObserver( vtkCommand::StartWindowLevelEvent, cbk );
00224         interactorstylebaseview->AddObserver( vtkCommand::ResetWindowLevelEvent, cbk );
00225         cbk->Delete();
00226 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtk2DBaseView::SetVtkBaseData ( vtkBaseData vtkbasedata  ) 
void wxVtk2DBaseView::setWindowLevel ( double  level  ) 

Definition at line 254 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, vtkImageViewer2_XYZ::GetVtkImageViewer2(), and Refresh().

Referenced by wxMaracas_ViewerWidget::setWindowLevel().

00254                                                 {
00255 //      _imageViewer2XYZ->GetVtkImageViewer2()->SetColorWindow(level);  
00256 
00257         vtkImageMapToWindowLevelColors* imagemaptowindowlevel = _imageViewer2XYZ->GetVtkImageViewer2()->GetWindowLevel();
00258         imagemaptowindowlevel->SetWindow(level);
00259         this->Refresh();
00260 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtk2DBaseView::TransformCoordinate_spacing_ModelToView ( double &  X,
double &  Y,
double &  Z 
) [virtual]

Definition at line 45 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, and vtkImageViewer2_XYZ::GetVtkImageViewer2().

00046 {
00047 //EEDx5
00048         double spc[3];
00049 //      GetVtkBaseData()->GetImageData()->GetSpacing(spc);
00050         this->_imageViewer2XYZ->GetVtkImageViewer2()->GetInput()->GetSpacing(spc);
00051 
00052         X=X*spc[0];
00053         Y=Y*spc[1];
00054         Z=Z*spc[2];
00055 
00056 }

Here is the call graph for this function:

void wxVtk2DBaseView::TransformCoordinate_spacing_ViewToModel ( double &  X,
double &  Y,
double &  Z 
) [virtual]

Definition at line 31 of file wxVtk2DBaseView.cxx.

References _imageViewer2XYZ, and vtkImageViewer2_XYZ::GetVtkImageViewer2().

Referenced by wxVtkBaseView::TransFromCoordScreenToWorld().

00032 {
00033 //EEDx5
00034         double spc[3];
00035 //      GetVtkBaseData()->GetImageData()->GetSpacing(spc);
00036         this->_imageViewer2XYZ->GetVtkImageViewer2()->GetInput()->GetSpacing(spc);
00037 
00038         X = X / spc[0];
00039         Y = Y / spc[1];
00040         Z = Z / spc[2];
00041 
00042 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtkBaseView::TransFromCoordScreenToWorld ( double &  X,
double &  Y,
double &  Z,
bool  keepNormalDirection = false,
int  type = 2 
) [virtual, inherited]

Reimplemented in wxVtkMPR2DView.

Definition at line 94 of file wxVtkBaseView.cxx.

References wxVtkBaseView::GetInteractorStyleBaseView(), wxVtkBaseView::GetRenderer(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), and TransformCoordinate_spacing_ViewToModel().

Referenced by manualViewPerpPlaneContour::ifTouchContour(), vtkInfoTextImageInteractor::OnMouseMove(), manualViewBaseContour::TransfromCoordViewWorld(), and vtkPlane2DView::TransfromCoordViewWorld2().

00095 {  
00096         GetRenderer()->SetDisplayPoint((int)X, (int)Y, (int)Z);
00097         GetRenderer()->DisplayToWorld();
00098         double fP[4];
00099         GetRenderer()->GetWorldPoint( fP );
00100         if ( fP[3] ){
00101                 fP[0] /= fP[3];
00102                 fP[1] /= fP[3];
00103                 fP[2] /= fP[3];
00104         }
00105 
00106 // EEDx5
00107         //JCP 13/05/2009
00108         vtkInteractorStyleBaseView* interactorstyle = (vtkInteractorStyleBaseView*)this->GetInteractorStyleBaseView();
00109         wxVtk2DBaseView* baseview = (wxVtk2DBaseView*)interactorstyle->GetWxVtk2DBaseView();
00110         baseview->TransformCoordinate_spacing_ViewToModel( fP[0] , fP[1] , fP[2] );
00111         //JCP 13/05/2009
00112 
00113         if (type!=0)
00114         {
00115                 X=fP[0];
00116         }
00117         if (type!=1)
00118         {
00119                 Y=fP[1];
00120         }
00121         if (type!=2)
00122         {
00123                 Z=fP[2];
00124         } 
00125 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 44 of file wxVtk2DBaseView.h.

Referenced by GetActualSlice(), GetVtkBaseData(), SetActualSlice(), and SetVtkBaseData().

Definition at line 46 of file wxVtk2DBaseView.h.

Referenced by Configure(), wxVtk2DBaseView(), and ~wxVtk2DBaseView().

Definition at line 47 of file wxVtk2DBaseView.h.

Referenced by Configure().


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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1