ctkVTKRenderView.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   CTK
00004  
00005   Copyright (c) 2010  Kitware Inc.
00006 
00007   Licensed under the Apache License, Version 2.0 (the "License");
00008   you may not use this file except in compliance with the License.
00009   You may obtain a copy of the License at
00010 
00011       http://www.commontk.org/LICENSE
00012 
00013   Unless required by applicable law or agreed to in writing, software
00014   distributed under the License is distributed on an "AS IS" BASIS,
00015   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016   See the License for the specific language governing permissions and
00017   limitations under the License.
00018  
00019 =========================================================================*/
00020 
00021 #ifndef __ctkVTKRenderView_h
00022 #define __ctkVTKRenderView_h
00023 
00024 // Qt includes
00025 #include <QWidget>
00026 
00027 // CTK includes
00028 #include <ctkPimpl.h>
00029 
00030 #include "CTKVisualizationVTKWidgetsExport.h"
00031 
00032 class ctkVTKRenderViewPrivate;
00033 class vtkInteractorObserver;
00034 class vtkRenderWindowInteractor;
00035 class vtkRenderWindow;
00036 class vtkRenderer;
00037 class vtkCamera; 
00038 
00039 class CTK_VISUALIZATION_VTK_WIDGETS_EXPORT ctkVTKRenderView : public QWidget
00040 {
00041   Q_OBJECT
00042 public:
00044   typedef QWidget   Superclass;
00045   explicit ctkVTKRenderView(QWidget* parent = 0);
00046   virtual ~ctkVTKRenderView();
00047 
00049   void scheduleRender();
00050 
00052   void forceRender();
00053 
00055   vtkRenderWindow* renderWindow()const;
00056   
00058   vtkRenderWindowInteractor* interactor()const;
00059   void setInteractor(vtkRenderWindowInteractor* newInteractor);
00060 
00062   vtkInteractorObserver* interactorStyle();
00063 
00065   void setCornerAnnotationText(const QString& text);
00066 
00068   void setBackgroundColor(double r, double g, double b);
00069 
00071   vtkCamera* activeCamera();
00072 
00074   void resetCamera();
00075 
00077   vtkRenderer* renderer()const;
00078 
00080   void setRenderEnabled(bool value);
00081   
00082 private:
00083   CTK_DECLARE_PRIVATE(ctkVTKRenderView);
00084 }; 
00085 
00086 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1