ctkVTKRenderView_p.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_p_h
00022 #define __ctkVTKRenderView_p_h
00023 
00024 // Qt includes
00025 #include <QObject>
00026 
00027 // CTK includes
00028 #include <ctkPimpl.h>
00029 #include <ctkVTKObject.h>
00030 #include "ctkVTKRenderView.h"
00031 
00032 // VTK includes
00033 #include <QVTKWidget.h>
00034 #include <vtkAxesActor.h>
00035 #include <vtkCornerAnnotation.h>
00036 #include <vtkOrientationMarkerWidget.h>
00037 #include <vtkRenderer.h>
00038 #include <vtkRenderWindow.h>
00039 #include <vtkSmartPointer.h>
00040 #include <vtkWeakPointer.h>
00041 
00042 class vtkRenderWindowInteractor;
00043 
00044 //-----------------------------------------------------------------------------
00045 class ctkVTKRenderViewPrivate : public QObject,
00046                                 public ctkPrivate<ctkVTKRenderView>
00047 {
00048   Q_OBJECT
00049   CTK_DECLARE_PUBLIC(ctkVTKRenderView);
00050 public:
00051   ctkVTKRenderViewPrivate();
00052 
00054   void setupCornerAnnotation();
00055   void setupRendering();
00056   void setupDefaultInteractor();
00057 
00058   QVTKWidget*                                   VTKWidget;
00059   vtkSmartPointer<vtkRenderer>                  Renderer;
00060   vtkSmartPointer<vtkRenderWindow>              RenderWindow;
00061   bool                                          RenderPending;
00062   bool                                          RenderEnabled;
00063   
00064   vtkSmartPointer<vtkAxesActor>                 Axes;
00065   vtkSmartPointer<vtkOrientationMarkerWidget>   Orientation;
00066   vtkSmartPointer<vtkCornerAnnotation>          CornerAnnotation;
00067 
00068   vtkWeakPointer<vtkRenderWindowInteractor>     CurrentInteractor;
00069 
00070 };
00071 
00072 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines