/usr/include/paraview/vtkPVAxesWidget.h is in paraview-dev 5.0.1+dfsg1-4.
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 139 140 141 142 143 144 145 146 147 148 149 150 151 | /*=========================================================================
Program: ParaView
Module: vtkSMProxy.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 vtkPVAxesWidget - A widget to manipulate an axe
//
// .SECTION Description
// This widget creates and manages its own vtkPVAxesActor.
#ifndef vtkPVAxesWidget_h
#define vtkPVAxesWidget_h
#include "vtkInteractorObserver.h"
#include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
class vtkActor2D;
class vtkKWApplication;
class vtkPolyData;
class vtkPVAxesActor;
class vtkPVAxesWidgetObserver;
class vtkRenderer;
class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkPVAxesWidget : public vtkInteractorObserver
{
public:
static vtkPVAxesWidget* New();
vtkTypeMacro(vtkPVAxesWidget, vtkInteractorObserver);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Layer number to use for the internal renderer created by vtkPVAxesWidget.
static const int RendererLayer = 1;
// Description:
// Set/get the axes actor to be displayed in this 3D widget.
void SetAxesActor(vtkPVAxesActor *actor);
vtkGetObjectMacro(AxesActor, vtkPVAxesActor);
// Description:
// Enable the 3D widget.
virtual void SetEnabled(int);
//BTX
// Description:
// Set the renderer this 3D widget will be contained in.
void SetParentRenderer(vtkRenderer *ren);
vtkRenderer* GetParentRenderer();
// Description:
// Get the renderer.
vtkGetObjectMacro(Renderer, vtkRenderer);
//ETX
// Description:
// Callback to keep the camera for the axes actor up to date with the
// camera in the parent renderer
void ExecuteEvent(vtkObject *o, unsigned long event, void *calldata);
// Description:
// Set/get whether to allow this 3D widget to be interactively moved/scaled.
void SetInteractive(int state);
vtkGetMacro(Interactive, int);
vtkBooleanMacro(Interactive, int);
// Description:
// Set/get the color of the outline of this widget. The outline is visible
// when (in interactive mode) the cursor is over this 3D widget.
void SetOutlineColor(double r, double g, double b);
double *GetOutlineColor();
// Description:
// Set/get the color of the axis labels of this widget.
void SetAxisLabelColor(double r, double g, double b);
double *GetAxisLabelColor();
// Description:
// Set/get the viewport to position/size this 3D widget.
void SetViewport(double minX, double minY, double maxX, double maxY);
double* GetViewport();
//BTX
protected:
vtkPVAxesWidget();
~vtkPVAxesWidget();
vtkRenderer *Renderer;
vtkRenderer *ParentRenderer;
vtkPVAxesActor *AxesActor;
vtkPolyData *Outline;
vtkActor2D *OutlineActor;
static void ProcessEvents(vtkObject *object, unsigned long event,
void *clientdata, void *calldata);
vtkPVAxesWidgetObserver *Observer;
int StartTag;
int MouseCursorState;
int Moving;
int StartPosition[2];
int Interactive;
void UpdateCursorIcon();
void SetMouseCursor(int cursorState);
int State;
enum AxesWidgetState
{
Outside = 0,
Inside,
TopLeft,
TopRight,
BottomLeft,
BottomRight
};
void OnButtonPress();
void OnMouseMove();
void OnButtonRelease();
void MoveWidget();
void ResizeTopLeft();
void ResizeTopRight();
void ResizeBottomLeft();
void ResizeBottomRight();
void SquareRenderer();
unsigned long StartEventObserverId;
private:
vtkPVAxesWidget(const vtkPVAxesWidget&); // Not implemented
void operator=(const vtkPVAxesWidget&); // Not implemented
//ETX
};
#endif
|