wxVtk2DView_TMP Class Reference

#include <wxImageViewerWidget.h>

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

List of all members.

Public Member Functions

 wxVtk2DView_TMP (vtkImageViewer2 *imageviewer2)
 ~wxVtk2DView_TMP ()
virtual vtkRenderer * GetRenderer ()
virtual vtkRenderWindow * GetRenWin ()
virtual void Configure ()
void SetWxVTKRenderWindowInteractor (wxVTKRenderWindowInteractor *wxVTKiren)
virtual
wxVTKRenderWindowInteractor
GetWxVTKRenderWindowInteractor ()
virtual void Refresh ()
virtual void RefreshView ()
virtual void TransFromCoordScreenToWorld (double &X, double &Y, double &Z, bool keepNormalDirection=false, int type=2)
void TransCoordScreenToWorld (double &X, double &Y, double &Z, int type=2)
void SetInteractorStyleBaseView (vtkInteractorStyleImage *interactorStyle)
vtkInteractorStyleImage * GetInteractorStyleBaseView ()
virtual void GetSpacing (double spc[3])

Private Attributes

wxVTKRenderWindowInteractor_wxVTKiren
vtkImageViewer2 * _imageviewer2

Detailed Description

Definition at line 40 of file wxImageViewerWidget.h.


Constructor & Destructor Documentation

wxVtk2DView_TMP::wxVtk2DView_TMP ( vtkImageViewer2 *  imageviewer2  ) 

Most of the class was done thanks to this mail, thank you James !! http://public.kitware.com/pipermail/vtkusers/2003-April/017063.html

Definition at line 66 of file wxImageViewerWidget.cxx.

References _imageviewer2.

00067 {
00068         _imageviewer2 = imageviewer2;
00069 }

wxVtk2DView_TMP::~wxVtk2DView_TMP (  ) 

Definition at line 71 of file wxImageViewerWidget.cxx.

00072 {
00073 }


Member Function Documentation

void wxVtk2DView_TMP::Configure (  )  [virtual]

Reimplemented from wxVtkBaseView.

Definition at line 85 of file wxImageViewerWidget.cxx.

References GetWxVTKRenderWindowInteractor(), vtkInteractorStyleBaseView2D::New(), wxVtkBaseView::SetInteractorStyleBaseView(), and vtkInteractorStyleBaseView::SetwxVtkBaseView().

Referenced by wxImageViewerWidget::ConstructVTK().

00086 {
00087         vtkInteractorStyleBaseView *interactorstylebaseview;
00088         interactorstylebaseview = vtkInteractorStyleBaseView2D::New();
00089 
00090     SetInteractorStyleBaseView(interactorstylebaseview);
00091         wxVTKRenderWindowInteractor *iren = GetWxVTKRenderWindowInteractor();
00092         interactorstylebaseview->SetInteractor ( iren );
00093         iren->SetInteractorStyle(interactorstylebaseview);
00094         interactorstylebaseview->SetwxVtkBaseView(this);  
00095 }

Here is the call graph for this function:

Here is the caller graph for this function:

vtkInteractorStyleImage * wxVtkBaseView::GetInteractorStyleBaseView (  )  [inherited]

Definition at line 166 of file wxVtkBaseView.cxx.

References wxVtkBaseView::_interactorStyle.

Referenced by wxWidgetMesure2D::ActiveMessureTool(), wxQuantificationWidgetCT::addManualContours(), wxMaracasRenderTabbedPanel::addMPROptions(), ManualPaintControler::Config(), wxVtkMPR2DView::Configure(), wxVtk2DBaseView::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(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::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(), manualContourContainer::refreshWall(), and wxVtkBaseView::TransFromCoordScreenToWorld().

00167 {
00168         return _interactorStyle;
00169 }

Here is the caller graph for this function:

vtkRenderer * wxVtk2DView_TMP::GetRenderer (  )  [virtual]

Reimplemented from wxVtkBaseView.

Definition at line 75 of file wxImageViewerWidget.cxx.

References _imageviewer2.

00076 {
00077          return  _imageviewer2->GetRenderer();
00078 }

vtkRenderWindow * wxVtk2DView_TMP::GetRenWin (  )  [virtual]

Reimplemented from wxVtkBaseView.

Definition at line 80 of file wxImageViewerWidget.cxx.

References _imageviewer2.

00081 {
00082          return  _imageviewer2->GetRenderWindow();
00083 }

void wxVtkBaseView::GetSpacing ( double  spc[3]  )  [virtual, inherited]

Reimplemented in wxVtk2DBaseView, and wxVtk3DBaseView.

Definition at line 180 of file wxVtkBaseView.cxx.

Referenced by wxManualTree_MPRWidget::ConfigureContour(), and manualViewPerpPlaneContour::FilterCordinateXYZ().

00181 {
00182         spc[0]=1;
00183         spc[1]=1;
00184         spc[2]=1;
00185 }

Here is the caller graph for this function:

wxVTKRenderWindowInteractor * wxVtk2DView_TMP::GetWxVTKRenderWindowInteractor (  )  [virtual]

Reimplemented from wxVtkBaseView.

Definition at line 102 of file wxImageViewerWidget.cxx.

References _wxVTKiren.

Referenced by Configure().

00103 {
00104         return _wxVTKiren;
00105 }

Here is the caller graph for this function:

void wxVtkBaseView::Refresh (  )  [virtual, inherited]

Reimplemented in vtkPlane2DView, wxVtk2DBaseView, wxVtk3DBaseView, and wxVtkMPR2DView.

Definition at line 49 of file wxVtkBaseView.cxx.

References wxVtkBaseView::_iren, and wxVtkBaseView::GetWxVTKRenderWindowInteractor().

Referenced by vtkInteractorStyleBaseView::EvaluateToRefresh(), ThresholdImageViewPanel::onChangeOpacity(), wxPanelCuttingImageData::OnExtract(), ThresholdImageViewPanel::onThresholdChange(), ThresholdImageViewPanel::onThresholdInterpolation(), ThresholdImageViewPanel::onThresholdShow(), LayerImageBase::Refresh(), and wxMaracasSuperpositionPanel::RefreshInterface().

00050 {
00051 // EED 10 Oct 2007
00052 
00053         #if defined(WIN32)
00054                 _iren->Refresh(false);
00055         #else
00056         
00057 //EED 01Avril2009
00058 //              _iren->Render();        
00059         vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor();
00060         vri->vtkRenderWindowInteractor::Render();
00061         
00062         
00063                 //_iren->Refresh();
00064         #endif
00065 
00066 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtkBaseView::RefreshView (  )  [virtual, inherited]
void wxVtkBaseView::SetInteractorStyleBaseView ( vtkInteractorStyleImage *  interactorStyle  )  [inherited]

Definition at line 173 of file wxVtkBaseView.cxx.

References wxVtkBaseView::_interactorStyle.

Referenced by wxVtk3DBaseView::Configure(), Configure(), and wxVtk2DBaseView::SetInteractorStyleImage().

00174 {
00175         _interactorStyle = interactorStyle;
00176 }

Here is the caller graph for this function:

void wxVtk2DView_TMP::SetWxVTKRenderWindowInteractor ( wxVTKRenderWindowInteractor wxVTKiren  ) 

Definition at line 97 of file wxImageViewerWidget.cxx.

References _wxVTKiren.

Referenced by wxImageViewerWidget::ConstructVTK().

00098 {
00099         _wxVTKiren = wxVTKiren;
00100 }

Here is the caller graph for this function:

void wxVtkBaseView::TransCoordScreenToWorld ( double &  X,
double &  Y,
double &  Z,
int  type = 2 
) [inherited]

Definition at line 92 of file wxVtkBaseView.cxx.

References wxVtkBaseView::GetRenderer().

Referenced by wxVtkBaseView::TransFromCoordScreenToWorld().

00093 {
00094         GetRenderer()->SetDisplayPoint((int)X, (int)Y, (int)Z);
00095         GetRenderer()->DisplayToWorld();
00096         double fP[4];
00097         GetRenderer()->GetWorldPoint( fP );
00098         if ( fP[3] ){
00099                 fP[0] /= fP[3];
00100                 fP[1] /= fP[3];
00101                 fP[2] /= fP[3];
00102         }
00103 
00104         if (type!=0)
00105         {
00106                 X=fP[0];
00107         }
00108         if (type!=1)
00109         {
00110                 Y=fP[1];
00111         }
00112         if (type!=2)
00113         {
00114                 Z=fP[2];
00115         } 
00116 }

Here is the call graph for this function:

Here is the caller graph for this function:

void wxVtkBaseView::TransFromCoordScreenToWorld ( double &  X,
double &  Y,
double &  Z,
bool  keepNormalDirection = false,
int  type = 2 
) [virtual, inherited]

Reimplemented in wxVtkMPR2DView.

Definition at line 119 of file wxVtkBaseView.cxx.

References wxVtkBaseView::GetInteractorStyleBaseView(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::TransCoordScreenToWorld(), and wxVtk2DBaseView::TransformCoordinate_spacing_ViewToModel().

Referenced by manualViewPerpPlaneContour::ifTouchContour(), vtkInfoTextImageInteractor::OnMouseMove(), vtkInteractorManualPaint::OnMouseMove(), manualViewBaseContour::TransfromCoordViewWorld(), and vtkPlane2DView::TransfromCoordViewWorld2().

00120 {
00121         double xx = X;
00122         double yy = Y;
00123         double zz = Z;
00124 
00125         //RaC 03-2010
00126         TransCoordScreenToWorld(xx,yy,zz,type);
00127 
00128         X = xx;
00129         Y = yy;
00130         Z=zz;
00131 
00132 // EEDx5
00133         //JCP 13/05/2009
00134         vtkInteractorStyleBaseView* interactorstyle = (vtkInteractorStyleBaseView*)this->GetInteractorStyleBaseView();
00135     wxVtk2DBaseView* baseview = (wxVtk2DBaseView*)interactorstyle->GetWxVtk2DBaseView();
00136 
00137         double fP[3];
00138         fP[0] = X;
00139         fP[1] = Y;
00140         fP[2] = Z;
00141 
00142         baseview->TransformCoordinate_spacing_ViewToModel( fP[0] , fP[1] , fP[2] );
00143         //JCP 13/05/2009
00144 
00145         if (type!=0)
00146         {
00147                 X=fP[0];
00148         }
00149         if (type!=1)
00150         {
00151                 Y=fP[1];
00152         }
00153         if (type!=2)
00154         {
00155                 Z=fP[2];
00156         } 
00157 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

vtkImageViewer2* wxVtk2DView_TMP::_imageviewer2 [private]

Definition at line 52 of file wxImageViewerWidget.h.

Referenced by GetRenderer(), GetRenWin(), and wxVtk2DView_TMP().


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

Generated on 20 Oct 2010 for creaMaracasVisu_lib by  doxygen 1.6.1