/usr/include/paraview/pqMultiSliceView.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 | /*=========================================================================
Program: Visualization Toolkit
Module: pqMultiSliceView.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/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 notice for more information.
=========================================================================*/
// .NAME pqMultiSliceView - QT GUI that allow multi slice control
#ifndef pqMultiSliceView_h
#define pqMultiSliceView_h
#include "pqCoreModule.h"
#include "pqRenderView.h"
#include <QtCore>
#include <QtGui>
class pqMultiSliceAxisWidget;
class PQCORE_EXPORT pqMultiSliceView : public pqRenderView
{
Q_OBJECT
typedef pqRenderView Superclass;
public:
static QString multiSliceViewType() { return "MultiSlice"; }
/// constructor takes a bunch of init stuff and must have this signature to
/// satisfy pqView
pqMultiSliceView( const QString& viewtype,
const QString& group,
const QString& name,
vtkSMViewProxy* viewmodule,
pqServer* server,
QObject* p);
virtual ~pqMultiSliceView();
/// Provide access to visible slices positions for any axis.
/// Precondition: 0 <= axisIndex <= 2
const double* GetVisibleSlices(int axisIndex, int &numberOfSlices);
/// @deprecated. Use GetVisibleSlices() or GetAllSlices(). This method simply
/// calls GetVisibleSlices().
const double* GetSlices(int axisIndex, int &numberOfSlices)
{ return this->GetVisibleSlices(axisIndex, numberOfSlices); }
/// Provides access to all (visible and invisible) slice positions for any
/// Precondition: 0 <= axisIndex <= 2
const double* GetAllSlices(int axisIndex, int &numberOfSlices);
/// Provide access to slices normal for any axis.
/// 0 <= axisIndex <= 2
const double* GetSliceNormal(int axisIndex);
/// Provide access to slices origin for any axis.
/// 0 <= axisIndex <= 2
const double* GetSliceOrigin(int axisIndex);
/// Override for custom management
virtual void setCursor(const QCursor &);
/// Update Outline visibility
bool getOutlineVisibility();
void setOutlineVisibility(bool visible);
signals:
// Fired when the slices are changed by user interaction.
// Provides information about which slice is being
// changed. axisIndex is the index of axis [0,2], while sliceIndex is the
// index for the slice in the slices returned by GetAllSlices(). If a slice is
// deleted, the sliceIndex will point to its index before the slice was
// deleted.
void sliceAdded(int axisIndex, int sliceIndex);
void sliceRemoved(int axisIndex, int sliceIndex);
void sliceModified(int axisIndex, int sliceIndex);
void sliceClicked(int axisIndex, double sliceOffsetOnAxis, int button, int modifier);
public slots:
void updateSlices();
private slots:
void updateAxisBounds();
void onSliceAdded(int activeSliceIndex);
void onSliceRemoved(int activeSliceIndex);
void onSliceModified(int activeSliceIndex);
protected:
void updateViewModelCallBack(vtkObject*,unsigned long, void*);
/// Override to decorate the QVTKWidget
virtual QWidget* createWidget();
/// Helper method to get the concreate 3D widget
QVTKWidget* getInternalWidget();
/// Get axis index.
int getAxisIndex(QObject*);
QPointer<QVTKWidget> InternalWidget;
bool UserIsInteracting;
QPointer<pqMultiSliceAxisWidget> AxisX;
QPointer<pqMultiSliceAxisWidget> AxisY;
QPointer<pqMultiSliceAxisWidget> AxisZ;
QPointer<pqMultiSliceAxisWidget> AxisXYZ[3];
QMap<pqRepresentation*, unsigned int> ObserverIdX;
QMap<pqRepresentation*, unsigned int> ObserverIdY;
QMap<pqRepresentation*, unsigned int> ObserverIdZ;
double NormalValuesHolder[9];
double OriginValuesHolder[9];
protected slots:
// Internal slot that will emit sliceClicked()
void onSliceClicked(int button, int modifier, double value);
private:
pqMultiSliceView(const pqMultiSliceView&); // Not implemented.
void operator=(const pqMultiSliceView&); // Not implemented.
};
#endif
|