소스 검색

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);