소스 검색

Expose vtk object for access from python

For testing code written in python, you sometimes need to get access
to the vtk render window and related structures to get pixel data or
other related data.  Making the methods invokable provides this
functionality.
Steve Pieper 14 년 전
부모
커밋
ffa8d8852a
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.h

+ 5 - 5
Libs/Visualization/VTK/Widgets/ctkVTKAbstractView.h

@@ -67,21 +67,21 @@ public slots:
 
 public:
   /// Get underlying RenderWindow
-  vtkRenderWindow* renderWindow()const;
+  Q_INVOKABLE vtkRenderWindow* renderWindow()const;
 
   /// Set/Get window interactor
-  vtkRenderWindowInteractor* interactor()const;
+  Q_INVOKABLE vtkRenderWindowInteractor* interactor()const;
   virtual void setInteractor(vtkRenderWindowInteractor* interactor);
 
   /// Get current interactor style
-  vtkInteractorObserver* interactorStyle()const;
+  Q_INVOKABLE vtkInteractorObserver* interactorStyle()const;
 
   /// Get corner annotation \a text
   QString cornerAnnotationText() const;
-  vtkCornerAnnotation* cornerAnnotation()const;
+  Q_INVOKABLE vtkCornerAnnotation* cornerAnnotation()const;
 
   /// Get the underlying QVTKWidget
-  QVTKWidget * VTKWidget() const;
+  Q_INVOKABLE QVTKWidget * VTKWidget() const;
 
   /// Get background color
   virtual QColor backgroundColor() const = 0;