Qt
Core
pqMultiSliceAxisWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: ParaView
4
Module: pqMultiSliceAxisWidget.h
5
6
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
7
All rights reserved.
8
9
ParaView is a free software; you can redistribute it and/or modify it
10
under the terms of the ParaView license version 1.2.
11
12
See License_v1.2.txt for the full ParaView license.
13
A copy of this license can be obtained by contacting
14
Kitware Inc.
15
28 Corporate Drive
16
Clifton Park, NY 12065
17
USA
18
19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
23
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
31
========================================================================*/
32
#ifndef pqMultiSliceAxisWidget_h
33
#define pqMultiSliceAxisWidget_h
34
35
#include "
pqCoreModule.h
"
36
37
#include <QPointer>
38
#include <QWidget>
39
40
class
vtkContextScene
;
41
class
vtkObject
;
42
43
class
PQCORE_EXPORT
pqMultiSliceAxisWidget
:
public
QWidget
44
{
45
Q_OBJECT
46
typedef
QWidget Superclass;
47
Q_PROPERTY(QString title READ title WRITE setTitle);
48
49
public
:
50
pqMultiSliceAxisWidget
(QWidget* parent = NULL);
51
~
pqMultiSliceAxisWidget
()
override
;
52
56
void
setRange(
double
min,
double
max);
57
61
void
setAxisType(
int
type);
62
66
QString
title
()
const
;
67
void
setTitle(
const
QString& title);
68
72
QWidget* getVTKWidget();
73
78
const
double
* getVisibleSlices(
int
& nbSlices)
const
;
79
83
const
double
* getSlices(
int
& nbSlices)
const
;
84
88
void
updateSlices(
double
* values,
bool
* visibility,
int
numberOfValues);
89
94
void
SetActiveSize(
int
size);
95
99
void
SetEdgeMargin(
int
margin);
100
101
public
Q_SLOTS:
102
void
renderView();
103
104
Q_SIGNALS:
108
void
sliceAdded(
int
index);
109
void
sliceRemoved(
int
index);
110
void
sliceModified(
int
index);
111
115
void
markClicked(
int
button,
int
modifier,
double
value);
116
117
void
titleChanged(
const
QString&);
118
119
protected
:
120
vtkContextScene
* scene()
const
;
121
125
void
invalidateCallback(
vtkObject
*,
unsigned
long
,
void
*);
126
130
void
onMarkClicked(
vtkObject
*,
unsigned
long
,
void
*);
131
132
private
:
133
Q_DISABLE_COPY(
pqMultiSliceAxisWidget
)
134
135
class
pqInternal;
136
pqInternal* Internal;
137
};
138
139
#endif
vtkObject
pqMultiSliceAxisWidget
Definition:
pqMultiSliceAxisWidget.h:43
pqCoreModule.h
vtkContextScene
PQCORE_EXPORT
#define PQCORE_EXPORT
Definition:
pqCoreModule.h:15
title
title
Generated by
1.8.13 on Wed Jan 27 2021