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 vtkRenderWindowInteractor;
00034 class vtkRenderer;
00035 class vtkCamera; 
00036 
00037 class CTK_VISUALIZATION_VTK_WIDGETS_EXPORT ctkVTKRenderView : public QWidget
00038 {
00039   Q_OBJECT
00040 public:
00042   typedef QWidget   Superclass;
00043   explicit ctkVTKRenderView(QWidget* parent = 0);
00044   virtual ~ctkVTKRenderView();
00045 
00047   void scheduleRender();
00048 
00050   void forceRender();
00051 
00053   vtkRenderWindowInteractor* interactor()const;
00054   void setInteractor(vtkRenderWindowInteractor* newInteractor);
00055 
00057   void setCornerAnnotationText(const QString& text);
00058 
00060   void setBackgroundColor(double r, double g, double b);
00061 
00063   vtkCamera* activeCamera();
00064 
00066   void resetCamera();
00067 
00069   vtkRenderer* renderer()const;
00070 
00072   void setRenderEnabled(bool value);
00073   
00074 private:
00075   CTK_DECLARE_PRIVATE(ctkVTKRenderView);
00076 }; 
00077 
00078 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines