#include "vtkImageActor.h"
-wxVtk2DBaseView::wxVtk2DBaseView(wxWindow *parent)
-:wxVtkBaseView(parent)
+wxVtk2DBaseView::wxVtk2DBaseView(wxWindow *parent,bool TDxWindow)
+:wxVtkBaseView(parent,TDxWindow)
{
_imageViewer2XYZ = NULL;
_vtkIinfoTextImage = NULL;
//-------------------------------------------------------------------
void wxVtk2DBaseView::ResetView()
{
- printf("EED wxVtk2DBaseView::ResetView");
double spx = 0,spy = 0,spz = 0;
int x1 = 1,x2 = 1,y1 = 1,y2 = 1,z1 = 1,z2 = 1;
wxVtkBaseView::Configure();
imageData->GetSpacing (spx,spy,spz);
imageData->GetExtent (x1,x2,y1,y2,z1,z2);
}
-printf("//EED wxVtk2DBaseView::ResetView %d %d %d %d %d %d \n",x1,x2,y1,y2,z1,z2);
_imageViewer2XYZ -> SetExtentDimension(x1,x2,y1,y2,z1,z2);
_imageViewer2XYZ -> GetVtkImageViewer2()->SetupInteractor ( iren );
vtkInteractorZoomCamera *_vtkInteractorZoomCamera = new vtkInteractorZoomCamera();
style2D->SetInteractorZoomCamera(_vtkInteractorZoomCamera);
-
-
SetInteractorStyleImage( style2D );
-
- // RaC
- //////////////
-
}
//-------------------------------------------------------------------
return 2;
}
+//-------------------------------------------------------------------
+void wxVtk2DBaseView::GetNormal(double normal[3] ) // virtual
+{
+ if (GetDirection()==0 )
+ {
+ normal[0]=1;
+ normal[1]=0;
+ normal[2]=0;
+ } // if
+ if (GetDirection()==1 )
+ {
+ normal[0]=0;
+ normal[1]=1;
+ normal[2]=0;
+ } // if
+ if (GetDirection()==2 )
+ {
+ normal[0]=0;
+ normal[1]=0;
+ normal[2]=1;
+ } // if
+}
+
+
//-------------------------------------------------------------------
void wxVtk2DBaseView::SetOpacityText(double opacity)
{