CREA_PREVENT_IN_SOURCE_BUILD()
+SET(USE_BOOST ON)
+
OPTION(CREA_BUILD_VTK "Build crea with vtk ?" OFF)
IF(CREA_BUILD_VTK)
SET(USE_VTK ON)
SET(CREA_BUILT_WITH_VTK ON)
ENDIF(CREA_BUILD_VTK)
-SET(USE_BOOST ON)
OPTION(CREA_BUILD_WX "Build crea with wxWidgets ?" OFF)
IF(CREA_BUILD_WX)
boost_signals
boost_filesystem
boost_date_time
+ boost_program_options
)
ELSE(NOT APPLE)
SET(BOOST_LIBRARIES
boost_filesystem-mt
boost_date_time-mt
boost_system-mt
+ boost_program_options-mt
)
ENDIF(NOT APPLE)
ENDIF(NOT WIN32)
SUBDIRS(creaSample_MessageManager)
SUBDIRS(creaSample_preprocessor)
-#SUBDIRS(creaSample_VtkBasicSlicer)
+SUBDIRS(creaSample_VtkBasicSlicer)
--- /dev/null
+ADD_EXECUTABLE(creaSample_VtkBasicSlicer main)
+TARGET_LINK_LIBRARIES(creaSample_VtkBasicSlicer crea)
--- /dev/null
+#include <creaVtkBasicSlicer.h>
+#include "vtkImageViewer2.h"
+#include "vtkRenderWindowInteractor.h"
+#include "vtkRenderWindow.h"
+
+int main(int argc, char* argv[])
+{
+ std::cout << "** creaSample_VtkBasicSlicer : begin of main "<<std::endl;
+
+ vtkImageData* I = vtkImageData::New();
+ crea::VtkBasicSlicer( I );
+
+ /*
+ vtkImageViewer2* viewer= vtkImageViewer2::New();
+ vtkRenderWindowInteractor* renderWindowInteractor=
+ vtkRenderWindowInteractor::New();
+ viewer->SetupInteractor( renderWindowInteractor);
+ viewer->SetInput( I );
+ viewer->Render();
+ viewer->SetColorWindow( 255);
+ viewer->SetColorLevel( 128);
+
+ renderWindowInteractor->Start();
+ */
+
+std::cout << "** creaSample_VtkBasicSlicer : end of main "<<std::endl;
+}
#include "creaSystem.h"
#include "creaRTTI.h" // for CREA_GET_CURRENT_OBJECT_NAME
+// Signal/slot mechanism for message events
+#include <boost/signal.hpp>
+#include <boost/bind.hpp>
#include <string>
#include <map>
#define creaendl std::endl
//===========================================================
-// Signal/slot mechanism for message events
-#include <boost/signal.hpp>
-#include <boost/bind.hpp>
namespace crea
{