/usr/include/paraview/vtkPVGenericRenderWindowInteractor.h is in paraview-dev 4.0.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | /*=========================================================================
Program: ParaView
Module: vtkPVGenericRenderWindowInteractor.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 notice for more information.
=========================================================================*/
// .NAME vtkPVGenericRenderWindowInteractor
// .SECTION Description
#ifndef __vtkPVGenericRenderWindowInteractor_h
#define __vtkPVGenericRenderWindowInteractor_h
#include "vtkRenderWindowInteractor.h"
#include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
class vtkPVRenderViewProxy;
class vtkRenderer;
class vtkPVGenericRenderWindowInteractorObserver;
class vtkPVGenericRenderWindowInteractorTimer;
class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVGenericRenderWindowInteractor : public vtkRenderWindowInteractor
{
public:
static vtkPVGenericRenderWindowInteractor *New();
vtkTypeMacro(vtkPVGenericRenderWindowInteractor, vtkRenderWindowInteractor);
void PrintSelf(ostream& os, vtkIndent indent);
void SetPVRenderView(vtkPVRenderViewProxy *view);
vtkGetObjectMacro(PVRenderView, vtkPVRenderViewProxy);
// Description:
// My sollution to the poked renderer problem.
// This interactor class always returns this renderer as poked render.
// This insures the 2D renderer will never be poked.
void SetRenderer(vtkRenderer *view);
vtkGetObjectMacro(Renderer,vtkRenderer);
virtual vtkRenderer *FindPokedRenderer(int,int);
// Description:
// 3D widgets call render on this interactor directly.
// They call SetInteractive to tell whether to use still or interactive rendering.
// This class just forwards the render request to ParaView's RenderModule.
// DesiredUpdateRate is ignored.
void SetInteractiveRenderEnabled(int);
vtkGetMacro(InteractiveRenderEnabled,int);
vtkBooleanMacro(InteractiveRenderEnabled,int);
// Description:
// vtkPVGenericRenderWindowInteractor allows applications to support
// "delayed-switch-to-non-interative-render" mode i.e. when user stops
// interacting, the application does not want the scene to be immediately
// rendered in non-interactive mode, but wait for a few seconds. This will
// allow the user to do multiple adjustments while staying locked in the
// interactive mode. For that, the application must first set
// SetNonInteractiveRenderDelay(unsigned long milliseconds). If
// milliseconds==0, then the application switches to non-interactive mode
// immediately.
// Note, currently delayed render is only supported when compiled with
// PARAVIEW_ENABLE_QT_SUPPORT set to ON.
vtkSetMacro(NonInteractiveRenderDelay, unsigned long);
vtkGetMacro(NonInteractiveRenderDelay, unsigned long);
// Description:
// Triggers a render.
virtual void Render();
// Description:
// These methods merely call SetEventInformation() and then fire the
// appropriate vtk-event.
virtual void OnLeftPress(int x, int y, int control, int shift);
virtual void OnMiddlePress(int x, int y, int control, int shift);
virtual void OnRightPress(int x, int y, int control, int shift);
virtual void OnLeftRelease(int x, int y, int control, int shift);
virtual void OnMiddleRelease(int x, int y, int control, int shift);
virtual void OnRightRelease(int x, int y, int control, int shift);
virtual void OnMove(int x, int y);
virtual void OnKeyPress(char keyCode, int x, int y);
// Overridden to pass interaction events from the interactor style out.
virtual void SetInteractorStyle(vtkInteractorObserver *);
// Description:
// Propagates the center to the interactor style.
// Currently, center of rotation is propagated only with the
// interactor style is a vtkPVInteractorStyle or subclass.
vtkGetVector3Macro(CenterOfRotation, double);
void SetCenterOfRotation(double x, double y, double z);
void SetCenterOfRotation(double xyz[3])
{
this->SetCenterOfRotation(xyz[0], xyz[1], xyz[2]);
}
// Description:
// These events are fired to mark the beginning and ending of the wait for the
// full-res render after an interactive render is over.
enum
{
BeginDelayNonInteractiveRenderEvent=1001,
EndDelayNonInteractiveRenderEvent=1002,
};
protected:
vtkPVGenericRenderWindowInteractor();
~vtkPVGenericRenderWindowInteractor();
vtkPVRenderViewProxy *PVRenderView;
int InteractiveRenderEnabled;
vtkRenderer* Renderer;
unsigned long NonInteractiveRenderDelay;
double CenterOfRotation[3];
private:
vtkPVGenericRenderWindowInteractor(const vtkPVGenericRenderWindowInteractor&); // Not implemented
void operator=(const vtkPVGenericRenderWindowInteractor&); // Not implemented
friend class vtkPVGenericRenderWindowInteractorTimer;
friend class vtkPVGenericRenderWindowInteractorObserver;
vtkPVGenericRenderWindowInteractorTimer* Timer;
vtkPVGenericRenderWindowInteractorObserver* Observer;
bool ForceInteractiveRender;
vtkSetMacro(ForceInteractiveRender, bool);
void DisableInteractiveRenderInternal();
bool InteractiveRenderHappened;
};
#endif
|