File: igstkViewProxyBase.h

package info (click to toggle)
igstk 4.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 38,980 kB
  • sloc: cpp: 86,267; xml: 96; makefile: 75; python: 38
file content (66 lines) | stat: -rw-r--r-- 1,817 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*=========================================================================

  Program:   Image Guided Surgery Software Toolkit
  Module:    $RCSfile: igstkViewProxyBase.h,v $
  Language:  C++
  Date:      $Date: 2008-07-15 12:56:45 $
  Version:   $Revision: 1.2 $

  Copyright (c) ISC  Insight Software Consortium.  All rights reserved.
  See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#ifndef __igstkViewProxyBase_h
#define __igstkViewProxyBase_h

class vtkRenderer;
class vtkRenderWindowInteractor;

namespace igstk {

class View;

/** \class ViewProxyBase
 *
 *  \brief A base class for widget type templated proxy classes. 
 *
 *  A proxy class designed to access private member data of 
 *  the view class. This class is a friend class of the View
 *  class.
 *
 * \sa ViewProxy
 * \ingroup View
 *
 */
class ViewProxyBase 
{
public:

protected:
  /** Get the VTK renderer */ 
  vtkRenderer *               GetRenderer( View * view );

  /** Get the VTK RenderWindow interactor */
  vtkRenderWindowInteractor * GetRenderWindowInteractor( View * view );

  /** Initialize VTK RenderWindow interactor */
  void InitializeInteractor( View * view );

  /** Set VTK RenderWindow Size */
  void SetRenderWindowSize( View * view, int width, int height );

  /** Set PickedPoint coordinates */
  void SetPickedPointCoordinates( View * view, 
                                  double xPickedPoint ,
                                  double yPickedPoint );
private:

};

} // end namespace igstk

#endif