src
paraview-5.12
Qt
ApplicationComponents
pqLinePropertyWidget.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3
// SPDX-License-Identifier: BSD-3-Clause
4
#ifndef pqLinePropertyWidget_h
5
#define pqLinePropertyWidget_h
6
7
#include "
pqInteractivePropertyWidget.h
"
8
#include <QScopedPointer>
9
class
QColor;
10
30
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqLinePropertyWidget
:
public
pqInteractivePropertyWidget
31
{
32
Q_OBJECT
33
typedef
pqInteractivePropertyWidget
Superclass
;
34
35
public
:
36
pqLinePropertyWidget
(
vtkSMProxy
* proxy,
vtkSMPropertyGroup
* smgroup, QWidget* parent =
nullptr
);
37
~
pqLinePropertyWidget
()
override
;
38
39
public
Q_SLOTS:
// NOLINT(readability-redundant-access-specifiers)
40
void
useXAxis
() { this->useAxis(0); }
41
void
useYAxis
() { this->useAxis(1); }
42
void
useZAxis
() { this->useAxis(2); }
43
void
flipP2();
44
void
centerOnBounds();
45
49
void
setLineColor(
const
QColor& color);
50
51
protected
Q_SLOTS:
55
void
placeWidget
()
override
;
56
60
void
pick(
double
x,
double
y,
double
z);
61
void
pickPoint1(
double
x,
double
y,
double
z);
62
void
pickPoint2(
double
x,
double
y,
double
z);
63
void
pickNormal(
double
x,
double
y,
double
z,
double
nx,
double
ny,
double
nz);
64
68
void
updateLengthLabel();
69
70
private
:
71
Q_DISABLE_COPY(
pqLinePropertyWidget
)
72
class
pqInternals;
73
QScopedPointer<pqInternals> Internals;
74
vtkBoundingBox
referenceBounds()
const
;
75
76
void
useAxis(
int
axis);
77
};
78
79
#endif
pqLinePropertyWidget::useXAxis
void useXAxis()
Definition:
pqLinePropertyWidget.h:40
pqLinePropertyWidget::useYAxis
void useYAxis()
Definition:
pqLinePropertyWidget.h:41
vtkSMProxy
proxy for a VTK object(s) on a server
Definition:
vtkSMProxy.h:140
pqInteractivePropertyWidgetAbstract
pqInteractivePropertyWidgetAbstract is an abstract pqPropertyWidget subclass designed to serve as the...
Definition:
pqInteractivePropertyWidgetAbstract.h:30
vtkBoundingBox
vtkSMPropertyGroup
Definition:
vtkSMPropertyGroup.h:16
pqInteractivePropertyWidget.h
pqInteractivePropertyWidgetAbstract::placeWidget
virtual void placeWidget()=0
Places the interactive widget using current data source information.
pqLinePropertyWidget::useZAxis
void useZAxis()
Definition:
pqLinePropertyWidget.h:42
pqInteractivePropertyWidget
pqInteractivePropertyWidget is an abstract pqPropertyWidget subclass designed to serve as the supercl...
Definition:
pqInteractivePropertyWidget.h:29
pqLinePropertyWidget
pqLinePropertyWidget is a custom property widget that uses "LineWidgetRepresentation" to help the use...
Definition:
pqLinePropertyWidget.h:30
Generated by
1.8.17 on Wed Mar 27 2024