소스 검색

ENH: Change ctkVTKSliceView API - setImageData, setCornerAnnotationText, setBackgroundColor, setRenderEnabled are not slots

Jean-Christophe Fillion-Robin 15 년 전
부모
커밋
078d9cf3c6
1개의 변경된 파일14개의 추가작업 그리고 10개의 파일을 삭제
  1. 14 10
      Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h

+ 14 - 10
Libs/Visualization/VTK/Widgets/ctkVTKSliceView.h

@@ -66,6 +66,18 @@ public slots:
   /// Reset cameras associated with all renderWindowItem
   void resetCamera();
 
+  /// Set image data
+  void setImageData(vtkImageData* newImageData);
+
+  /// Set corner annotation \a text
+  void setCornerAnnotationText(const QString& text);
+
+  /// Set background color
+  void setBackgroundColor(const QColor& newBackgroundColor);
+
+  /// Enable/Disable rendering
+  void setRenderEnabled(bool value);
+
 public:
 
   /// Get underlying RenderWindow
@@ -78,12 +90,10 @@ public:
   /// Get current interactor style
   vtkInteractorObserver* interactorStyle();
   
-  /// Set/Get corner annotation \a text
-  void setCornerAnnotationText(const QString& text);
+  /// Get corner annotation text
   QString cornerAnnotationText() const;
 
-  /// Set/Get background color
-  void setBackgroundColor(const QColor& newBackgroundColor);
+  /// Get background color
   QColor backgroundColor() const;
 
   /// Get active camera
@@ -134,17 +144,11 @@ public:
   /// Return if rendering is enabled
   bool renderEnabled() const;
 
-  /// Enable/Disable rendering
-  void setRenderEnabled(bool value);
-
   /// Get current color window
   double colorWindow() const;
 
   /// Get current color level
   double colorLevel() const;
-
-  /// Set image data
-  void setImageData(vtkImageData* newImageData);
   
 
 signals: