wxVtkBaseView Class Reference

#include <wxVtkBaseView.h>

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

List of all members.

Public Member Functions

 wxVtkBaseView ()
 wxVtkBaseView (wxWindow *parent)
virtual ~wxVtkBaseView ()
wxVTKRenderWindowInteractorGetWxVTKRenderWindowInteractor () throw (char*)
virtual void Configure ()
virtual void Refresh ()
virtual void RefreshView ()
virtual vtkRenderer * GetRenderer ()
virtual vtkRenderWindow * GetRenWin ()
virtual void TransFromCoordScreenToWorld (double &X, double &Y, double &Z, bool keepNormalDirection=false, int type=2)
void SetInteractorStyleBaseView (vtkInteractorStyleImage *interactorStyle)
vtkInteractorStyleImage * GetInteractorStyleBaseView ()
virtual void GetSpacing (double spc[3])

Private Attributes

wxWindow * _parent
wxVTKRenderWindowInteractor_iren
vtkInteractorStyleImage * _interactorStyle

Detailed Description

Definition at line 44 of file wxVtkBaseView.h.


Constructor & Destructor Documentation

wxVtkBaseView::wxVtkBaseView (  ) 

Definition at line 11 of file wxVtkBaseView.cxx.

References _interactorStyle, _iren, and _parent.

00012 {
00013         _parent                         = NULL;
00014         _iren                           = NULL;
00015         _interactorStyle        = NULL;
00016 }

wxVtkBaseView::wxVtkBaseView ( wxWindow *  parent  ) 

Definition at line 20 of file wxVtkBaseView.cxx.

References _interactorStyle, _iren, and _parent.

00021 {
00022         _parent                         = parent;
00023         _iren                           = (wxVTKRenderWindowInteractor*)new wxVTKRenderWindowInteractorPlus(_parent,this);
00024 //      _iren->UseCaptureMouseOn();
00025 //      _iren                           = new wxVTKRenderWindowInteractor(_parent,-1);
00026         _interactorStyle        = NULL;
00027 
00028 
00029 }

wxVtkBaseView::~wxVtkBaseView (  )  [virtual]

Definition at line 32 of file wxVtkBaseView.cxx.

References _iren.

00033 {
00034         _iren -> Delete();
00035         //_iren=NULL;
00036 }


Member Function Documentation

void wxVtkBaseView::Configure (  )  [virtual]

Reimplemented in wxVtk2DView_TMP, vtkPlane2DView, wxSphereView, wxVtk3DBaseView, and wxVtkMPR2DView.

Definition at line 47 of file wxVtkBaseView.cxx.

Referenced by wxVtk2DBaseView::Configure(), wxPanelCuttingImageData::CreatePlotHistogrammeInterface(), and wxVtk2DBaseView::ResetView().

00048 {
00049 }

Here is the caller graph for this function:

vtkInteractorStyleImage * wxVtkBaseView::GetInteractorStyleBaseView (  ) 
vtkRenderer * wxVtkBaseView::GetRenderer (  )  [virtual]
vtkRenderWindow * wxVtkBaseView::GetRenWin (  )  [virtual]
void wxVtkBaseView::GetSpacing ( double  spc[3]  )  [virtual]

Reimplemented in wxVtk2DBaseView, and wxVtk3DBaseView.

Definition at line 149 of file wxVtkBaseView.cxx.

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

00150 {
00151         spc[0]=1;
00152         spc[1]=1;
00153         spc[2]=1;
00154 }

Here is the caller graph for this function:

wxVTKRenderWindowInteractor * wxVtkBaseView::GetWxVTKRenderWindowInteractor (  )  throw (char*)

Reimplemented in wxVtk2DView_TMP.

Definition at line 38 of file wxVtkBaseView.cxx.

References _iren.

Referenced by wxMaracasRenderTabbedPanel::addRemoveActorMPR(), 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(), wxVtkClipping3DViewVolCntrlPanel::OnBtnVolumeFunctions(), 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(), wxMaracasRenderTabbedPanel::OnRefreshView(), wxVtkClipping3DViewCntrlPanel::OnRepresentationSurfaceWireFrame(), manualContourBaseControler::OnRightButtonDown(), wxVtkMPR3DViewCntrlPanel::OnVisibleAxisX(), wxVtkMPR3DViewCntrlPanel::OnVisibleAxisY(), wxVtkMPR3DViewCntrlPanel::OnVisibleAxisZ(), wxVtkClipping3DViewCntrlPanel::OnVisibleSurface(), wxVtkClipping3DViewVolCntrlPanel::OnVisibleVolume(), wxVtkClipping3DViewCntrlPanel::OnVisibleVolume(), Refresh(), wxVtk3DBaseView::Refresh(), manualViewBaseContour::Refresh(), wxVtk2DBaseView::ResetView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxVtk2DBaseView::SetInteractorStyleImage(), wxVtkMPR3DViewCntrlPanel::SetVisibleX(), wxVtkMPR3DViewCntrlPanel::SetVisibleY(), wxVtkMPR3DViewCntrlPanel::SetVisibleZ(), 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::Refresh (  )  [virtual]

Reimplemented in vtkPlane2DView, wxVtk2DBaseView, wxVtk3DBaseView, and wxVtkMPR2DView.

Definition at line 51 of file wxVtkBaseView.cxx.

References _iren, and GetWxVTKRenderWindowInteractor().

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 142 of file wxVtkBaseView.cxx.

References _interactorStyle.

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

00143 {
00144         _interactorStyle = interactorStyle;
00145 }

Here is the caller graph for this function:

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

Reimplemented in wxVtkMPR2DView.

Definition at line 94 of file wxVtkBaseView.cxx.

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

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

00095 {  
00096         GetRenderer()->SetDisplayPoint((int)X, (int)Y, (int)Z);
00097         GetRenderer()->DisplayToWorld();
00098         double fP[4];
00099         GetRenderer()->GetWorldPoint( fP );
00100         if ( fP[3] ){
00101                 fP[0] /= fP[3];
00102                 fP[1] /= fP[3];
00103                 fP[2] /= fP[3];
00104         }
00105 
00106 // EEDx5
00107         //JCP 13/05/2009
00108         vtkInteractorStyleBaseView* interactorstyle = (vtkInteractorStyleBaseView*)this->GetInteractorStyleBaseView();
00109         wxVtk2DBaseView* baseview = (wxVtk2DBaseView*)interactorstyle->GetWxVtk2DBaseView();
00110         baseview->TransformCoordinate_spacing_ViewToModel( fP[0] , fP[1] , fP[2] );
00111         //JCP 13/05/2009
00112 
00113         if (type!=0)
00114         {
00115                 X=fP[0];
00116         }
00117         if (type!=1)
00118         {
00119                 Y=fP[1];
00120         }
00121         if (type!=2)
00122         {
00123                 Z=fP[2];
00124         } 
00125 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

vtkInteractorStyleImage* wxVtkBaseView::_interactorStyle [private]

JCP 04/05/09 vtkInteractorStyleImage *_interactorStyle;

Definition at line 74 of file wxVtkBaseView.h.

Referenced by GetInteractorStyleBaseView(), SetInteractorStyleBaseView(), and wxVtkBaseView().

wxWindow* wxVtkBaseView::_parent [private]

Definition at line 68 of file wxVtkBaseView.h.

Referenced by wxVtkBaseView().


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

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1