vtkMPRBaseData Class Reference

#include <wxMPRBaseData.h>

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

List of all members.

Public Member Functions

 vtkMPRBaseData ()
virtual ~vtkMPRBaseData ()
virtual void Configure ()
int GetMaxPositionX ()
int GetMaxPositionY ()
int GetMaxPositionZ ()
double GetX ()
double GetY ()
void SetX (double x)
void SetY (double y)
void GetDimensionExtention (int *x1, int *x2, int *y1, int *y2, int *z1, int *z2)
vtkTransform * GetTransformOrientation ()
void SetNormal (double nx, double ny, double nz)
void InitTransformOrientation (vtkTransform *trans)
vtkImageData * GetImageData ()
marImageDataGetMarImageData ()
void SetMarImageData (marImageData *marimagedata)
double GetZ ()
void SetZ (double z)
int GetT ()
void SetT (double t)

Protected Attributes

int _x1
int _x2
int _y1
int _y2
int _z1
int _z2
marImageData_marImageData
double _z
int _t

Private Attributes

double _x
double _y
vtkTransform * _transformOrientation

Detailed Description

Definition at line 59 of file wxMPRBaseData.h.


Constructor & Destructor Documentation

vtkMPRBaseData::vtkMPRBaseData (  ) 

Definition at line 25 of file wxMPRBaseData.cxx.

References vtkBaseData::_marImageData, _transformOrientation, _x, _y, and vtkBaseData::_z.

00026 {
00027   _x=0;
00028   _y=0;
00029   _z=0;
00030   _transformOrientation = NULL;
00031   _marImageData = NULL;
00032 }

vtkMPRBaseData::~vtkMPRBaseData (  )  [virtual]

Definition at line 34 of file wxMPRBaseData.cxx.

References vtkBaseData::_marImageData, and _transformOrientation.

00035 {
00036         if (_marImageData)                      delete _marImageData;
00037         if (_transformOrientation)      _transformOrientation ->Delete();
00038 }


Member Function Documentation

void vtkMPRBaseData::Configure (  )  [virtual]

Reimplemented from vtkBaseData.

Definition at line 40 of file wxMPRBaseData.cxx.

References vtkBaseData::_marImageData, _transformOrientation, _x1, _x2, _y1, _y2, _z1, _z2, and marImageData::GetImageData().

Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxMPRWidget::ConfigureVTK(), and wxMaracas_ViewerWidget::ConfigureVTK().

00041 {
00042         vtkImageData* img = _marImageData->GetImageData();
00043         if(img !=NULL){
00044                 img->GetExtent (_x1,_x2,_y1,_y2,_z1,_z2);
00045         //std::cout<<"vtkMPRBaseData::Configure() _x1= "<<_x1<<" _x2= "<<_x2<<" _y1= "<<_y1<<" _y2= "<<_y2<<" _z1= "<<_z1<<" _z2= "<<_z2<<std::endl;
00046                 if(_transformOrientation==NULL){
00047                         _transformOrientation=vtkTransform::New();
00048                 }
00049                 _transformOrientation->Identity();
00050         }
00051 }

Here is the call graph for this function:

Here is the caller graph for this function:

void vtkMPRBaseData::GetDimensionExtention ( int *  x1,
int *  x2,
int *  y1,
int *  y2,
int *  z1,
int *  z2 
)

Definition at line 53 of file wxMPRBaseData.cxx.

References _x1, _x2, _y1, _y2, _z1, and _z2.

Referenced by wxVtkMPR2DView::Refresh(), vtkMPR3DDataViewer::SetPositionX(), vtkMPR3DDataViewer::SetPositionY(), vtkMPR3DDataViewer::SetPositionZ(), and wxVtkMPR3DViewCntrlPanel::UpdateControlPanel().

00054 {
00055         *x1=_x1;
00056         *x2=_x2;
00057         *y1=_y1;
00058         *y2=_y2;
00059         *z1=_z1;
00060         *z2=_z2;
00061 }

Here is the caller graph for this function:

vtkImageData * vtkBaseData::GetImageData (  )  [inherited]

Definition at line 25 of file vtkBaseData.cxx.

References vtkBaseData::_marImageData, vtkBaseData::_t, and marImageData::GetImageDataT().

Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxVtkMPR3DView::Configure(), wxVtkMPR2DView::Configure(), vtkMPR3DDataViewer::Configure(), vtkClipping3DDataViewer::Configure(), vtkClipping3DDataViewer::Configure_Tissue(), vtkClipping3DDataViewer::Configure_Volume(), wxMaracas_ViewerWidget::ConfigureVTK(), wxMPRWidget::CreateMPRPanel4View(), wxMPRWidget::CreateView(), vtkmyPWCallback_3DPointWidget::Execute(), wxMaracas_ManualTree_MPRDlg::ExportPoints(), vtkPlane2DView::Extract_MIP_PlaneVTK(), vtkPlane2DView::Extract_One_PlaneVTK(), vtkPlane2DView::ExtractPlane(), wxVtkMPR3DView::GetPlaneWidget(), wxMaracasImageBrowser02::GetROI(), wxVtk2DBaseView::GetSpacing(), ContourVOIWidget::GetVOI(), wxMaracasImageBrowser02::OnBtnResetRoi(), wxVtkClipping3DViewCntrlPanel::OnBtnSaveRawVolume(), wxSegmentationFM3DWidget::OnBtnSegment(), wxVtkClipping3DViewVolCntrlPanel::OnBtnVolumeFunctions(), wxVtkClipping3DViewCntrlPanel::OnBtnVolumeFunctions(), wxVtkMPR3DViewCntrlPanel::OnEditColorTable(), wxProcessingCTWidget::OnExtract(), wxVtkMPR2DView::Refresh(), wxVtkMPR3DView::RefreshView(), wxVtk2DBaseView::ResetView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxPanelCuttingImageData::SetParamsOfTransformation(), vtkPlane2DView::SetPSource(), wxPanelCuttingImageData::SetVtkMPRBaseData(), wxVtkMPR3DView::TestLoic1(), wxVtkMPR3DView::TestLoic2(), vtkPlane2DView::TransfromCoordViewWorld2(), wxMaracas_ViewerWidget::wxMaracas_ViewerWidget(), and wxVtkClipping3DViewCntrlPanel::wxVtkClipping3DViewCntrlPanel().

00026 {
00027         return _marImageData->GetImageDataT(_t);
00028 }

Here is the call graph for this function:

Here is the caller graph for this function:

marImageData * vtkBaseData::GetMarImageData (  )  [inherited]

Definition at line 30 of file vtkBaseData.cxx.

References vtkBaseData::_marImageData.

Referenced by wxVtk2DBaseView::Configure(), wxMaracasImageBrowser02::OnBtSaveVOIData(), and wxMaracas_ViewerWidget::SetImage().

00031 {
00032         return _marImageData;
00033 }

Here is the caller graph for this function:

int vtkMPRBaseData::GetMaxPositionX (  ) 

Definition at line 65 of file wxMPRBaseData.cxx.

References _x2.

Referenced by wxManualRegistration3D::CreateRegistration3DControl().

00066 {
00067         return _x2;
00068 }

Here is the caller graph for this function:

int vtkMPRBaseData::GetMaxPositionY (  ) 

Definition at line 70 of file wxMPRBaseData.cxx.

References _y2.

Referenced by wxManualRegistration3D::CreateRegistration3DControl().

00071 {
00072         return _y2;
00073 }

Here is the caller graph for this function:

int vtkMPRBaseData::GetMaxPositionZ (  ) 

Definition at line 75 of file wxMPRBaseData.cxx.

References _z2.

Referenced by wxManualRegistration3D::CreateRegistration3DControl().

00076 {
00077         return _z2;
00078 }

Here is the caller graph for this function:

int vtkBaseData::GetT (  )  [inherited]

Definition at line 84 of file vtkBaseData.cxx.

References vtkBaseData::_t.

00085 {
00086         return _t;
00087 }

vtkTransform * vtkMPRBaseData::GetTransformOrientation (  ) 
double vtkMPRBaseData::GetX (  ) 
double vtkMPRBaseData::GetY (  ) 
double vtkBaseData::GetZ (  )  [inherited]
void vtkMPRBaseData::InitTransformOrientation ( vtkTransform *  trans  ) 

Definition at line 170 of file wxMPRBaseData.cxx.

References _transformOrientation.

Referenced by vtkPlane2DView::RotationDrag().

00171 {
00172         _transformOrientation->SetMatrix( trans->GetMatrix() );
00173 }

Here is the caller graph for this function:

void vtkBaseData::SetMarImageData ( marImageData marimagedata  )  [inherited]
void vtkMPRBaseData::SetNormal ( double  nx,
double  ny,
double  nz 
)

Definition at line 161 of file wxMPRBaseData.cxx.

References _transformOrientation.

Referenced by vtkmyPWCallback_3DPointWidget::Execute(), manualContourPerpPlaneControler::ResetOrientationPlane(), and manualContour3DControler::ResetOrientationPlane().

00162 {
00163         double alfa = atan2(ny,nx) * 180.0 / 3.1416;
00164         double beta = atan2( nz, sqrt( nx*nx + ny*ny )  ) * 180.0 / 3.1416;
00165         _transformOrientation->Identity();              
00166         _transformOrientation->RotateWXYZ(alfa,0,0,1);
00167         _transformOrientation->RotateWXYZ(-beta,0,1,0);
00168 }

Here is the caller graph for this function:

void vtkBaseData::SetT ( double  t  )  [inherited]

Definition at line 89 of file vtkBaseData.cxx.

References vtkBaseData::_marImageData, vtkBaseData::_t, and marImageData::GetMaxT().

00090 {
00091         int maxT = _marImageData->GetMaxT();
00092         if (t>=maxT)
00093         {
00094                 t=maxT-1;
00095         }
00096         if (t<=0)
00097         {
00098                 t=0;
00099         }
00100         _t=(int)t;
00101 }

Here is the call graph for this function:

void vtkMPRBaseData::SetX ( double  x  ) 

Calculates the value of the slider and the layer in the image that is spouse to show

Definition at line 94 of file wxMPRBaseData.cxx.

References vtkBaseData::_marImageData, _x, and marImageData::GetImageData().

Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxMPRWidget::ConfigureVTK(), wxMaracas_ViewerWidget::ConfigureVTK(), wxMaracas_ManualContour_Panel::ConfigureVTK(), vtkmyPWCallback_3DPointWidget::Execute(), manualContour3DControler::MouseClickLeft(), wxVtkMPR2DView::MoveX(), vtkInteractorStylePlane2D::OnLeftDClick(), wxVtkMPR3DViewCntrlPanel::OnPositionX(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxVtkMPR2DView::SetActualSlice(), vtkPlane2DView::SetActualSlice(), and wxSphereView::SetXYZtoParent().

00095 {
00096         //int dim[3];
00097         int ext[6];
00098 
00099         vtkImageData* img = _marImageData->GetImageData();
00100         if(img!=NULL){
00101                 /*img->GetDimensions(dim);
00102                 if (x<0)
00103                 {
00104                         x=0;
00105                 }
00106                 if (x>=dim[0])
00107                 {
00108                         x=dim[0]-1;
00109                 }
00110                 _x=x;*/
00111                 img->GetExtent(ext);
00112                 if (x < ext[0])
00113                 {
00114                         x=ext[0];
00115                 }
00116                 if (x > ext[1])
00117                 {
00118                         x=ext[1];
00119                 }
00120                 _x=x;
00121         }
00122 }

Here is the call graph for this function:

Here is the caller graph for this function:

void vtkMPRBaseData::SetY ( double  y  ) 

Calculates the value of the slider and the layer in the image that is spouse to show

Definition at line 127 of file wxMPRBaseData.cxx.

References vtkBaseData::_marImageData, _y, and marImageData::GetImageData().

Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxMPRWidget::ConfigureVTK(), wxMaracas_ViewerWidget::ConfigureVTK(), wxMaracas_ManualContour_Panel::ConfigureVTK(), vtkmyPWCallback_3DPointWidget::Execute(), manualContour3DControler::MouseClickLeft(), wxVtkMPR2DView::MoveY(), vtkInteractorStylePlane2D::OnLeftDClick(), wxVtkMPR3DViewCntrlPanel::OnPositionY(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxVtkMPR2DView::SetActualSlice(), vtkPlane2DView::SetActualSlice(), and wxSphereView::SetXYZtoParent().

00128 {
00129         //int dim[3];
00130         int ext[6];
00131         vtkImageData* img = _marImageData->GetImageData();
00132         if(img!=NULL){
00133                 /*img->GetDimensions(dim);
00134                 if (y<0)
00135                 {
00136                         y=0;
00137                 }
00138                 if (y>=dim[1])
00139                 {
00140                         y=dim[1]-1;
00141                 }
00142                 _y=y;*/
00143                 img->GetExtent(ext);
00144                 if (y<ext[2])
00145                 {
00146                         y=ext[2];
00147                 }
00148                 if (y > ext[3])
00149                 {
00150                         y=ext[3];
00151                 }
00152                 _y=y;
00153         }
00154 }

Here is the call graph for this function:

Here is the caller graph for this function:

void vtkBaseData::SetZ ( double  z  )  [inherited]

Definition at line 42 of file vtkBaseData.cxx.

References vtkBaseData::_marImageData, vtkBaseData::_z, and marImageData::GetImageData().

Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxMPRWidget::ConfigureVTK(), wxMaracas_ViewerWidget::ConfigureVTK(), wxMaracas_ManualContour_Panel::ConfigureVTK(), wxSphereView::DefineImageSphere(), vtkmyPWCallback_3DPointWidget::Execute(), manualContour3DControler::MouseClickLeft(), wxVtkMPR2DView::MoveZ(), wxWidgetSliderMinMaxVOI::onActualChange_Bar(), wxWidgetSliderMinMaxVOI::onEndChange_Bar(), vtkInteractorStylePlane2D::OnLeftDClick(), wxVtkMPR3DViewCntrlPanel::OnPositionZ(), wxMaracasImageBrowser02::OnRefreshView2(), wxWidgetSliderMinMaxVOI::onStartChange_Bar(), wxProcessingCTWidget::OnZSlice(), wxProcessingCTWidget::Refresh(), wxMaracasImageBrowser02::Refresh(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxVtkMPR2DView::SetActualSlice(), wxVtk2DBaseView::SetActualSlice(), vtkPlane2DView::SetActualSlice(), and wxSphereView::SetXYZtoParent().

00042                               {
00043         //int maxZ;
00044 
00045 //      int dim[3];
00046 //      _marImageData->GetDimensions(dim);
00047 //      maxZ=dim[2];
00048 
00049         int ext[6];
00050         vtkImageData* img = _marImageData->GetImageData();
00051         if(img!=NULL){
00052                 /*img->GetWholeExtent(ext);
00053                 maxZ=ext[5]-ext[4]+1;
00054 
00055                 if (z>=maxZ)
00056                 {
00057                         //z=maxZ-1;
00058                 }
00059                 if (z<=0)
00060                 {
00061                         z=0;
00062                 }
00063 
00064                 _z=z;*/
00065                 img->GetExtent(ext);
00066                 if (z > ext[5])
00067                 {
00068                         z = ext[5];
00069                 }
00070                 if (z < ext[4])
00071                 {
00072                         z = ext[4];
00073                 }
00074 
00075                 _z=z;
00076         }
00077 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

marImageData* vtkBaseData::_marImageData [protected, inherited]
int vtkBaseData::_t [protected, inherited]
vtkTransform* vtkMPRBaseData::_transformOrientation [private]
double vtkMPRBaseData::_x [private]

Definition at line 80 of file wxMPRBaseData.h.

Referenced by GetX(), SetX(), and vtkMPRBaseData().

int vtkMPRBaseData::_x1 [protected]

Definition at line 77 of file wxMPRBaseData.h.

Referenced by Configure(), and GetDimensionExtention().

int vtkMPRBaseData::_x2 [protected]

Definition at line 77 of file wxMPRBaseData.h.

Referenced by Configure(), GetDimensionExtention(), and GetMaxPositionX().

double vtkMPRBaseData::_y [private]

Definition at line 80 of file wxMPRBaseData.h.

Referenced by GetY(), SetY(), and vtkMPRBaseData().

int vtkMPRBaseData::_y1 [protected]

Definition at line 77 of file wxMPRBaseData.h.

Referenced by Configure(), and GetDimensionExtention().

int vtkMPRBaseData::_y2 [protected]

Definition at line 77 of file wxMPRBaseData.h.

Referenced by Configure(), GetDimensionExtention(), and GetMaxPositionY().

double vtkBaseData::_z [protected, inherited]
int vtkMPRBaseData::_z1 [protected]

Definition at line 77 of file wxMPRBaseData.h.

Referenced by Configure(), and GetDimensionExtention().

int vtkMPRBaseData::_z2 [protected]

Definition at line 77 of file wxMPRBaseData.h.

Referenced by Configure(), GetDimensionExtention(), and GetMaxPositionZ().


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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1