#include <vtkImageViewer2_XYZ.h>
Public Member Functions | |
vtkImageViewer2_XYZ () | |
~vtkImageViewer2_XYZ () | |
void | SetExtentDimension (int x1, int x2, int y1, int y2, int z1, int z2) |
void | SetXSlice (int slice) |
void | SetYSlice (int slice) |
void | SetZSlice (int slice) |
int | GetXSlice () |
int | GetYSlice () |
int | GetZSlice () |
void | setColorTransferFunction (vtkColorTransferFunction *colortable) |
vtkImageViewer2 * | GetVtkImageViewer2 () |
Private Attributes | |
int | _x1 |
int | _x2 |
int | _y1 |
int | _y2 |
int | _z1 |
int | _z2 |
vtkImageViewer2 * | _vtkimageviewer2 |
vtkColorTransferFunction * | _colortable |
Definition at line 13 of file vtkImageViewer2_XYZ.h.
vtkImageViewer2_XYZ::vtkImageViewer2_XYZ | ( | ) |
Definition at line 8 of file vtkImageViewer2_XYZ.cxx.
References _colortable, and _vtkimageviewer2.
00009 { 00010 _vtkimageviewer2= vtkImageViewer2::New(); 00011 _vtkimageviewer2->GetRenderer()->GradientBackgroundOn(); 00012 _vtkimageviewer2->GetRenderer()->SetBackground( 0.33 , 0.33 , 0.33 ); 00013 _vtkimageviewer2->GetRenderer()->SetBackground2( 0.66 , 0.66 , 0.66 ); 00014 _colortable = NULL; 00015 }
vtkImageViewer2_XYZ::~vtkImageViewer2_XYZ | ( | ) |
Definition at line 17 of file vtkImageViewer2_XYZ.cxx.
vtkImageViewer2 * vtkImageViewer2_XYZ::GetVtkImageViewer2 | ( | ) |
Definition at line 85 of file vtkImageViewer2_XYZ.cxx.
References _vtkimageviewer2.
Referenced by wxWidgetMesure2D_Plane::CircleLine(), wxVtkMPR2DView::Configure(), wxVtk2DBaseView::Configure(), vtkPlane2DView::Configure(), vtkPlane2DView::Extract_MIP_PlaneVTK(), vtkPlane2DView::Extract_One_PlaneVTK(), wxVtk2DBaseView::GetRenderer(), wxVtk2DBaseView::GetRenWin(), vtkPlane2DView::HorizontalLine(), wxMaracasImageBrowser02::OnBtnResetRoi(), vtkInfoTextImage::PutColorLevel(), vtkInfoTextImage::PutWindowLevel(), wxVtk2DBaseView::ResetView(), wxVtk2DBaseView::setColorLevel(), wxVtk2DBaseView::SetInteractorStyleImage(), wxVtkMPR2DView::SetVisibleAxis(), wxVtk2DBaseView::setWindowLevel(), wxVtk2DBaseView::TransformCoordinate_spacing_ModelToView(), and wxVtk2DBaseView::TransformCoordinate_spacing_ViewToModel().
00086 { 00087 return _vtkimageviewer2; 00088 }
int vtkImageViewer2_XYZ::GetXSlice | ( | ) |
Definition at line 59 of file vtkImageViewer2_XYZ.cxx.
References _vtkimageviewer2.
00060 { 00061 vtkImageActor *imageActor = _vtkimageviewer2->GetImageActor(); 00062 return imageActor->GetDisplayExtent()[0]; 00063 }
int vtkImageViewer2_XYZ::GetYSlice | ( | ) |
Definition at line 65 of file vtkImageViewer2_XYZ.cxx.
References _vtkimageviewer2.
00066 { 00067 vtkImageActor *imageActor = _vtkimageviewer2->GetImageActor(); 00068 return imageActor->GetDisplayExtent()[2]; 00069 }
int vtkImageViewer2_XYZ::GetZSlice | ( | ) |
Definition at line 71 of file vtkImageViewer2_XYZ.cxx.
References _vtkimageviewer2.
00072 { 00073 00074 int result; 00075 #if (VTK_MAJOR_VERSION >= 5) 00076 result= _vtkimageviewer2->GetSlice( ); 00077 #else 00078 result= _vtkimageviewer2->GetZSlice( ); 00079 #endif 00080 00081 00082 return result; 00083 }
void vtkImageViewer2_XYZ::setColorTransferFunction | ( | vtkColorTransferFunction * | colortable | ) |
Definition at line 90 of file vtkImageViewer2_XYZ.cxx.
References _colortable, and _vtkimageviewer2.
Referenced by wxVtk2DBaseView::setColorTransferFunction().
00090 { 00091 00092 00093 vtkImageMapToWindowLevelColors* imagemaptowindowlevel = _vtkimageviewer2->GetWindowLevel(); 00094 00095 if(colortable!=NULL&&colortable->GetSize()>0 && _colortable != colortable){ 00096 _colortable = colortable; 00097 imagemaptowindowlevel->SetLookupTable(colortable); 00098 } 00099 00100 }
void vtkImageViewer2_XYZ::SetExtentDimension | ( | int | x1, | |
int | x2, | |||
int | y1, | |||
int | y2, | |||
int | z1, | |||
int | z2 | |||
) |
void vtkImageViewer2_XYZ::SetXSlice | ( | int | slice | ) |
Definition at line 34 of file vtkImageViewer2_XYZ.cxx.
References _vtkimageviewer2, _y1, _y2, _z1, and _z2.
Referenced by wxVtkMPR2DView::Refresh().
00035 { 00036 vtkImageActor *imageActor = _vtkimageviewer2->GetImageActor(); 00037 imageActor->SetDisplayExtent(slice, slice, _y1, _y2, _z1, _z2 ); 00038 }
void vtkImageViewer2_XYZ::SetYSlice | ( | int | slice | ) |
Definition at line 40 of file vtkImageViewer2_XYZ.cxx.
References _vtkimageviewer2, _x1, _x2, _z1, and _z2.
Referenced by wxVtkMPR2DView::Refresh().
00041 { 00042 vtkImageActor *imageActor = _vtkimageviewer2->GetImageActor(); 00043 imageActor->SetDisplayExtent(_x1, _x2, slice, slice, _z1, _z2 ); 00044 }
void vtkImageViewer2_XYZ::SetZSlice | ( | int | slice | ) |
Definition at line 46 of file vtkImageViewer2_XYZ.cxx.
References _vtkimageviewer2, _x1, _x2, _y1, and _y2.
Referenced by wxVtkMPR2DView::Refresh(), and wxVtk2DBaseView::Refresh().
00047 { 00048 #if (VTK_MAJOR_VERSION >= 5) 00049 // _vtkimageviewer2->SetSlice( slice ); 00050 vtkImageActor *imageActor = _vtkimageviewer2->GetImageActor(); 00051 imageActor->SetDisplayExtent(_x1, _x2, _y1, _y2, slice, slice ); 00052 #else 00053 _vtkimageviewer2->SetZSlice( slice ); 00054 #endif 00055 00056 00057 }
vtkColorTransferFunction* vtkImageViewer2_XYZ::_colortable [private] |
Definition at line 33 of file vtkImageViewer2_XYZ.h.
Referenced by setColorTransferFunction(), and vtkImageViewer2_XYZ().
vtkImageViewer2* vtkImageViewer2_XYZ::_vtkimageviewer2 [private] |
Definition at line 32 of file vtkImageViewer2_XYZ.h.
Referenced by GetVtkImageViewer2(), GetXSlice(), GetYSlice(), GetZSlice(), setColorTransferFunction(), SetXSlice(), SetYSlice(), SetZSlice(), and vtkImageViewer2_XYZ().
int vtkImageViewer2_XYZ::_x1 [private] |
Definition at line 31 of file vtkImageViewer2_XYZ.h.
Referenced by SetExtentDimension(), SetYSlice(), and SetZSlice().
int vtkImageViewer2_XYZ::_x2 [private] |
Definition at line 31 of file vtkImageViewer2_XYZ.h.
Referenced by SetExtentDimension(), SetYSlice(), and SetZSlice().
int vtkImageViewer2_XYZ::_y1 [private] |
Definition at line 31 of file vtkImageViewer2_XYZ.h.
Referenced by SetExtentDimension(), SetXSlice(), and SetZSlice().
int vtkImageViewer2_XYZ::_y2 [private] |
Definition at line 31 of file vtkImageViewer2_XYZ.h.
Referenced by SetExtentDimension(), SetXSlice(), and SetZSlice().
int vtkImageViewer2_XYZ::_z1 [private] |
Definition at line 31 of file vtkImageViewer2_XYZ.h.
Referenced by SetExtentDimension(), SetXSlice(), and SetYSlice().
int vtkImageViewer2_XYZ::_z2 [private] |
Definition at line 31 of file vtkImageViewer2_XYZ.h.
Referenced by SetExtentDimension(), SetXSlice(), and SetYSlice().