Ver código fonte

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

Jean-Christophe Fillion-Robin 15 anos atrás
pai
commit
078d9cf3c6
1 arquivos alterados com 14 adições e 10 exclusões
  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: