浏览代码

ENH: Change ctkVTKRenderView API - setBackgroundColor, setRenderEnabled, setCornerAnnotation are now slots

Jean-Christophe Fillion-Robin 15 年之前
父节点
当前提交
58afe28ee7
共有 1 个文件被更改,包括 11 次插入7 次删除
  1. 11 7
      Libs/Visualization/VTK/Widgets/ctkVTKRenderView.h

+ 11 - 7
Libs/Visualization/VTK/Widgets/ctkVTKRenderView.h

@@ -56,6 +56,15 @@ public slots:
   /// Force a render even if a render is already ocurring
   void forceRender();
 
+  /// Set background color
+  void setBackgroundColor(const QColor& newBackgroundColor);
+
+  /// Enable/Disable rendering
+  void setRenderEnabled(bool value);
+
+  /// Set corner annotation \a text
+  void setCornerAnnotationText(const QString& text);
+
 public:
   /// Get underlying RenderWindow
   vtkRenderWindow* renderWindow()const;
@@ -67,12 +76,10 @@ public:
   /// Get current interactor style
   vtkInteractorObserver* interactorStyle();
 
-  /// Set/Get corner annotation \a text
-  void setCornerAnnotationText(const QString& text);
+  /// Get corner annotation \a text
   QString cornerAnnotationText() const;
 
-  /// Set/Get background color
-  void setBackgroundColor(const QColor& newBackgroundColor);
+  /// Get background color
   QColor backgroundColor() const;
 
   /// Get active camera
@@ -86,9 +93,6 @@ public:
 
   /// Return if rendering is enabled
   bool renderEnabled() const;
-
-  /// Enable/Disable rendering
-  void setRenderEnabled(bool value);
   
 private:
   CTK_DECLARE_PRIVATE(ctkVTKRenderView);