]> Creatis software - clitk.git/commitdiff
pacs only if clitk_use_system_gdcm is defined
authorcervenansky <frederic.cervenansky@creatis.insa-lyon.fr>
Fri, 5 Jul 2013 15:20:49 +0000 (17:20 +0200)
committercervenansky <frederic.cervenansky@creatis.insa-lyon.fr>
Fri, 5 Jul 2013 15:20:49 +0000 (17:20 +0200)
1  2 
vv/CMakeLists.txt
vv/vvIcons.qrc
vv/vvMainWindow.cxx
vv/vvMainWindow.h

index eac52df86fccd952381ce523b4b8465bde8bf07a,025a6f41d18ebbf7d2322019bc76f7d6237825f6..acbc86ce05e09ea7f35e59296f6840933db398dd
@@@ -88,8 -86,7 +86,7 @@@ SET(vv_SRC
    vvSlicerManager.cxx
    vvSlicerManagerCommand.cxx
    vvUtils.cxx
- #  vvMaximumIntensityProjection.cxx
--  vvMesh.cxx
++#  vvMaximumIntensityProjection.cxx  vvMesh.cxx
    vvMeshActor.cxx
    vvMeshReader.cxx
    vvMidPosition.cxx
@@@ -126,14 -121,19 +121,23 @@@ QT4_WRAP_CPP(vv_SRC
  QT4_WRAP_UI(vv_UI_CXX 
    qt_ui/vvHelpDialog.ui 
    qt_ui/vvDocumentation.ui 
-   qt_ui/vvDicomSeriesSelector.ui 
-    qt_ui/vvPacsConnection.ui 
-    qt_ui/vvPacsSettingsDialog.ui
-   qt_ui/vvDummyWindow.ui #For testing
-   )
+   qt_ui/vvDicomSeriesSelector.ui
 -  )
++qt_ui/vvDummyWindow.ui #For testing  )
  
  QT4_ADD_RESOURCES(vv_SRCS vvIcons.qrc)
  
 -# Add DICOM gui selector if the adequate GDCM is available
 -IF(CLITK_USE_SYSTEM_GDCM)
++# Add DICOM SERVER gui selector if the adequate GDCM is available
++#IF(CLITK_USE_SYSTEM_GDCM)
++message("ololoa")
+   SET(vv_SRCS ${vv_SRCS}
 -      vvQPacsConnection.cxx)
 -  QT4_WRAP_CPP(vv_SRCS vvQPacsConnection.cxx)
 -  QT4_WRAP_UI(vv_UI_CXX qt_ui/vvPacsConnection.ui)
 -ENDIF(CLITK_USE_SYSTEM_GDCM)
++      vvQPacsConnection.cxx
++        vvPacsSettingsDialog.cxx)
++  QT4_WRAP_CPP(vv_SRCS vvQPacsConnection.cxx
++     vvPacsSettingsDialog.cxx)
++  QT4_WRAP_UI(vv_UI_CXX qt_ui/vvPacsConnection.ui
++     qt_ui/vvPacsSettingsDialog.ui)
++#ENDIF(CLITK_USE_SYSTEM_GDCM)
  # Add the autotools in the header vvToolsList.h for initialization of the dummy
  # variables in vv.cxx for the tools contained in vvLib
  if(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt IS_NEWER_THAN ${CMAKE_CURRENT_BINARY_DIR}/vvToolsList.h)
diff --cc vv/vvIcons.qrc
index 15a864843ba26c5767d6a665b72bd65063f245ca,15a864843ba26c5767d6a665b72bd65063f245ca..dbc93e3192deffc5fd1f86ca93c8c4cbb55e380f
@@@ -40,5 -40,5 +40,8 @@@
      <file>icons/standardbutton-apply-16.png</file>
      <file>icons/standardbutton-cancel-16.png</file>
      <file>icons/identity.png</file>
++      <file>icons/basket_download.png</file>
++      <file>icons/bullet_info.png</file>
++      <file>icons/bullet_info.png</file>
    </qresource>
  </RCC>
index 3509aae3d45b82c607293bdaeb8acef043a2d8f7,8047b7d2e42c5d006f9d7d08442c26c2a3f654fe..3dc0829bc6a2bd0134ef83138c049a82c51afe43
@@@ -47,7 -47,6 +47,9 @@@ It is distributed under dual licenc
  #include "vvMeshReader.h"
  #include "vvSaveState.h"
  #include "vvReadState.h"
++#ifdef CLITK_USE_SYSTEM_GDCM
 +#include "vvQPacsConnection.h"
++#endif
  #include "clitkConfiguration.h"
  
  // ITK include
@@@ -236,7 -235,9 +238,9 @@@ vvMainWindow::vvMainWindow():vvMainWind
    documentation = new vvDocumentation();
    help_dialog = new vvHelpDialog();
    dicomSeriesSelector = new vvDicomSeriesSelector();
-   pacsconnect = new vvQPacsConnection(this);
 -#ifdef vvPacsConnection
 -  PacsConnection = new vvPacsConnection();
++#ifdef CLITK_USE_SYSTEM_GDCM
++     PacsConnection = new vvQPacsConnection();
+ #endif
  
    inverseButton->setEnabled(0);
    actionAdd_overlay_image_to_current_image->setEnabled(0);
    connect(actionWarp_image_with_vector_field,SIGNAL(triggered()),this,SLOT(WarpImage()));
    connect(actionLoad_images,SIGNAL(triggered()),this,SLOT(OpenImages()));
    connect(actionOpen_Dicom,SIGNAL(triggered()),this,SLOT(OpenDicom()));
++  #ifdef CLITK_USE_SYSTEM_GDCM
 +connect(actionConnect_Pacs,SIGNAL(triggered()),this,SLOT(ConnectPacs()));
++#endif
    //  connect(actionOpen_Dicom_Struct,SIGNAL(triggered()),this,SLOT(OpenDCStructContour()));
    connect(actionOpen_VTK_contour,SIGNAL(triggered()),this,SLOT(OpenVTKContour()));
    connect(actionOpen_Multiple_Images_As_One,SIGNAL(triggered()),this,SLOT(MergeImages()));
@@@ -748,19 -747,21 +753,20 @@@ void vvMainWindow::OpenDicom(
      files = *(dicomSeriesSelector->GetFilenames());
      LoadImages(files, vvImageReader::DICOM);
    }
--}
-   void vvMainWindow::ConnectPacs()
 -
 -#ifdef vvPacsConnection
++}  
++#ifdef CLITK_USE_SYSTEM_GDCM
+ void vvMainWindow::ConnectPacs()
  {
    std::vector<std::string> files;
  
    //std::cout << "dicomSeriesSelector " << std::endl;
- if (pacsconnect->exec() == QDialog::Accepted) {
 -  if (PacsConnection->exec() == QDialog::Accepted) {
 -    files = *(PacsConnection->GetFilenames());
 -    LoadImages(files, vvImageReader::DICOM);
++if (PacsConnection->exec() == QDialog::Accepted) {
 +//    files = *(pacsconnect->GetFilenames());
 +   // LoadImages(files, vvImageReader::DICOM);
 +  }
    }
  
 -}
+ #endif
  //------------------------------------------------------------------------------
  
  //------------------------------------------------------------------------------
index 877470fe20b67c274bb4775973cc3ab9646f2550,75d04976538a769ca679a17157b1d83c5a5e9479..92d70417815c62e464bc1864e92eba6f438584d1
@@@ -39,7 -39,6 +39,9 @@@ class vtkImageData
  class vtkRenderer;
  class vtkMatrix4x4;
  class vvDicomSeriesSelector;
++#ifdef CLITK_USE_SYSTEM_GDCM
 +class vvQPacsConnection;
++#endif
  class vvSlicer;
  class QTreeWidget;
  
@@@ -92,7 -91,9 +94,9 @@@ public slots
    void SliceImages();
    void MergeImagesWithTime();
    void OpenDicom();
 -#ifdef vvPacsConnection
 -  void PacsConnection();
++#ifdef CLITK_USE_SYSTEM_GDCM
 +  void ConnectPacs();
+ #endif
    ///Open a vtkPolyData surface mesh and display it over the current image
    void OpenVTKContour();
    void SaveAs();
@@@ -195,7 -196,9 +199,10 @@@ private
    vvHelpDialog *help_dialog;
    vvDocumentation *documentation;
    vvDicomSeriesSelector *dicomSeriesSelector;
-   vvQPacsConnection *pacsconnect;
 -#ifdef vvPacsConnection
 -  vvPacsConnection *PacsConnection;
++
++#ifdef CLITK_USE_SYSTEM_GDCM
++  vvQPacsConnection *PacsConnection;
+ #endif
  
    bool viewMode;
    bool playMode;