wxVtkMPR2DView Class Reference

#include <wxVtkMPR2DView.h>

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

List of all members.

Public Member Functions

 wxVtkMPR2DView (wxWindow *parent, int direction)
 ~wxVtkMPR2DView ()
void Configure ()
virtual void Refresh ()
vtkMPRBaseDataGetVtkmprbasedata ()
virtual int GetActualSlice ()
virtual void SetActualSlice (int slice)
bool IfMouseTouchX (double x, double y, double z)
bool IfMouseTouchY (double x, double y, double z)
bool IfMouseTouchZ (double x, double y, double z)
void MoveX (double x, double y, double z)
void MoveY (double x, double y, double z)
void MoveZ (double x, double y, double z)
void ChangeAxisColor (double x, double y, double z)
virtual void TransFromCoordScreenToWorld (double &X, double &Y, double &Z, bool keepNormalDirection=false, int type=2)
void SetVisibleAxis (bool ok)
virtual void Configure (bool okimage=true)
vtkBaseDataGetVtkBaseData ()
void SetVtkBaseData (vtkBaseData *vtkbasedata)
virtual void ResetView ()
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 RefreshView ()
void SetInteractorStyleBaseView (vtkInteractorStyleImage *interactorStyle)
vtkInteractorStyleImage * GetInteractorStyleBaseView ()

Public Attributes

vtkImageViewer2_XYZ_imageViewer2XYZ

Private Attributes

int _backX
int _backY
int _backZ
bool _visibleAxis
int _direction
vtkPoints * _ptsA
vtkActor * _lineAActor
vtkPolyDataMapper * _lineAMapper
vtkPolyData * _pdA
vtkPoints * _ptsB
vtkActor * _lineBActor
vtkPolyDataMapper * _lineBMapper
vtkPolyData * _pdB
vtkInteractorStyleMPRView_interactorstylemprview

Detailed Description

Definition at line 14 of file wxVtkMPR2DView.h.


Constructor & Destructor Documentation

wxVtkMPR2DView::wxVtkMPR2DView ( wxWindow *  parent,
int  direction 
)

Definition at line 7 of file wxVtkMPR2DView.cxx.

References _backX, _backY, _backZ, _direction, _interactorstylemprview, _lineAActor, _lineAMapper, _lineBActor, _lineBMapper, _pdA, _pdB, _ptsA, and _ptsB.

00008  :wxVtk2DBaseView(parent)
00009 {
00010         _backX                  = -99999;
00011         _backY                  = -99999;
00012         _backZ                  = -99999;
00013         _direction              = direction;
00014         _ptsA                   = NULL;
00015         _lineAActor             = NULL;
00016         _lineAMapper    = NULL;
00017         _pdA                    = NULL;
00018         _ptsB                   = NULL;
00019         _lineBActor             = NULL;
00020         _lineBMapper    = NULL;
00021         _pdB                    = NULL;
00022         _interactorstylemprview = NULL;
00023 }

wxVtkMPR2DView::~wxVtkMPR2DView (  ) 

Definition at line 26 of file wxVtkMPR2DView.cxx.

References _lineAActor, _lineAMapper, _lineBActor, _lineBMapper, _pdA, _pdB, _ptsA, and _ptsB.

00027 {
00028         if (_ptsA!=NULL)        { _ptsA         -> Delete(); }
00029         if (_lineAActor!=NULL)  { _lineAActor   -> Delete(); }
00030         if (_lineAMapper!=NULL) { _lineAMapper  -> Delete(); }
00031         if (_pdA!=NULL)         { _pdA          -> Delete(); }
00032         if (_ptsB!=NULL)        { _ptsB         -> Delete(); }
00033         if (_lineBActor!=NULL)  { _lineBActor   -> Delete(); }
00034         if (_lineBMapper!=NULL) { _lineBMapper  -> Delete(); }
00035         if (_pdB!=NULL)         { _pdB          -> Delete(); }
00036 }


Member Function Documentation

void wxVtkMPR2DView::ChangeAxisColor ( double  x,
double  y,
double  z 
)

Definition at line 425 of file wxVtkMPR2DView.cxx.

References _direction, _lineAActor, _lineBActor, IfMouseTouchX(), IfMouseTouchY(), IfMouseTouchZ(), and Refresh().

Referenced by vtkInteractorStyleMPRView::OnMouseMove().

00426 {
00427         double c1r=1,c1g=1,c1b=0;
00428         double c2r=1,c2g=0,c2b=0;
00429 
00430         if (_direction==0) 
00431         { 
00432                 if (IfMouseTouchY(x,y,z)==true)
00433                 {
00434                         _lineBActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b);
00435                 } else {
00436                         _lineBActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b);
00437                 }
00438                 if (IfMouseTouchZ(x,y,z)==true)
00439                 {
00440                         _lineAActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b);
00441                 } else {
00442                         _lineAActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b);
00443                 }
00444         }
00445 
00446         if (_direction==1) 
00447         { 
00448                 if (IfMouseTouchX(x,y,z)==true)
00449                 {
00450                         _lineBActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b);
00451                 } else {
00452                         _lineBActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b);
00453                 }
00454                 if (IfMouseTouchZ(x,y,z)==true)
00455                 {
00456                         _lineAActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b);
00457                 } else {
00458                         _lineAActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b);
00459                 }
00460         }
00461 
00462         if (_direction==2) 
00463         { 
00464                 if (IfMouseTouchX(x,y,z)==true)
00465                 {
00466                         _lineBActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b);
00467                 } else {
00468                         _lineBActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b);
00469                 }
00470                 if (IfMouseTouchY(x,y,z)==true)
00471                 {
00472                         _lineAActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b);
00473                 } else {
00474                         _lineAActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b);
00475                 }
00476         }
00477         Refresh();
00478 }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 84 of file wxVtk2DBaseView.cxx.

References wxVtk2DBaseView::_imageViewer2XYZ, wxVtk2DBaseView::_vtkIinfoTextImage, wxVtk2DBaseView::_vtkIinfoTextImageInteractor, vtkInfoTextImage::Configure(), wxVtkBaseView::Configure(), marImageData::GetImageData(), wxVtkBaseView::GetInteractorStyleBaseView(), vtkBaseData::GetMarImageData(), wxVtk2DBaseView::GetVtkBaseData(), vtkImageViewer2_XYZ::GetVtkImageViewer2(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), vtkInteractorStyleBaseView2D::New(), vtkImageViewer2_XYZ::SetExtentDimension(), wxVtk2DBaseView::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:

void wxVtkMPR2DView::Configure (  )  [virtual]

Reimplemented from wxVtkBaseView.

Definition at line 43 of file wxVtkMPR2DView.cxx.

References _direction, wxVtk2DBaseView::_imageViewer2XYZ, _interactorstylemprview, _lineAActor, _lineAMapper, _lineBActor, _lineBMapper, _pdA, _pdB, _ptsA, _ptsB, _visibleAxis, vtkBaseData::GetImageData(), wxVtkBaseView::GetInteractorStyleBaseView(), vtkImageViewer2_XYZ::GetVtkImageViewer2(), and GetVtkmprbasedata().

00043                               {
00044         wxVtk2DBaseView::Configure();
00045 
00046         if(_interactorstylemprview==NULL)       
00047         {
00048                 _interactorstylemprview = new vtkInteractorStyleMPRView();
00049                 ((vtkInteractorStyleBaseView*)GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _interactorstylemprview );
00050         }
00051         
00052         
00053 
00054         int x1,x2,y1,y2,z1,z2;
00055         GetVtkmprbasedata()     -> GetDimensionExtention(&x1,&x2,&y1,&y2,&z1,&z2);
00056 
00057         double spc[3];
00058         vtkImageData* img =  GetVtkmprbasedata()->GetImageData();
00059         if(img!=NULL){
00060                 img->GetSpacing(spc);
00061                 x1 = (int)(x1*spc[0]);
00062                 y1 = (int)(y1*spc[1]);
00063                 z1 = (int)(z1*spc[2]);
00064 
00065                 x2 = (int)(x2*spc[0]);
00066                 y2 = (int)(y2*spc[1]);
00067                 z2 = (int)(z2*spc[2]);
00068 
00069                 _visibleAxis = true;
00070 
00071         // Axe A
00072                 if(_lineAActor==NULL){
00073                         _ptsA = vtkPoints::New();
00074                         _ptsA->SetNumberOfPoints(2);
00075                         _ptsA->SetPoint(0, -1000        , -1000 , -1000 );
00076                         _ptsA->SetPoint(1,  1000        ,  1000 ,  1000 );
00077                         vtkCellArray *linesA;
00078                         linesA = vtkCellArray::New();
00079                         linesA->InsertNextCell(2);
00080                         linesA->InsertCellPoint(0);
00081                         linesA->InsertCellPoint(1);
00082                         _pdA = vtkPolyData::New();
00083                         _pdA->SetPoints( _ptsA );
00084                         _pdA->SetLines( linesA );
00085                         linesA->Delete();  //do not delete lines ??
00086                         _lineAActor                                             =       vtkActor::New();
00087                         _lineAMapper                                    =       vtkPolyDataMapper::New();
00088 
00089                         _lineAMapper->SetInput(_pdA);
00090                         _lineAMapper->ImmediateModeRenderingOn();
00091                         _lineAActor->SetMapper(_lineAMapper);
00092         //              _lineAActor->GetProperty()->BackfaceCullingOn();
00093                         _lineAActor->GetProperty()->SetDiffuseColor(1,0,0);
00094                         _lineAActor->GetProperty()->SetLineWidth(2);
00095                         _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->AddActor( _lineAActor );
00096                 }
00097 
00098 
00099                 
00100 
00101         // Axe B
00102                 if(_lineBActor==NULL){
00103                         _ptsB = vtkPoints::New();
00104                         _ptsB->SetNumberOfPoints(2);
00105                         _ptsB->SetPoint(0, -1000        , -1000 , -1000 );
00106                         _ptsB->SetPoint(1,  1000        ,  1000 ,  1000 );
00107                         vtkCellArray *linesB;
00108                         linesB = vtkCellArray::New();
00109                         linesB->InsertNextCell(2);
00110                         linesB->InsertCellPoint(0);
00111                         linesB->InsertCellPoint(1);
00112                         _pdB = vtkPolyData::New();
00113                         _pdB->SetPoints( _ptsB );
00114                         _pdB->SetLines( linesB );
00115                         linesB->Delete();  //do not delete lines ??
00116                         _lineBActor                                             =       vtkActor::New();
00117                         _lineBMapper                                    =       vtkPolyDataMapper::New();
00118                         _lineBMapper->SetInput(_pdB);
00119                         _lineBMapper->ImmediateModeRenderingOn();
00120                         _lineBActor->SetMapper(_lineBMapper);
00121         //              _lineBActor->GetProperty()->BackfaceCullingOn();
00122                         _lineBActor->GetProperty()->SetDiffuseColor(1,0,0);
00123                         _lineBActor->GetProperty()->SetLineWidth(2);
00124                         _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->AddActor( _lineBActor );
00125                 }
00126 
00127         
00128                 vtkCamera *camera =_imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->GetActiveCamera();
00129                 
00130 //EED 17Avril2009
00131 /*              
00132                 if (_direction==0) {
00133                         camera->SetViewUp               (   0   ,    -1         ,     0         );
00134                         camera->SetPosition             ( -10000,(y1+y2)/2      , (z1+z2)/2     ); 
00135                         camera->SetFocalPoint   (   0   , (y1+y2)/2     , (z1+z2)/2     );
00136                         camera->SetParallelScale( (z2-z1)/3.0 );
00137                 }
00138 
00139                 if (_direction==1) { 
00140                         camera->SetViewUp               (       0               ,       0       ,       -1              );
00141                         camera->SetPosition             ((x1+x2)/2      , 10000 , (z1+z2)/2     ); 
00142                         camera->SetFocalPoint   ((x1+x2)/2      ,   0   , (z1+z2)/2     );
00143                         camera->SetParallelScale( (x2-x1)/3.0 );
00144                 }
00145 
00146                 if (_direction==2) { 
00147                         camera->SetViewUp               (       0               ,       -1              ,       0       );
00148                         camera->SetPosition             ((x1+x2)/2      , (y1+y2)/2     , -10000); 
00149                         camera->SetFocalPoint   ((x1+x2)/2      , (y1+y2)/2     ,       0       ); 
00150                         camera->SetParallelScale( (x2-x1)/3.0 );
00151                 }
00152  */
00153 
00154                 if (_direction==0) {    // YZ
00155                         camera->SetViewUp               (   0   ,     1         ,     0         );
00156                         camera->SetPosition             (  10000,(y1+y2)/2      , (z1+z2)/2     ); 
00157                         camera->SetFocalPoint   (   0   , (y1+y2)/2     , (z1+z2)/2     );
00158                         camera->SetParallelScale( (z2-z1)/3.0 );
00159                 }
00160                 
00161                 if (_direction==1) {    // XZ
00162                         camera->SetViewUp               (       0               ,       0       ,       -1              );
00163                         camera->SetPosition             ((x1+x2)/2      , 10000 , (z1+z2)/2     ); 
00164                         camera->SetFocalPoint   ((x1+x2)/2      ,   0   , (z1+z2)/2     );
00165                         camera->SetParallelScale( (x2-x1)/3.0 );
00166                 }
00167                 
00168                 if (_direction==2) {    // XY
00169                         camera->SetViewUp               (       0               ,       1               ,       0       );
00170                         camera->SetPosition             ((x1+x2)/2      , (y1+y2)/2     ,  10000); 
00171                         camera->SetFocalPoint   ((x1+x2)/2      , (y1+y2)/2     ,       0       ); 
00172                         camera->SetParallelScale( (x2-x1)/3.0 );
00173                 }
00174                 
00175                 
00176                 
00177         }
00178 
00179 //      _imageViewer2XYZ->GetVtkImageViewer2()->SetColorWindow (160);
00180 //      _imageViewer2XYZ->GetVtkImageViewer2()->SetColorLevel (800);
00181 
00182 }

Here is the call graph for this function:

int wxVtkMPR2DView::GetActualSlice (  )  [virtual]

Reimplemented from wxVtk2DBaseView.

Definition at line 274 of file wxVtkMPR2DView.cxx.

References _direction, GetVtkmprbasedata(), vtkMPRBaseData::GetX(), vtkMPRBaseData::GetY(), and vtkBaseData::GetZ().

00275 {
00276         int result;
00277         if (_direction==0) 
00278         { 
00279                 result = (int)(GetVtkmprbasedata()->GetX());
00280         }
00281         if (_direction==1) 
00282         { 
00283                 result = (int)(GetVtkmprbasedata()->GetY());
00284         }
00285         if (_direction==2) 
00286         { 
00287                 result = (int)(GetVtkmprbasedata()->GetZ());
00288         }
00289         return result;
00290 }

Here is the call graph for this function:

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

Reimplemented from wxVtkBaseView.

Definition at line 229 of file wxVtk2DBaseView.cxx.

References wxVtk2DBaseView::_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, inherited]

Reimplemented from wxVtkBaseView.

Definition at line 234 of file wxVtk2DBaseView.cxx.

References wxVtk2DBaseView::_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, inherited]

Reimplemented from wxVtkBaseView.

Definition at line 241 of file wxVtk2DBaseView.cxx.

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

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

Here is the call graph for this function:

vtkBaseData * wxVtk2DBaseView::GetVtkBaseData (  )  [inherited]
vtkMPRBaseData * wxVtkMPR2DView::GetVtkmprbasedata (  ) 

Definition at line 38 of file wxVtkMPR2DView.cxx.

References wxVtk2DBaseView::GetVtkBaseData().

Referenced by Configure(), GetActualSlice(), wxMaracasSuperpositionPanel::GetX(), wxMaracasSuperpositionPanel::GetY(), wxMaracasSuperpositionPanel::GetZ(), IfMouseTouchX(), IfMouseTouchY(), IfMouseTouchZ(), MoveX(), MoveY(), MoveZ(), Refresh(), and SetActualSlice().

00039 {
00040         return (vtkMPRBaseData*)GetVtkBaseData();
00041 }

Here is the call graph for this function:

Here is the caller graph for this function:

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(), wxVtk2DBaseView::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(), wxVtk2DBaseView::ResetView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxVtk2DBaseView::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 }

bool wxVtkMPR2DView::IfMouseTouchX ( double  x,
double  y,
double  z 
)

Definition at line 308 of file wxVtkMPR2DView.cxx.

References _direction, and GetVtkmprbasedata().

Referenced by ChangeAxisColor(), and vtkInteractorStyleMPRView::OnLeftButtonDown().

00309 {
00310         double delta=5;
00311         bool result=false;
00312         if (_direction==0) 
00313         { 
00314         }
00315         if (_direction==1) 
00316         { 
00317                 if (( x<GetVtkmprbasedata()->GetX()+delta ) && ( x>GetVtkmprbasedata()->GetX()-delta ))
00318                 {
00319                         result = true;
00320                 }
00321         }
00322         if (_direction==2) 
00323         { 
00324                 if (( x<GetVtkmprbasedata()->GetX()+delta ) && ( x>GetVtkmprbasedata()->GetX()-delta ))
00325                 {
00326                         result = true;
00327                 }
00328         }
00329         return result;
00330 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool wxVtkMPR2DView::IfMouseTouchY ( double  x,
double  y,
double  z 
)

Definition at line 332 of file wxVtkMPR2DView.cxx.

References _direction, and GetVtkmprbasedata().

Referenced by ChangeAxisColor(), and vtkInteractorStyleMPRView::OnLeftButtonDown().

00333 {
00334         double delta=5;
00335         bool result=false;
00336         if (_direction==0) 
00337         { 
00338                 if (( y<GetVtkmprbasedata()->GetY()+delta ) && ( y>GetVtkmprbasedata()->GetY()-delta ))
00339                 {
00340                         result = true;
00341                 }
00342         }
00343         if (_direction==1) 
00344         { 
00345         }
00346         if (_direction==2) 
00347         { 
00348                 if (( y<GetVtkmprbasedata()->GetY()+delta ) && ( y>GetVtkmprbasedata()->GetY()-delta ))
00349                 {
00350                         result = true;
00351                 }
00352         }
00353         return result;
00354 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool wxVtkMPR2DView::IfMouseTouchZ ( double  x,
double  y,
double  z 
)

Definition at line 356 of file wxVtkMPR2DView.cxx.

References _direction, and GetVtkmprbasedata().

Referenced by ChangeAxisColor(), and vtkInteractorStyleMPRView::OnLeftButtonDown().

00357 {
00358         double delta=5;
00359         bool result=false;
00360         if (_direction==0) 
00361         { 
00362                 if (( z<GetVtkmprbasedata()->GetZ()+delta ) && ( z>GetVtkmprbasedata()->GetZ()-delta ))
00363                 {
00364                         result = true;
00365                 }
00366         }
00367         if (_direction==1) 
00368         { 
00369                 if (( z<GetVtkmprbasedata()->GetZ()+delta ) && ( z>GetVtkmprbasedata()->GetZ()-delta ))
00370                 {
00371                         result = true;
00372                 }
00373         }
00374         if (_direction==2) 
00375         { 
00376         }
00377         return result;
00378 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtkMPR2DView::MoveX ( double  x,
double  y,
double  z 
)

Definition at line 380 of file wxVtkMPR2DView.cxx.

References _direction, GetVtkmprbasedata(), and vtkMPRBaseData::SetX().

Referenced by vtkInteractorStyleMPRView::OnLeftDClick().

00381 {
00382         if (_direction==0) 
00383         { 
00384         }
00385         if (_direction==1) 
00386         { 
00387                 GetVtkmprbasedata()->SetX(x);
00388         }
00389         if (_direction==2) 
00390         { 
00391                 GetVtkmprbasedata()->SetX(x);
00392         }
00393 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtkMPR2DView::MoveY ( double  x,
double  y,
double  z 
)

Definition at line 395 of file wxVtkMPR2DView.cxx.

References _direction, GetVtkmprbasedata(), and vtkMPRBaseData::SetY().

Referenced by vtkInteractorStyleMPRView::OnLeftDClick(), and vtkInteractorStyleMPRView::OnMouseMove().

00396 {
00397         if (_direction==0) 
00398         { 
00399                 GetVtkmprbasedata()->SetY(y);
00400         }
00401         if (_direction==1) 
00402         { 
00403         }
00404         if (_direction==2) 
00405         { 
00406                 GetVtkmprbasedata()->SetY(y);
00407         }
00408 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtkMPR2DView::MoveZ ( double  x,
double  y,
double  z 
)

Definition at line 410 of file wxVtkMPR2DView.cxx.

References _direction, GetVtkmprbasedata(), and vtkBaseData::SetZ().

Referenced by vtkInteractorStyleMPRView::OnLeftDClick(), and vtkInteractorStyleMPRView::OnMouseMove().

00411 {
00412         if (_direction==0) 
00413         { 
00414                 GetVtkmprbasedata()->SetZ(z);
00415         }
00416         if (_direction==1) 
00417         { 
00418                 GetVtkmprbasedata()->SetZ(z);
00419         }
00420         if (_direction==2) 
00421         { 
00422         }
00423 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtkMPR2DView::Refresh (  )  [virtual]

Reimplemented from wxVtk2DBaseView.

Definition at line 204 of file wxVtkMPR2DView.cxx.

References _backX, _backY, _backZ, _direction, wxVtk2DBaseView::_imageViewer2XYZ, _ptsA, _ptsB, vtkMPRBaseData::GetDimensionExtention(), vtkBaseData::GetImageData(), GetVtkmprbasedata(), vtkMPRBaseData::GetX(), vtkMPRBaseData::GetY(), vtkBaseData::GetZ(), vtkImageViewer2_XYZ::SetXSlice(), vtkImageViewer2_XYZ::SetYSlice(), and vtkImageViewer2_XYZ::SetZSlice().

Referenced by ChangeAxisColor().

00205 {
00206         //wxVtk2DBaseView::Refresh();
00207 
00208 
00209         //vtkImageViewer2 *IV2=_imageViewer2XYZ->GetVtkImageViewer2(); // JPRx
00210         //vtkCamera *camera = IV2->GetRenderer()->GetActiveCamera(); // JPRx
00211 
00212 
00213 
00214         int x1,x2,y1,y2,z1,z2;
00215         GetVtkmprbasedata()->GetDimensionExtention(&x1,&x2,&y1,&y2,&z1,&z2);
00216         double spc[3];
00217         
00218         vtkImageData* img = GetVtkmprbasedata()->GetImageData();
00219         if(img!=NULL){
00220                 img->GetSpacing(spc);
00221                 x1 =  (int)(x1*spc[0]);
00222                 y1 =  (int)(y1*spc[1]);
00223                 z1 =  (int)(z1*spc[2]);
00224 
00225                 x2 =  (int)(x2*spc[0]);
00226                 y2 =  (int)(y2*spc[1]);
00227                 z2 =  (int)(z2*spc[2]);
00228 
00229                 int x = (int)(GetVtkmprbasedata()->GetX());
00230                 int y = (int)(GetVtkmprbasedata()->GetY());
00231                 int z = (int)(GetVtkmprbasedata()->GetZ());
00232 
00233                 x =  (int)(x*spc[0]);
00234                 y =  (int)(y*spc[1]);
00235                 z =  (int)(z*spc[2]);
00236 
00237                 if ((x!=_backX) || (y!=_backY) || (z!=_backZ)) {
00238 
00239                         if (_direction==0) {    // YZ 
00240                                 _imageViewer2XYZ->SetXSlice( (int)(GetVtkmprbasedata()->GetX()) ); 
00241                                 _ptsA->SetPoint(0, x2, y1  , z );
00242                                 _ptsA->SetPoint(1, x2, y2  , z );
00243                                 _ptsB->SetPoint(0, x2, y   , z1);
00244                                 _ptsB->SetPoint(1, x2, y   , z2);
00245                         }
00246                         if (_direction==1) {    // XZ
00247                                 _imageViewer2XYZ->SetYSlice( (int)(GetVtkmprbasedata()->GetY()) ); 
00248                             _ptsA->SetPoint(0, x1 , y2 , z );
00249                                 _ptsA->SetPoint(1, x2 , y2 , z );
00250                                 _ptsB->SetPoint(0, x  , y2 , z1);
00251                                 _ptsB->SetPoint(1, x  , y2 , z2);
00252                         }
00253                         if (_direction==2) {    // XY
00254                                 _imageViewer2XYZ->SetZSlice( (int)(GetVtkmprbasedata()->GetZ()) ); 
00255                                 _imageViewer2XYZ->SetZSlice( (int)(GetVtkmprbasedata()->GetZ()) ); 
00256                         //      _ptsA->SetPoint(0, x1 , y , -z2 );
00257                         //      _ptsA->SetPoint(1, x2 , y , -z2 );
00258                         //      _ptsB->SetPoint(0, x  , y1, -z2 );
00259                         //      _ptsB->SetPoint(1, x  , y2, -z2 );
00260                                 
00261                                 _ptsA->SetPoint(0, x1 , y , z2 );
00262                                 _ptsA->SetPoint(1, x2 , y , z2 );
00263                                 _ptsB->SetPoint(0, x  , y1, z2 );
00264                                 _ptsB->SetPoint(1, x  , y2, z2 );
00265                         }
00266                         _backX=x;
00267                         _backY=y;
00268                         _backZ=z;
00269                 }
00270                 wxVtkBaseView::Refresh();
00271         }
00272 }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 59 of file wxVtk2DBaseView.cxx.

References wxVtk2DBaseView::_imageViewer2XYZ, wxVtkBaseView::Configure(), vtkBaseData::GetImageData(), wxVtk2DBaseView::GetVtkBaseData(), vtkImageViewer2_XYZ::GetVtkImageViewer2(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), vtkInteractorStyleBaseView2D::New(), and wxVtk2DBaseView::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 wxVtkMPR2DView::SetActualSlice ( int  slice  )  [virtual]

Reimplemented from wxVtk2DBaseView.

Definition at line 292 of file wxVtkMPR2DView.cxx.

References _direction, GetVtkmprbasedata(), vtkMPRBaseData::SetX(), vtkMPRBaseData::SetY(), and vtkBaseData::SetZ().

00293 {
00294         if (_direction==0) 
00295         { 
00296                 GetVtkmprbasedata()->SetX(slice);
00297         }
00298         if (_direction==1) 
00299         { 
00300                 GetVtkmprbasedata()->SetY(slice);
00301         }
00302         if (_direction==2) 
00303         { 
00304                 GetVtkmprbasedata()->SetZ(slice);
00305         }
00306 }

Here is the call graph for this function:

void wxVtk2DBaseView::setColorLevel ( double  level  )  [inherited]

Definition at line 262 of file wxVtk2DBaseView.cxx.

References wxVtk2DBaseView::_imageViewer2XYZ, vtkImageViewer2_XYZ::GetVtkImageViewer2(), and wxVtk2DBaseView::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  )  [inherited]

Definition at line 247 of file wxVtk2DBaseView.cxx.

References wxVtk2DBaseView::_imageViewer2XYZ, wxVtk2DBaseView::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 wxVtk2DBaseView::SetInteractorStyleImage().

00143 {
00144         _interactorStyle = interactorStyle;
00145 }

Here is the caller graph for this function:

void wxVtk2DBaseView::SetInteractorStyleImage ( vtkInteractorStyleBaseView interactorstylebaseview  )  [inherited]

Definition at line 211 of file wxVtk2DBaseView.cxx.

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

Referenced by wxVtk2DBaseView::Configure(), vtkPlane2DView::Configure(), and wxVtk2DBaseView::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 wxVtkMPR2DView::SetVisibleAxis ( bool  ok  ) 

Definition at line 184 of file wxVtkMPR2DView.cxx.

References wxVtk2DBaseView::_imageViewer2XYZ, _lineAActor, _lineBActor, _visibleAxis, and vtkImageViewer2_XYZ::GetVtkImageViewer2().

Referenced by wxMaracasSuperpositionPanel::SetVisibleAxis().

00185 {
00186         if (ok!=_visibleAxis)
00187         {
00188                 _visibleAxis=ok;
00189                 if (_visibleAxis==true)
00190                 {
00191                         _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->AddActor( _lineAActor );
00192                         _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->AddActor( _lineBActor );
00193                 }
00194                 if (_visibleAxis==false)
00195                 {
00196                         _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->RemoveActor( _lineAActor );
00197                         _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->RemoveActor( _lineBActor );
00198                 }
00199 
00200         }
00201 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtk2DBaseView::SetVtkBaseData ( vtkBaseData vtkbasedata  )  [inherited]
void wxVtk2DBaseView::setWindowLevel ( double  level  )  [inherited]

Definition at line 254 of file wxVtk2DBaseView.cxx.

References wxVtk2DBaseView::_imageViewer2XYZ, vtkImageViewer2_XYZ::GetVtkImageViewer2(), and wxVtk2DBaseView::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, inherited]

Definition at line 45 of file wxVtk2DBaseView.cxx.

References wxVtk2DBaseView::_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, inherited]

Definition at line 31 of file wxVtk2DBaseView.cxx.

References wxVtk2DBaseView::_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 wxVtkMPR2DView::TransFromCoordScreenToWorld ( double &  X,
double &  Y,
double &  Z,
bool  keepNormalDirection = false,
int  type = 2 
) [virtual]

Reimplemented from wxVtkBaseView.

Definition at line 483 of file wxVtkMPR2DView.cxx.

References _direction, and wxVtk2DBaseView::GetVtkBaseData().

00484 {
00485                 
00486         wxVtkBaseView::TransFromCoordScreenToWorld(X,Y,Z,keepNormalDirection,_direction);
00487 
00488         if ((_direction==0) && (keepNormalDirection==true) )
00489         {
00490                 X = ((vtkMPRBaseData*)GetVtkBaseData())->GetX();
00491         }
00492         
00493         if ((_direction==1) && (keepNormalDirection==true) )
00494         {
00495                 Y = ((vtkMPRBaseData*)GetVtkBaseData())->GetY();
00496         }
00497         
00498         if ((_direction==2) && (keepNormalDirection==true) )
00499         {
00500                 Z = ((vtkMPRBaseData*)GetVtkBaseData())->GetZ();
00501         }
00502         
00503 }

Here is the call graph for this function:


Member Data Documentation

int wxVtkMPR2DView::_backX [private]

Definition at line 40 of file wxVtkMPR2DView.h.

Referenced by Refresh(), and wxVtkMPR2DView().

int wxVtkMPR2DView::_backY [private]

Definition at line 41 of file wxVtkMPR2DView.h.

Referenced by Refresh(), and wxVtkMPR2DView().

int wxVtkMPR2DView::_backZ [private]

Definition at line 42 of file wxVtkMPR2DView.h.

Referenced by Refresh(), and wxVtkMPR2DView().

Definition at line 56 of file wxVtkMPR2DView.h.

Referenced by Configure(), and wxVtkMPR2DView().

vtkActor* wxVtkMPR2DView::_lineAActor [private]
vtkPolyDataMapper* wxVtkMPR2DView::_lineAMapper [private]

Definition at line 49 of file wxVtkMPR2DView.h.

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

vtkActor* wxVtkMPR2DView::_lineBActor [private]
vtkPolyDataMapper* wxVtkMPR2DView::_lineBMapper [private]

Definition at line 53 of file wxVtkMPR2DView.h.

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

vtkPolyData* wxVtkMPR2DView::_pdA [private]

Definition at line 50 of file wxVtkMPR2DView.h.

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

vtkPolyData* wxVtkMPR2DView::_pdB [private]

Definition at line 54 of file wxVtkMPR2DView.h.

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

vtkPoints* wxVtkMPR2DView::_ptsA [private]

Definition at line 47 of file wxVtkMPR2DView.h.

Referenced by Configure(), Refresh(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().

vtkPoints* wxVtkMPR2DView::_ptsB [private]

Definition at line 51 of file wxVtkMPR2DView.h.

Referenced by Configure(), Refresh(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().

Definition at line 44 of file wxVtkMPR2DView.h.

Referenced by Configure(), and SetVisibleAxis().


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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1