INCLUDE_DIRECTORIES(
"C:/Creatis/MaracasTools/OSGi/src"
"C:/Creatis/MaracasTools/Include"
-"/home/jpr/Creatis/Maracas/src/interface/wxWindows"
)
#-----------------------------------------------------------------------------
CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_qa_vc_custom.dll ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_qa_vc_custom.dll COPYONLY )
CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_richtext_vc_custom.dll ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_richtext_vc_custom.dll COPYONLY )
CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_xrc_vc_custom.dll ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28d_xrc_vc_custom.dll COPYONLY )
- CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll COPYONLY )
+ CONFIGURE_FILE(
+${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll
+${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll COPYONLY )
ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Debug copy dlls)")
ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll )
-##----Copy Release cofiguration and DLLs---
+##----Copy Release configuration and DLLs---
FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release )
FILE(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}/Release/MySql/data )
CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_richtext_vc_custom.dll ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_richtext_vc_custom.dll COPYONLY )
CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_qa_vc_custom.dll ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_qa_vc_custom.dll COPYONLY )
CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_xrc_vc_custom.dll ${LIBRARY_OUTPUT_PATH}/release/wxmsw28_xrc_vc_custom.dll COPYONLY )
- CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll COPYONLY )
+ CONFIGURE_FILE( ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28_aui_vc_custom.dll ${LIBRARY_OUTPUT_PATH}/debug/wxmsw28_aui_vc_custom.dll COPYONLY )
ELSE ( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
MESSAGE (FATAL_ERROR, " wxWidgets dlls not found (Release copy dlls)")
ENDIF( EXISTS ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28_net_vc_custom.dll )
wxVtk2DBaseView::wxVtk2DBaseView(wxWindow *parent)
:wxVtkBaseView(parent)
{
- _imageViewer2XYZ = NULL;
- _vtkIinfoTextImage = NULL;
+ _imageViewer2XYZ = NULL;
+ _vtkIinfoTextImage = NULL;
}
//EED 5mai2009
{
if (_vtkIinfoTextImage!=NULL)
{
- delete _vtkIinfoTextImage;
+ delete _vtkIinfoTextImage;
}
if (_imageViewer2XYZ!=NULL)
{
- delete _imageViewer2XYZ;
+ delete _imageViewer2XYZ;
}
}
wxVtkBaseView::Configure();
// EED 17 Oct 2007
- if (_imageViewer2XYZ==NULL)
- {
- _imageViewer2XYZ = new vtkImageViewer2_XYZ();
- wxVTKRenderWindowInteractor *iren = GetWxVTKRenderWindowInteractor();
- _imageViewer2XYZ -> GetVtkImageViewer2()->SetupInteractor ( iren );
- SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
- }
+ if (_imageViewer2XYZ==NULL)
+ {
+ _imageViewer2XYZ = new vtkImageViewer2_XYZ();
+ wxVTKRenderWindowInteractor *iren = GetWxVTKRenderWindowInteractor();
+ _imageViewer2XYZ -> GetVtkImageViewer2()->SetupInteractor ( iren );
+ SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
+ }
vtkImageData *imageData = GetVtkBaseData()->GetMarImageData()->GetImageData();
camera->SetParallelScale( spx*(x2-x1)/3.0 );
// text information over the graphic window
- _vtkIinfoTextImage = new vtkInfoTextImage();
+ _vtkIinfoTextImage = new vtkInfoTextImage();
_vtkIinfoTextImageInteractor = new vtkInfoTextImageInteractor();
_vtkIinfoTextImage->SetWxVtk2DBaseView(this);
_vtkIinfoTextImage->SetMarImageData( GetVtkBaseData()->GetMarImageData() );
int wxVtk2DBaseView::GetActualSlice() // virtual
{
- return (int)(_vtkbasedata->GetZ());
+ return (int)(_vtkbasedata->GetZ());
}
//-------------------------------------------------------------------
void wxVtk2DBaseView::SetActualSlice(int slice) // Virtual
{
- _vtkbasedata->SetZ(slice);
+ _vtkbasedata->SetZ(slice);
}
//-------------------------------------------------------------------
vtkBaseData *wxVtk2DBaseView::GetVtkBaseData()
{
- return _vtkbasedata;
+ return _vtkbasedata;
}
//-------------------------------------------------------------------
void wxVtk2DBaseView::SetVtkBaseData(vtkBaseData *vtkbasedata)
{
- _vtkbasedata=vtkbasedata;
+ _vtkbasedata=vtkbasedata;
}
//-------------------------------------------------------------------
void wxVtk2DBaseView::Refresh()
{
- int z = (int)(GetVtkBaseData()->GetZ());
- _imageViewer2XYZ->SetZSlice( z );
+ int z = (int)(GetVtkBaseData()->GetZ());
+ _imageViewer2XYZ->SetZSlice( z );
- wxVtkBaseView::Refresh();
+ wxVtkBaseView::Refresh();
}
//-------------------------------------------------------------------
//---------------------------------------------------------------------------
vtkRenderer* wxVtk2DBaseView::GetRenderer() // virtual
{
- return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer();
+ return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer();
}
//---------------------------------------------------------------------------
vtkRenderWindow* wxVtk2DBaseView::GetRenWin() // virtual
{
- return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderWindow();
+ return _imageViewer2XYZ->GetVtkImageViewer2()->GetRenderWindow();
}
//-------------------------------------------------------------------
void wxVtk2DBaseView::GetSpacing(double spc[3]) // virtual
{
- vtkImageData *imageData = GetVtkBaseData()->GetImageData();
- imageData->GetSpacing(spc);
-}
\ No newline at end of file
+ vtkImageData *imageData = GetVtkBaseData()->GetImageData();
+ imageData->GetSpacing(spc);
+}
+