Qt
Components
pqScalarValueListPropertyWidget.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 pqScalarValueListPropertyWidget_h
5
#define pqScalarValueListPropertyWidget_h
6
7
#include "
pqPropertyWidget.h
"
8
9
#include "
vtkParaViewDeprecation.h
"
// for PARAVIEW_DEPRECATED_IN_5_12_0
10
11
#include <QVariant>
12
#include <string>
13
#include <vector>
14
15
class
QListWidgetItem;
16
class
vtkPVXMLElement
;
17
class
vtkSMDoubleRangeDomain
;
18
class
vtkSMIntRangeDomain
;
19
class
vtkSMTimeStepsDomain
;
20
28
class
PQCOMPONENTS_EXPORT
pqScalarValueListPropertyWidget
:
public
pqPropertyWidget
29
{
30
Q_OBJECT
31
Q_PROPERTY(QVariantList scalars READ scalars WRITE setScalars)
32
33
typedef
pqPropertyWidget
Superclass;
34
35
public
:
36
pqScalarValueListPropertyWidget
(
37
vtkSMProperty
* property,
vtkSMProxy
* proxy, QWidget* parent =
nullptr
);
38
~
pqScalarValueListPropertyWidget
()
override
;
39
40
void
setScalars(
const
QVariantList& scalars);
41
QVariantList scalars()
const
;
42
44
48
void
setRangeDomain(
vtkSMDoubleRangeDomain
* smRangeDomain);
49
void
setRangeDomain(
vtkSMIntRangeDomain
* smRangeDomain);
50
void
setRangeDomain(
vtkSMTimeStepsDomain
* timestepsDomain);
52
53
void
setShowLabels(
bool
);
54
void
setLabels(
const
std::vector<std::string>& labels);
55
56
PARAVIEW_DEPRECATED_IN_5_12_0
(
57
"vector of const char* is not memory safe, use std::string version instead"
)
58
void setLabels(
std
::vector<
const
char
*>&);
59
60
Q_SIGNALS:
61
void
scalarsChanged();
62
63
private Q_SLOTS:
64
void
smRangeModified();
65
69
void
add();
70
void
addRange();
71
void
remove();
72
void
removeAll();
73
void
editPastLastRow();
74
void
restoreDefaults();
75
76
private:
// NOLINT(readability-redundant-access-specifiers)
77
Q_DISABLE_COPY(
pqScalarValueListPropertyWidget
)
78
79
bool
getRange(
double
& range_min,
double
& range_max);
80
bool
getRange(
int
& range_min,
int
& range_max);
81
82
class pqInternals;
83
pqInternals* Internals;
84
};
85
86
#endif // pqScalarValueListPropertyWidget_h
vtkSMIntRangeDomain
type specific extension to vtkSMRangeDomainTemplate for ints.
Definition:
vtkSMIntRangeDomain.h:27
pqPropertyWidget
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
Definition:
pqPropertyWidget.h:25
PARAVIEW_DEPRECATED_IN_5_12_0
#define PARAVIEW_DEPRECATED_IN_5_12_0(reason)
Definition:
vtkParaViewDeprecation.h:113
vtkSMDoubleRangeDomain
type specific extension to vtkSMRangeDomainTemplate for doubles.
Definition:
vtkSMDoubleRangeDomain.h:28
PQCOMPONENTS_EXPORT
#define PQCOMPONENTS_EXPORT
Definition:
pqComponentsModule.h:15
std
pqScalarValueListPropertyWidget
pqScalarValueListPropertyWidget provides a table widget to which users are add values e...
Definition:
pqScalarValueListPropertyWidget.h:28
vtkSMProperty
superclass for all SM properties
Definition:
vtkSMProperty.h:144
pqPropertyWidget.h
vtkSMTimeStepsDomain
A domain providing timesteps from its "Input" property.
Definition:
vtkSMTimeStepsDomain.h:20
vtkSMProxy
proxy for a VTK object(s) on a server
Definition:
vtkSMProxy.h:140
vtkParaViewDeprecation.h
vtkPVXMLElement
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
Definition:
vtkPVXMLElement.h:23
const
#define const
Definition:
zconf.h:238
Generated by
1.8.13 on Thu Mar 28 2024