KWWidgets
Main Page
Classes
Files
File List
File Members
vtkKWGenericRenderWindowInteractor.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Copyright (c) 1998-2003 Kitware Inc. 469 Clifton Corporate Parkway,
4
Clifton Park, NY, 12065, USA.
5
6
All rights reserved. No part of this software may be reproduced, distributed,
7
or modified, in any form or by any means, without permission in writing from
8
Kitware Inc.
9
10
IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
11
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
12
OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
13
EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
15
THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
16
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
17
PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN
18
"AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
19
MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
20
21
=========================================================================*/
22
// .NAME vtkKWGenericRenderWindowInteractor - Subclass of vtkGenericRenderWindowInteractor specific to KWWidgets
23
// .SECTION Description
24
// vtkKWGenericRenderWindowInteractor provides a way to translate native
25
// mouse and keyboard events into vtk Events. By calling the methods on
26
// this class, vtk events will be invoked. This will allow scripting
27
// languages to use vtkInteractorStyles and 3D widgets.
28
29
30
#ifndef __vtkKWGenericRenderWindowInteractor_h
31
#define __vtkKWGenericRenderWindowInteractor_h
32
33
#include "vtkGenericRenderWindowInteractor.h"
34
#include "
vtkKWWidgets.h
"
// Needed for export symbols directives
35
36
class
vtkKWRenderWidget
;
37
38
class
KWWidgets_EXPORT
vtkKWGenericRenderWindowInteractor
:
public
vtkGenericRenderWindowInteractor
39
{
40
public
:
41
static
vtkKWGenericRenderWindowInteractor
*New();
42
vtkTypeRevisionMacro(
vtkKWGenericRenderWindowInteractor
, vtkGenericRenderWindowInteractor);
43
void
PrintSelf(ostream& os, vtkIndent indent);
44
45
// Description:
46
// Set the renderwidget associated to this interactor.
47
// It is used to override the Render() method and allow the interactor styles
48
// to communicate with the vtkKWRenderWidget (and subclasses) instance.
49
// It is not ref-counted.
50
virtual
void
SetRenderWidget(
vtkKWRenderWidget
*widget);
51
vtkGetObjectMacro(RenderWidget,
vtkKWRenderWidget
);
52
53
// Description:
54
// Override Render to render through the widget.
55
// The superclass would call vtkRenderWindow::Render(). We want the
56
// vtkKWRenderWidget::Render() method to be called instead. Depending
57
// on its RenderMode (interactive, still, print) and various flag it
58
// will perform some tests and ultimately called vtkRenderWindow::Render()
59
// if needed.
60
virtual
void
Render();
61
62
protected
:
63
vtkKWGenericRenderWindowInteractor
();
64
~
vtkKWGenericRenderWindowInteractor
();
65
66
vtkKWRenderWidget
*RenderWidget;
67
68
private
:
69
vtkKWGenericRenderWindowInteractor
(
const
vtkKWGenericRenderWindowInteractor
&);
// Not implemented
70
void
operator=(
const
vtkKWGenericRenderWindowInteractor
&);
// Not implemented
71
};
72
73
#endif
Generated on Sun Apr 28 2013 21:04:56 for KWWidgets by
1.8.3.1