vtkBaseData Class Reference

#include <vtkBaseData.h>

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

List of all members.

Public Member Functions

 vtkBaseData ()
virtual ~vtkBaseData ()
vtkImageData * GetImageData ()
marImageDataGetMarImageData ()
void SetMarImageData (marImageData *marimagedata)
virtual void Configure ()
double GetZ ()
void SetZ (double z)
int GetT ()
void SetT (double t)

Protected Attributes

marImageData_marImageData
double _z
int _t

Detailed Description

Definition at line 9 of file vtkBaseData.h.


Constructor & Destructor Documentation

vtkBaseData::vtkBaseData (  ) 

Definition at line 4 of file vtkBaseData.cxx.

References _marImageData, _t, and _z.

00005 {
00006 
00007         _z            = 0;
00008         _t            = 0;
00009         _marImageData = 0;
00010 }

vtkBaseData::~vtkBaseData (  )  [virtual]

Definition at line 13 of file vtkBaseData.cxx.

00014 {
00015 }


Member Function Documentation

void vtkBaseData::Configure (  )  [virtual]

Reimplemented in vtkMPRBaseData.

Definition at line 42 of file vtkBaseData.cxx.

00043 {
00044 }

vtkImageData * vtkBaseData::GetImageData (  ) 

Definition at line 25 of file vtkBaseData.cxx.

References _marImageData, _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(), wxVtkMPR3DViewCntrlPanel::UpdateControlPanel(), wxMaracas_ViewerWidget::wxMaracas_ViewerWidget(), and wxVtkClipping3DViewCntrlPanel::wxVtkClipping3DViewCntrlPanel().

00026 {
00027         if(_marImageData){
00028                 return _marImageData->GetImageDataT(_t);
00029         }else{
00030                 return 0;
00031         }
00032         
00033 }

Here is the call graph for this function:

Here is the caller graph for this function:

marImageData * vtkBaseData::GetMarImageData (  ) 

Definition at line 35 of file vtkBaseData.cxx.

References _marImageData.

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

00036 {
00037         return _marImageData;
00038 }

Here is the caller graph for this function:

int vtkBaseData::GetT (  ) 

Definition at line 93 of file vtkBaseData.cxx.

References _t.

00094 {
00095         return _t;
00096 }

double vtkBaseData::GetZ (  ) 
void vtkBaseData::SetMarImageData ( marImageData marimagedata  ) 
void vtkBaseData::SetT ( double  t  ) 

Definition at line 98 of file vtkBaseData.cxx.

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

00099 {
00100         int maxT = _marImageData->GetMaxT();
00101         if (t>=maxT)
00102         {
00103                 t=maxT-1;
00104         }
00105         if (t<=0)
00106         {
00107                 t=0;
00108         }
00109         _t=(int)t;
00110 }

Here is the call graph for this function:

void vtkBaseData::SetZ ( double  z  ) 

Definition at line 47 of file vtkBaseData.cxx.

References _marImageData, _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().

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

int vtkBaseData::_t [protected]

Definition at line 26 of file vtkBaseData.h.

Referenced by GetImageData(), GetT(), SetT(), and vtkBaseData().

double vtkBaseData::_z [protected]

Definition at line 25 of file vtkBaseData.h.

Referenced by GetZ(), SetZ(), vtkBaseData(), and vtkMPRBaseData::vtkMPRBaseData().


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

Generated on 20 Oct 2010 for creaMaracasVisu_lib by  doxygen 1.6.1