From dd693592c4b6d6810eca299760c302812f7c4553 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Mon, 14 Dec 2009 13:29:53 +0000 Subject: [PATCH] *** empty log message *** --- appli/CMakeLists.txt | 4 ++++ appli/creaNewProject/creaNewProject.cpp | 3 ++- src/creaVtkBasicSlicer.cxx | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/appli/CMakeLists.txt b/appli/CMakeLists.txt index 9489edf..83c1ead 100644 --- a/appli/CMakeLists.txt +++ b/appli/CMakeLists.txt @@ -1,4 +1,8 @@ + +INSTALL( FILES creatis_AppGeneralPath.bat DESTINATION bin ) + SUBDIRS(creaNewProject) IF(WIN32) SUBDIRS(creaSed) ENDIF(WIN32) + diff --git a/appli/creaNewProject/creaNewProject.cpp b/appli/creaNewProject/creaNewProject.cpp index f529587..f6e4a24 100644 --- a/appli/creaNewProject/creaNewProject.cpp +++ b/appli/creaNewProject/creaNewProject.cpp @@ -34,7 +34,7 @@ bool myApp::OnInit( ) std::string command2("del "); command += "\"" + crea::wx2std(dir) + "\" \"" + crea::wx2std(name) + "\""; - command1 += "\"" + crea::wx2std(dir)+"\\"+crea::wx2std(name)+"\\CMakeLists.txt.in\" " + "PROJECT_NAME " + crea::wx2std(name) + "> \"" + crea::wx2std(dir)+"\\"+crea::wx2std(name)+"\\CMakeLists.txt\""; + command1 += "\"" + crea::wx2std(dir)+"\\"+crea::wx2std(name)+"\\CMakeLists.txt.in\" " + "NameOfTheProject " + crea::wx2std(name) + "> \"" + crea::wx2std(dir)+"\\"+crea::wx2std(name)+"\\CMakeLists.txt\""; command2 += "\"" + crea::wx2std(dir)+"\\"+crea::wx2std(name)+"\\CMakeLists.txt.in\""; if ( ! system ( command.c_str() ) ) { @@ -66,6 +66,7 @@ bool myApp::OnInit( ) #endif + return false; } diff --git a/src/creaVtkBasicSlicer.cxx b/src/creaVtkBasicSlicer.cxx index 388644c..65b2925 100644 --- a/src/creaVtkBasicSlicer.cxx +++ b/src/creaVtkBasicSlicer.cxx @@ -14,6 +14,8 @@ #include "vtkRenderer.h" #include "vtkCamera.h" +#include "vtkInteractorStyleTrackballCamera.h" + namespace crea { @@ -97,6 +99,7 @@ namespace crea // an interactor vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); + iren->SetInteractorStyle( vtkInteractorStyleTrackballCamera::New() ); iren->SetRenderWindow(renWin); // Set the interactor for the widgets @@ -110,7 +113,7 @@ namespace crea // Create an initial interesting view vtkCamera* cam1 = ren->GetActiveCamera(); cam1->SetFocalPoint(0, 0, 0); - cam1->SetPosition(0, 0, -500); + cam1->SetPosition(0, 0, -1500); //cam1->OrthogonalizeViewUp(); cam1->Elevation(110); cam1->SetViewUp(0, 0, -1); -- 2.45.1