#include <wxVtkMPR2DView.h>
Public Member Functions | |
wxVtkMPR2DView (wxWindow *parent, int direction) | |
~wxVtkMPR2DView () | |
void | Configure () |
virtual void | Refresh () |
vtkMPRBaseData * | GetVtkmprbasedata () |
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) |
vtkBaseData * | GetVtkBaseData () |
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) |
wxVTKRenderWindowInteractor * | GetWxVTKRenderWindowInteractor () 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 |
Definition at line 14 of file wxVtkMPR2DView.h.
wxVtkMPR2DView::wxVtkMPR2DView | ( | wxWindow * | parent, | |
int | direction | |||
) |
Definition at line 7 of file wxVtkMPR2DView.cxx.
References _backX, _backY, _backZ, _direction, _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 }
wxVtkMPR2DView::~wxVtkMPR2DView | ( | ) |
Definition at line 25 of file wxVtkMPR2DView.cxx.
References _lineAActor, _lineAMapper, _lineBActor, _lineBMapper, _pdA, _pdB, _ptsA, and _ptsB.
00026 { 00027 if (_ptsA!=NULL) { _ptsA -> Delete(); } 00028 if (_lineAActor!=NULL) { _lineAActor -> Delete(); } 00029 if (_lineAMapper!=NULL) { _lineAMapper -> Delete(); } 00030 if (_pdA!=NULL) { _pdA -> Delete(); } 00031 if (_ptsB!=NULL) { _ptsB -> Delete(); } 00032 if (_lineBActor!=NULL) { _lineBActor -> Delete(); } 00033 if (_lineBMapper!=NULL) { _lineBMapper -> Delete(); } 00034 if (_pdB!=NULL) { _pdB -> Delete(); } 00035 }
void wxVtkMPR2DView::Configure | ( | ) | [virtual] |
Reimplemented from wxVtkBaseView.
Definition at line 42 of file wxVtkMPR2DView.cxx.
References _direction, wxVtk2DBaseView::_imageViewer2XYZ, _interactorstylemprview, _lineAActor, _lineAMapper, _lineBActor, _lineBMapper, _pdA, _pdB, _ptsA, _ptsB, _visibleAxis, wxVtkBaseView::Configure(), vtkBaseData::GetImageData(), wxVtkBaseView::GetInteractorStyleBaseView(), vtkImageViewer2_XYZ::GetVtkImageViewer2(), and GetVtkmprbasedata().
00042 { 00043 wxVtk2DBaseView::Configure(); 00044 00045 _interactorstylemprview = new vtkInteractorStyleMPRView(); 00046 ((vtkInteractorStyleBaseView*)GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _interactorstylemprview ); 00047 00048 int x1,x2,y1,y2,z1,z2; 00049 GetVtkmprbasedata() -> GetDimensionExtention(&x1,&x2,&y1,&y2,&z1,&z2); 00050 00051 double spc[3]; 00052 vtkImageData* img = GetVtkmprbasedata()->GetImageData(); 00053 if(img!=NULL){ 00054 img->GetSpacing(spc); 00055 x1 = (int)(x1*spc[0]); 00056 y1 = (int)(y1*spc[1]); 00057 z1 = (int)(z1*spc[2]); 00058 00059 x2 = (int)(x2*spc[0]); 00060 y2 = (int)(y2*spc[1]); 00061 z2 = (int)(z2*spc[2]); 00062 00063 _visibleAxis = true; 00064 00065 // Axe A 00066 if(_lineAActor==NULL){ 00067 _ptsA = vtkPoints::New(); 00068 _ptsA->SetNumberOfPoints(2); 00069 _ptsA->SetPoint(0, -1000 , -1000 , -1000 ); 00070 _ptsA->SetPoint(1, 1000 , 1000 , 1000 ); 00071 vtkCellArray *linesA; 00072 linesA = vtkCellArray::New(); 00073 linesA->InsertNextCell(2); 00074 linesA->InsertCellPoint(0); 00075 linesA->InsertCellPoint(1); 00076 _pdA = vtkPolyData::New(); 00077 _pdA->SetPoints( _ptsA ); 00078 _pdA->SetLines( linesA ); 00079 linesA->Delete(); //do not delete lines ?? 00080 _lineAActor = vtkActor::New(); 00081 _lineAMapper = vtkPolyDataMapper::New(); 00082 00083 _lineAMapper->SetInput(_pdA); 00084 _lineAMapper->ImmediateModeRenderingOn(); 00085 _lineAActor->SetMapper(_lineAMapper); 00086 // _lineAActor->GetProperty()->BackfaceCullingOn(); 00087 _lineAActor->GetProperty()->SetDiffuseColor(1,0,0); 00088 _lineAActor->GetProperty()->SetLineWidth(2); 00089 _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->AddActor( _lineAActor ); 00090 } 00091 00092 00093 00094 00095 // Axe B 00096 if(_lineBActor==NULL){ 00097 _ptsB = vtkPoints::New(); 00098 _ptsB->SetNumberOfPoints(2); 00099 _ptsB->SetPoint(0, -1000 , -1000 , -1000 ); 00100 _ptsB->SetPoint(1, 1000 , 1000 , 1000 ); 00101 vtkCellArray *linesB; 00102 linesB = vtkCellArray::New(); 00103 linesB->InsertNextCell(2); 00104 linesB->InsertCellPoint(0); 00105 linesB->InsertCellPoint(1); 00106 _pdB = vtkPolyData::New(); 00107 _pdB->SetPoints( _ptsB ); 00108 _pdB->SetLines( linesB ); 00109 linesB->Delete(); //do not delete lines ?? 00110 _lineBActor = vtkActor::New(); 00111 _lineBMapper = vtkPolyDataMapper::New(); 00112 _lineBMapper->SetInput(_pdB); 00113 _lineBMapper->ImmediateModeRenderingOn(); 00114 _lineBActor->SetMapper(_lineBMapper); 00115 // _lineBActor->GetProperty()->BackfaceCullingOn(); 00116 _lineBActor->GetProperty()->SetDiffuseColor(1,0,0); 00117 _lineBActor->GetProperty()->SetLineWidth(2); 00118 _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->AddActor( _lineBActor ); 00119 } 00120 00121 00122 vtkCamera *camera =_imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->GetActiveCamera(); 00123 00124 //EED 17Avril2009 00125 /* 00126 if (_direction==0) { 00127 camera->SetViewUp ( 0 , -1 , 0 ); 00128 camera->SetPosition ( -10000,(y1+y2)/2 , (z1+z2)/2 ); 00129 camera->SetFocalPoint ( 0 , (y1+y2)/2 , (z1+z2)/2 ); 00130 camera->SetParallelScale( (z2-z1)/3.0 ); 00131 } 00132 00133 if (_direction==1) { 00134 camera->SetViewUp ( 0 , 0 , -1 ); 00135 camera->SetPosition ((x1+x2)/2 , 10000 , (z1+z2)/2 ); 00136 camera->SetFocalPoint ((x1+x2)/2 , 0 , (z1+z2)/2 ); 00137 camera->SetParallelScale( (x2-x1)/3.0 ); 00138 } 00139 00140 if (_direction==2) { 00141 camera->SetViewUp ( 0 , -1 , 0 ); 00142 camera->SetPosition ((x1+x2)/2 , (y1+y2)/2 , -10000); 00143 camera->SetFocalPoint ((x1+x2)/2 , (y1+y2)/2 , 0 ); 00144 camera->SetParallelScale( (x2-x1)/3.0 ); 00145 } 00146 */ 00147 00148 if (_direction==0) { // YZ 00149 camera->SetViewUp ( 0 , 1 , 0 ); 00150 camera->SetPosition ( 10000,(y1+y2)/2 , (z1+z2)/2 ); 00151 camera->SetFocalPoint ( 0 , (y1+y2)/2 , (z1+z2)/2 ); 00152 camera->SetParallelScale( (z2-z1)/3.0 ); 00153 } 00154 00155 if (_direction==1) { // XZ 00156 camera->SetViewUp ( 0 , 0 , -1 ); 00157 camera->SetPosition ((x1+x2)/2 , 10000 , (z1+z2)/2 ); 00158 camera->SetFocalPoint ((x1+x2)/2 , 0 , (z1+z2)/2 ); 00159 camera->SetParallelScale( (x2-x1)/3.0 ); 00160 } 00161 00162 if (_direction==2) { // XY 00163 camera->SetViewUp ( 0 , 1 , 0 ); 00164 camera->SetPosition ((x1+x2)/2 , (y1+y2)/2 , 10000); 00165 camera->SetFocalPoint ((x1+x2)/2 , (y1+y2)/2 , 0 ); 00166 camera->SetParallelScale( (x2-x1)/3.0 ); 00167 } 00168 00169 00170 00171 } 00172 00173 // _imageViewer2XYZ->GetVtkImageViewer2()->SetColorWindow (160); 00174 // _imageViewer2XYZ->GetVtkImageViewer2()->SetColorLevel (800); 00175 00176 }
void wxVtkMPR2DView::Refresh | ( | ) | [virtual] |
Reimplemented from wxVtk2DBaseView.
Definition at line 198 of file wxVtkMPR2DView.cxx.
References _backX, _backY, _backZ, _direction, wxVtk2DBaseView::_imageViewer2XYZ, _ptsA, _ptsB, vtkMPRBaseData::GetDimensionExtention(), vtkBaseData::GetImageData(), GetVtkmprbasedata(), vtkMPRBaseData::GetX(), vtkMPRBaseData::GetY(), vtkBaseData::GetZ(), wxVtkBaseView::Refresh(), vtkImageViewer2_XYZ::SetXSlice(), vtkImageViewer2_XYZ::SetYSlice(), and vtkImageViewer2_XYZ::SetZSlice().
Referenced by ChangeAxisColor().
00199 { 00200 //wxVtk2DBaseView::Refresh(); 00201 00202 00203 //vtkImageViewer2 *IV2=_imageViewer2XYZ->GetVtkImageViewer2(); // JPRx 00204 //vtkCamera *camera = IV2->GetRenderer()->GetActiveCamera(); // JPRx 00205 00206 00207 00208 int x1,x2,y1,y2,z1,z2; 00209 GetVtkmprbasedata()->GetDimensionExtention(&x1,&x2,&y1,&y2,&z1,&z2); 00210 double spc[3]; 00211 00212 vtkImageData* img = GetVtkmprbasedata()->GetImageData(); 00213 if(img!=NULL){ 00214 img->GetSpacing(spc); 00215 x1 = (int)(x1*spc[0]); 00216 y1 = (int)(y1*spc[1]); 00217 z1 = (int)(z1*spc[2]); 00218 00219 x2 = (int)(x2*spc[0]); 00220 y2 = (int)(y2*spc[1]); 00221 z2 = (int)(z2*spc[2]); 00222 00223 int x = (int)(GetVtkmprbasedata()->GetX()); 00224 int y = (int)(GetVtkmprbasedata()->GetY()); 00225 int z = (int)(GetVtkmprbasedata()->GetZ()); 00226 00227 x = (int)(x*spc[0]); 00228 y = (int)(y*spc[1]); 00229 z = (int)(z*spc[2]); 00230 00231 if ((x!=_backX) || (y!=_backY) || (z!=_backZ)) { 00232 00233 if (_direction==0) { // YZ 00234 _imageViewer2XYZ->SetXSlice( (int)(GetVtkmprbasedata()->GetX()) ); 00235 _ptsA->SetPoint(0, x2, y1 , z ); 00236 _ptsA->SetPoint(1, x2, y2 , z ); 00237 _ptsB->SetPoint(0, x2, y , z1); 00238 _ptsB->SetPoint(1, x2, y , z2); 00239 } 00240 if (_direction==1) { // XZ 00241 _imageViewer2XYZ->SetYSlice( (int)(GetVtkmprbasedata()->GetY()) ); 00242 _ptsA->SetPoint(0, x1 , y2 , z ); 00243 _ptsA->SetPoint(1, x2 , y2 , z ); 00244 _ptsB->SetPoint(0, x , y2 , z1); 00245 _ptsB->SetPoint(1, x , y2 , z2); 00246 } 00247 if (_direction==2) { // XY 00248 _imageViewer2XYZ->SetZSlice( (int)(GetVtkmprbasedata()->GetZ()) ); 00249 _imageViewer2XYZ->SetZSlice( (int)(GetVtkmprbasedata()->GetZ()) ); 00250 // _ptsA->SetPoint(0, x1 , y , -z2 ); 00251 // _ptsA->SetPoint(1, x2 , y , -z2 ); 00252 // _ptsB->SetPoint(0, x , y1, -z2 ); 00253 // _ptsB->SetPoint(1, x , y2, -z2 ); 00254 00255 _ptsA->SetPoint(0, x1 , y , z2 ); 00256 _ptsA->SetPoint(1, x2 , y , z2 ); 00257 _ptsB->SetPoint(0, x , y1, z2 ); 00258 _ptsB->SetPoint(1, x , y2, z2 ); 00259 } 00260 _backX=x; 00261 _backY=y; 00262 _backZ=z; 00263 } 00264 wxVtkBaseView::Refresh(); 00265 } 00266 }
vtkMPRBaseData * wxVtkMPR2DView::GetVtkmprbasedata | ( | ) |
Definition at line 37 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().
00038 { 00039 return (vtkMPRBaseData*)GetVtkBaseData(); 00040 }
int wxVtkMPR2DView::GetActualSlice | ( | ) | [virtual] |
Reimplemented from wxVtk2DBaseView.
Definition at line 268 of file wxVtkMPR2DView.cxx.
References _direction, GetVtkmprbasedata(), vtkMPRBaseData::GetX(), vtkMPRBaseData::GetY(), and vtkBaseData::GetZ().
00269 { 00270 int result; 00271 if (_direction==0) 00272 { 00273 result = (int)(GetVtkmprbasedata()->GetX()); 00274 } 00275 if (_direction==1) 00276 { 00277 result = (int)(GetVtkmprbasedata()->GetY()); 00278 } 00279 if (_direction==2) 00280 { 00281 result = (int)(GetVtkmprbasedata()->GetZ()); 00282 } 00283 return result; 00284 }
void wxVtkMPR2DView::SetActualSlice | ( | int | slice | ) | [virtual] |
Reimplemented from wxVtk2DBaseView.
Definition at line 286 of file wxVtkMPR2DView.cxx.
References _direction, GetVtkmprbasedata(), vtkMPRBaseData::SetX(), vtkMPRBaseData::SetY(), and vtkBaseData::SetZ().
00287 { 00288 if (_direction==0) 00289 { 00290 GetVtkmprbasedata()->SetX(slice); 00291 } 00292 if (_direction==1) 00293 { 00294 GetVtkmprbasedata()->SetY(slice); 00295 } 00296 if (_direction==2) 00297 { 00298 GetVtkmprbasedata()->SetZ(slice); 00299 } 00300 }
bool wxVtkMPR2DView::IfMouseTouchX | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Definition at line 302 of file wxVtkMPR2DView.cxx.
References _direction, and GetVtkmprbasedata().
Referenced by ChangeAxisColor(), and vtkInteractorStyleMPRView::OnLeftButtonDown().
00303 { 00304 double delta=5; 00305 bool result=false; 00306 if (_direction==0) 00307 { 00308 } 00309 if (_direction==1) 00310 { 00311 if (( x<GetVtkmprbasedata()->GetX()+delta ) && ( x>GetVtkmprbasedata()->GetX()-delta )) 00312 { 00313 result = true; 00314 } 00315 } 00316 if (_direction==2) 00317 { 00318 if (( x<GetVtkmprbasedata()->GetX()+delta ) && ( x>GetVtkmprbasedata()->GetX()-delta )) 00319 { 00320 result = true; 00321 } 00322 } 00323 return result; 00324 }
bool wxVtkMPR2DView::IfMouseTouchY | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Definition at line 326 of file wxVtkMPR2DView.cxx.
References _direction, and GetVtkmprbasedata().
Referenced by ChangeAxisColor(), and vtkInteractorStyleMPRView::OnLeftButtonDown().
00327 { 00328 double delta=5; 00329 bool result=false; 00330 if (_direction==0) 00331 { 00332 if (( y<GetVtkmprbasedata()->GetY()+delta ) && ( y>GetVtkmprbasedata()->GetY()-delta )) 00333 { 00334 result = true; 00335 } 00336 } 00337 if (_direction==1) 00338 { 00339 } 00340 if (_direction==2) 00341 { 00342 if (( y<GetVtkmprbasedata()->GetY()+delta ) && ( y>GetVtkmprbasedata()->GetY()-delta )) 00343 { 00344 result = true; 00345 } 00346 } 00347 return result; 00348 }
bool wxVtkMPR2DView::IfMouseTouchZ | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Definition at line 350 of file wxVtkMPR2DView.cxx.
References _direction, and GetVtkmprbasedata().
Referenced by ChangeAxisColor(), and vtkInteractorStyleMPRView::OnLeftButtonDown().
00351 { 00352 double delta=5; 00353 bool result=false; 00354 if (_direction==0) 00355 { 00356 if (( z<GetVtkmprbasedata()->GetZ()+delta ) && ( z>GetVtkmprbasedata()->GetZ()-delta )) 00357 { 00358 result = true; 00359 } 00360 } 00361 if (_direction==1) 00362 { 00363 if (( z<GetVtkmprbasedata()->GetZ()+delta ) && ( z>GetVtkmprbasedata()->GetZ()-delta )) 00364 { 00365 result = true; 00366 } 00367 } 00368 if (_direction==2) 00369 { 00370 } 00371 return result; 00372 }
void wxVtkMPR2DView::MoveX | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Definition at line 374 of file wxVtkMPR2DView.cxx.
References _direction, GetVtkmprbasedata(), and vtkMPRBaseData::SetX().
Referenced by vtkInteractorStyleMPRView::OnLeftDClick().
00375 { 00376 if (_direction==0) 00377 { 00378 } 00379 if (_direction==1) 00380 { 00381 GetVtkmprbasedata()->SetX(x); 00382 } 00383 if (_direction==2) 00384 { 00385 GetVtkmprbasedata()->SetX(x); 00386 } 00387 }
void wxVtkMPR2DView::MoveY | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Definition at line 389 of file wxVtkMPR2DView.cxx.
References _direction, GetVtkmprbasedata(), and vtkMPRBaseData::SetY().
Referenced by vtkInteractorStyleMPRView::OnLeftDClick(), and vtkInteractorStyleMPRView::OnMouseMove().
00390 { 00391 if (_direction==0) 00392 { 00393 GetVtkmprbasedata()->SetY(y); 00394 } 00395 if (_direction==1) 00396 { 00397 } 00398 if (_direction==2) 00399 { 00400 GetVtkmprbasedata()->SetY(y); 00401 } 00402 }
void wxVtkMPR2DView::MoveZ | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Definition at line 404 of file wxVtkMPR2DView.cxx.
References _direction, GetVtkmprbasedata(), and vtkBaseData::SetZ().
Referenced by vtkInteractorStyleMPRView::OnLeftDClick(), and vtkInteractorStyleMPRView::OnMouseMove().
00405 { 00406 if (_direction==0) 00407 { 00408 GetVtkmprbasedata()->SetZ(z); 00409 } 00410 if (_direction==1) 00411 { 00412 GetVtkmprbasedata()->SetZ(z); 00413 } 00414 if (_direction==2) 00415 { 00416 } 00417 }
void wxVtkMPR2DView::ChangeAxisColor | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Definition at line 419 of file wxVtkMPR2DView.cxx.
References _direction, _lineAActor, _lineBActor, IfMouseTouchX(), IfMouseTouchY(), IfMouseTouchZ(), and Refresh().
Referenced by vtkInteractorStyleMPRView::OnMouseMove().
00420 { 00421 double c1r=1,c1g=1,c1b=0; 00422 double c2r=1,c2g=0,c2b=0; 00423 00424 if (_direction==0) 00425 { 00426 if (IfMouseTouchY(x,y,z)==true) 00427 { 00428 _lineBActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b); 00429 } else { 00430 _lineBActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b); 00431 } 00432 if (IfMouseTouchZ(x,y,z)==true) 00433 { 00434 _lineAActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b); 00435 } else { 00436 _lineAActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b); 00437 } 00438 } 00439 00440 if (_direction==1) 00441 { 00442 if (IfMouseTouchX(x,y,z)==true) 00443 { 00444 _lineBActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b); 00445 } else { 00446 _lineBActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b); 00447 } 00448 if (IfMouseTouchZ(x,y,z)==true) 00449 { 00450 _lineAActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b); 00451 } else { 00452 _lineAActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b); 00453 } 00454 } 00455 00456 if (_direction==2) 00457 { 00458 if (IfMouseTouchX(x,y,z)==true) 00459 { 00460 _lineBActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b); 00461 } else { 00462 _lineBActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b); 00463 } 00464 if (IfMouseTouchY(x,y,z)==true) 00465 { 00466 _lineAActor->GetProperty()->SetDiffuseColor(c1r,c1g,c1b); 00467 } else { 00468 _lineAActor->GetProperty()->SetDiffuseColor(c2r,c2g,c2b); 00469 } 00470 } 00471 Refresh(); 00472 }
void wxVtkMPR2DView::TransFromCoordScreenToWorld | ( | double & | X, | |
double & | Y, | |||
double & | Z, | |||
bool | keepNormalDirection = false , |
|||
int | type = 2 | |||
) | [virtual] |
Reimplemented from wxVtkBaseView.
Definition at line 477 of file wxVtkMPR2DView.cxx.
References _direction, wxVtk2DBaseView::GetVtkBaseData(), and wxVtkBaseView::TransFromCoordScreenToWorld().
00478 { 00479 00480 wxVtkBaseView::TransFromCoordScreenToWorld(X,Y,Z,keepNormalDirection,_direction); 00481 00482 if ((_direction==0) && (keepNormalDirection==true) ) 00483 { 00484 X = ((vtkMPRBaseData*)GetVtkBaseData())->GetX(); 00485 } 00486 00487 if ((_direction==1) && (keepNormalDirection==true) ) 00488 { 00489 Y = ((vtkMPRBaseData*)GetVtkBaseData())->GetY(); 00490 } 00491 00492 if ((_direction==2) && (keepNormalDirection==true) ) 00493 { 00494 Z = ((vtkMPRBaseData*)GetVtkBaseData())->GetZ(); 00495 } 00496 00497 }
void wxVtkMPR2DView::SetVisibleAxis | ( | bool | ok | ) |
Definition at line 178 of file wxVtkMPR2DView.cxx.
References wxVtk2DBaseView::_imageViewer2XYZ, _lineAActor, _lineBActor, _visibleAxis, and vtkImageViewer2_XYZ::GetVtkImageViewer2().
Referenced by wxMaracasSuperpositionPanel::SetVisibleAxis().
00179 { 00180 if (ok!=_visibleAxis) 00181 { 00182 _visibleAxis=ok; 00183 if (_visibleAxis==true) 00184 { 00185 _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->AddActor( _lineAActor ); 00186 _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->AddActor( _lineBActor ); 00187 } 00188 if (_visibleAxis==false) 00189 { 00190 _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->RemoveActor( _lineAActor ); 00191 _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->RemoveActor( _lineBActor ); 00192 } 00193 00194 } 00195 }
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(), 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 _vtkIinfoTextImage = new vtkInfoTextImage(); 00158 _vtkIinfoTextImageInteractor = new vtkInfoTextImageInteractor(); 00159 _vtkIinfoTextImage->SetWxVtk2DBaseView(this); 00160 _vtkIinfoTextImage->SetMarImageData( GetVtkBaseData()->GetMarImageData() ); 00161 _vtkIinfoTextImageInteractor->SetModelVtkInfoTextImage(_vtkIinfoTextImage); 00162 _vtkIinfoTextImage->Configure(); 00163 ((vtkInteractorStyleBaseView*)this->GetInteractorStyleBaseView())->AddInteractorStyleMaracas(_vtkIinfoTextImageInteractor); 00164 } // okimage 00165 } // imageData 00166 00167 }
vtkBaseData * wxVtk2DBaseView::GetVtkBaseData | ( | ) | [inherited] |
Definition at line 184 of file wxVtk2DBaseView.cxx.
References wxVtk2DBaseView::_vtkbasedata.
Referenced by wxVtk2DBaseView::Configure(), wxSphereView::DefineImageSphere(), wxMaracasCoutourTool::GetDataValue(), wxVtk2DBaseView::GetSpacing(), ContourVOIWidget::GetVOI(), GetVtkmprbasedata(), vtkPlane2DView::GetVtkmprbasedata(), wxWidgetSliderMinMaxVOI::onActualChange_Bar(), wxWidgetSliderMinMaxVOI::onEndChange_Bar(), wxMaracasCoutourTool::OnSaveContour(), wxMaracasCoutourTool::OnSaveControlPoints(), wxWidgetSliderMinMaxVOI::onStartChange_Bar(), wxVtk2DBaseView::Refresh(), wxVtk2DBaseView::ResetView(), and TransFromCoordScreenToWorld().
00185 { 00186 return _vtkbasedata; 00187 }
void wxVtk2DBaseView::SetVtkBaseData | ( | vtkBaseData * | vtkbasedata | ) | [inherited] |
Definition at line 191 of file wxVtk2DBaseView.cxx.
References wxVtk2DBaseView::_vtkbasedata.
Referenced by wxQuantificationWidgetCT::ConfigureVTK(), wxProcessingCTWidget::ConfigureVTK(), wxEmptyPanel_3_Widget::ConfigureVTK(), wxMPRWidget::CreateMPRPanel4View(), wxMPRWidget::CreateView(), wxMaracasImageBrowser02::LoadData(), wxMaracas_ViewerWidget::wxMaracas_ViewerWidget(), and wxSphereView::wxSphereView().
00192 { 00193 _vtkbasedata=vtkbasedata; 00194 }
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 }
void wxVtk2DBaseView::SetInteractorStyleImage | ( | vtkInteractorStyleBaseView * | interactorstylebaseview | ) | [inherited] |
Definition at line 208 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().
00209 { 00210 SetInteractorStyleBaseView(interactorstylebaseview); 00211 00212 wxVTKRenderWindowInteractor *iren = GetWxVTKRenderWindowInteractor(); 00213 interactorstylebaseview->SetInteractor ( iren ); 00214 iren->SetInteractorStyle(interactorstylebaseview); 00215 interactorstylebaseview->SetwxVtkBaseView(this); 00216 00217 vtkMaracasImageViewer2Callback * cbk = vtkMaracasImageViewer2Callback::New(); 00218 cbk->IV = _imageViewer2XYZ->GetVtkImageViewer2(); 00219 interactorstylebaseview->AddObserver( vtkCommand::WindowLevelEvent, cbk ); 00220 interactorstylebaseview->AddObserver( vtkCommand::StartWindowLevelEvent, cbk ); 00221 interactorstylebaseview->AddObserver( vtkCommand::ResetWindowLevelEvent, cbk ); 00222 cbk->Delete(); 00223 }
vtkRenderer * wxVtk2DBaseView::GetRenderer | ( | ) | [virtual, inherited] |
Reimplemented from wxVtkBaseView.
Definition at line 226 of file wxVtk2DBaseView.cxx.
References wxVtk2DBaseView::_imageViewer2XYZ, and vtkImageViewer2_XYZ::GetVtkImageViewer2().
Referenced by vtkInfoTextImage::Create_Text_Label().
00227 { 00228 return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer(); 00229 }
vtkRenderWindow * wxVtk2DBaseView::GetRenWin | ( | ) | [virtual, inherited] |
Reimplemented from wxVtkBaseView.
Definition at line 231 of file wxVtk2DBaseView.cxx.
References wxVtk2DBaseView::_imageViewer2XYZ, and vtkImageViewer2_XYZ::GetVtkImageViewer2().
Referenced by wxMaracasSuperpositionPanel::Refresh().
00232 { 00233 return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderWindow(); 00234 }
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 }
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 }
void wxVtk2DBaseView::GetSpacing | ( | double | spc[3] | ) | [virtual, inherited] |
Reimplemented from wxVtkBaseView.
Definition at line 238 of file wxVtk2DBaseView.cxx.
References vtkBaseData::GetImageData(), and wxVtk2DBaseView::GetVtkBaseData().
00239 { 00240 vtkImageData *imageData = GetVtkBaseData()->GetImageData(); 00241 imageData->GetSpacing(spc); 00242 }
void wxVtk2DBaseView::setColorTransferFunction | ( | vtkColorTransferFunction * | colortable | ) | [inherited] |
Definition at line 244 of file wxVtk2DBaseView.cxx.
References wxVtk2DBaseView::_imageViewer2XYZ, and vtkImageViewer2_XYZ::setColorTransferFunction().
Referenced by wxMaracas_ViewerWidget::setColorTransferFunction().
00244 { 00245 if(_imageViewer2XYZ!=NULL){ 00246 _imageViewer2XYZ->setColorTransferFunction(colortable); 00247 } 00248 }
wxVTKRenderWindowInteractor * wxVtkBaseView::GetWxVTKRenderWindowInteractor | ( | ) | throw (char*) [inherited] |
Reimplemented in wxVtk2DView_TMP.
Definition at line 38 of file wxVtkBaseView.cxx.
References wxVtkBaseView::_iren.
Referenced by 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(), 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(), wxVtkClipping3DViewCntrlPanel::OnRepresentationSurfaceWireFrame(), manualContourBaseControler::OnRightButtonDown(), wxVtkMPR3DViewCntrlPanel::OnVisibleAxisX(), wxVtkMPR3DViewCntrlPanel::OnVisibleAxisY(), wxVtkMPR3DViewCntrlPanel::OnVisibleAxisZ(), wxVtkClipping3DViewCntrlPanel::OnVisibleSurface(), wxVtkClipping3DViewCntrlPanel::OnVisibleVolume(), wxVtkBaseView::Refresh(), wxVtk3DBaseView::Refresh(), manualViewBaseContour::Refresh(), wxVtk2DBaseView::ResetView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxVtk2DBaseView::SetInteractorStyleImage(), and wxMaracas_ViewerWidget::wxMaracas_ViewerWidget().
00039 { 00040 00041 if(_iren==NULL){ 00042 throw "wxVtkBaseView::GetWxVTKRenderWindowInteractor() _iren wxVTKRenderWindowInteractorPlus =NULL"; 00043 } 00044 return _iren; 00045 }
void wxVtkBaseView::RefreshView | ( | ) | [virtual, inherited] |
Reimplemented in wxSphereView.
Definition at line 70 of file wxVtkBaseView.cxx.
References wxVtkBaseView::GetRenWin().
Referenced by wxQuantificationWidgetCT::CreateManualContours(), wxWidgetMesure2D_Plane::OnActiveCirlcle(), wxWidgetMesure2D_Plane::OnActiveLine(), wxWidgetMesure2D_Plane_in_MPR::OnActiveLink(), wxWidgetMesure2D::OnActiveMessureTool(), wxWidgetMesure2D::OnCloseContour(), wxMaracas_ManualContour_Panel::OnRefreshView(), wxQuantificationWidgetCT::OnShowCalc(), wxQuantificationWidgetCT::OnShowHypo(), wxQuantificationWidgetCT::OnShowLumen(), wxQuantificationWidgetCT::OnShowWall(), wxWidgetMesure2D::OnVisibleInformation(), wxWidgetMesure2D::OnVisibleMessureTool(), and wxProcessingCTWidget::Refresh().
00071 { 00072 // EED 10 Oct 2007 00073 00074 #if defined(WIN32) 00075 GetRenWin()->Render(); 00076 #else 00077 //GetRenWin()->Render(); 00078 #endif 00079 00080 }
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 }
vtkInteractorStyleImage * wxVtkBaseView::GetInteractorStyleBaseView | ( | ) | [inherited] |
Definition at line 134 of file wxVtkBaseView.cxx.
References wxVtkBaseView::_interactorStyle.
Referenced by wxWidgetMesure2D::ActiveMessureTool(), wxQuantificationWidgetCT::addManualContours(), Configure(), wxSphereView::Configure(), vtkPlane2DView::Configure(), wxWidgetMesure2D::ConfigureA(), wxManualTree_MPRWidget::ConfigureContour(), wxMPRWidget::ConfigureVTK(), wxManualTree_MPRWidget::ConfigureVTK(), wxSegmentationFM3DWidget::ConfigureVTK(), wxManualSegmentation_MPRWidget::ConfigureVTK(), wxManualRegistration3D::ConfigureVTK(), wxEmptyPanel_3_Widget::ConfigureVTK(), wxManualRegistration3D::ConfigureVTK_B(), wxImageViewerWidget::ConstructVTK(), vtkmyPWCallback_3DPointWidget::Execute(), wxMaracasImageBrowser02::LoadData(), wxQuantificationWidgetCT::OnContourLumen(), wxQuantificationWidgetCT::OnContourWall(), wxVTKRenderWindowInteractorPlus::OnLeftDClick(), wxVTKRenderWindowInteractorPlus::OnMiddleDClick(), wxVTKRenderWindowInteractorPlus::OnMouseWheel(), wxVTKRenderWindowInteractorPlus::OnRightDClick(), manualContourContainer::refreshCalc(), manualContourContainer::refreshHypo(), manualContourContainer::refreshLumen(), and manualContourContainer::refreshWall().
00135 { 00136 return _interactorStyle; 00137 }
int wxVtkMPR2DView::_backX [private] |
int wxVtkMPR2DView::_backY [private] |
int wxVtkMPR2DView::_backZ [private] |
bool wxVtkMPR2DView::_visibleAxis [private] |
int wxVtkMPR2DView::_direction [private] |
Definition at line 45 of file wxVtkMPR2DView.h.
Referenced by ChangeAxisColor(), Configure(), GetActualSlice(), IfMouseTouchX(), IfMouseTouchY(), IfMouseTouchZ(), MoveX(), MoveY(), MoveZ(), Refresh(), SetActualSlice(), TransFromCoordScreenToWorld(), and wxVtkMPR2DView().
vtkPoints* wxVtkMPR2DView::_ptsA [private] |
Definition at line 46 of file wxVtkMPR2DView.h.
Referenced by Configure(), Refresh(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().
vtkActor* wxVtkMPR2DView::_lineAActor [private] |
Definition at line 47 of file wxVtkMPR2DView.h.
Referenced by ChangeAxisColor(), Configure(), SetVisibleAxis(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().
vtkPolyDataMapper* wxVtkMPR2DView::_lineAMapper [private] |
Definition at line 48 of file wxVtkMPR2DView.h.
Referenced by Configure(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().
vtkPolyData* wxVtkMPR2DView::_pdA [private] |
Definition at line 49 of file wxVtkMPR2DView.h.
Referenced by Configure(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().
vtkPoints* wxVtkMPR2DView::_ptsB [private] |
Definition at line 50 of file wxVtkMPR2DView.h.
Referenced by Configure(), Refresh(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().
vtkActor* wxVtkMPR2DView::_lineBActor [private] |
Definition at line 51 of file wxVtkMPR2DView.h.
Referenced by ChangeAxisColor(), Configure(), SetVisibleAxis(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().
vtkPolyDataMapper* wxVtkMPR2DView::_lineBMapper [private] |
Definition at line 52 of file wxVtkMPR2DView.h.
Referenced by Configure(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().
vtkPolyData* wxVtkMPR2DView::_pdB [private] |
Definition at line 53 of file wxVtkMPR2DView.h.
Referenced by Configure(), wxVtkMPR2DView(), and ~wxVtkMPR2DView().
vtkImageViewer2_XYZ* wxVtk2DBaseView::_imageViewer2XYZ [inherited] |
Definition at line 22 of file wxVtk2DBaseView.h.
Referenced by wxWidgetMesure2D_Plane::CircleLine(), 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(), Refresh(), wxVtk2DBaseView::Refresh(), wxVtk2DBaseView::ResetView(), wxVtk2DBaseView::setColorTransferFunction(), wxVtk2DBaseView::SetInteractorStyleImage(), SetVisibleAxis(), wxVtk2DBaseView::TransformCoordinate_spacing_ModelToView(), wxVtk2DBaseView::TransformCoordinate_spacing_ViewToModel(), wxVtk2DBaseView::wxVtk2DBaseView(), and wxVtk2DBaseView::~wxVtk2DBaseView().