Qt
Components
pqCompositeTreePropertyWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: ParaView
4
Module: pqCompositeTreePropertyWidget.h
5
6
Copyright (c) 2005,2006 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 pqCompositeTreePropertyWidget_h
33
#define pqCompositeTreePropertyWidget_h
34
35
#include "
pqPropertyWidget.h
"
36
#include "pqTimer.h"
// needed for pqTimer.
37
#include "
vtkNew.h
"
// needed for vtkNew.
38
#include "
vtkWeakPointer.h
"
// needed for vtkWeakPointer.
39
40
class
vtkSMIntVectorProperty
;
41
class
vtkEventQtSlotConnect
;
42
class
vtkSMCompositeTreeDomain
;
43
class
pqCompositeDataInformationTreeModel
;
44
class
pqTreeView
;
45
60
class
PQCOMPONENTS_EXPORT
pqCompositeTreePropertyWidget
:
public
pqPropertyWidget
61
{
62
Q_OBJECT
63
typedef
pqPropertyWidget
Superclass
;
64
Q_PROPERTY(QList<QVariant> values READ values WRITE setValues NOTIFY valuesChanged);
65
66
public
:
67
pqCompositeTreePropertyWidget
(
68
vtkSMIntVectorProperty
* smproperty,
vtkSMProxy
* smproxy, QWidget* parent =
nullptr
);
69
~
pqCompositeTreePropertyWidget
()
override
;
70
76
QList<QVariant> values()
const
;
77
void
setValues(
const
QList<QVariant>& values);
78
79
Q_SIGNALS:
80
void
valuesChanged();
81
82
private
Q_SLOTS:
83
void
domainModified();
84
85
private
:
86
Q_DISABLE_COPY(
pqCompositeTreePropertyWidget
);
87
88
pqTimer Timer;
89
vtkNew<vtkEventQtSlotConnect>
VTKConnect;
90
vtkWeakPointer<vtkSMCompositeTreeDomain>
Domain;
91
vtkWeakPointer<vtkSMIntVectorProperty>
Property;
92
QPointer<pqCompositeDataInformationTreeModel> Model;
93
QPointer<pqTreeView> TreeView;
94
int
DepthExpansion = 2;
95
};
96
97
#endif
pqPropertyWidget
pqPropertyWidget represents a widget created for each property of a proxy on the pqPropertiesPanel (f...
Definition:
pqPropertyWidget.h:54
PQCOMPONENTS_EXPORT
#define PQCOMPONENTS_EXPORT
Definition:
pqComponentsModule.h:15
pqPropertyWidget.h
vtkEventQtSlotConnect
vtkSMIntVectorProperty
property representing a vector of integers
Definition:
vtkSMIntVectorProperty.h:33
pqTreeView
: QTreeView subclass that add ParaView specific customizations.
Definition:
pqTreeView.h:62
vtkWeakPointer< vtkSMCompositeTreeDomain >
vtkSMProxy
proxy for a VTK object(s) on a server
Definition:
vtkSMProxy.h:152
vtkNew.h
vtkWeakPointer.h
vtkNew< vtkEventQtSlotConnect >
pqCompositeDataInformationTreeModel
Tree model that use vtkPVDataInformation to model composite data tree.
Definition:
pqCompositeDataInformationTreeModel.h:150
vtkSMCompositeTreeDomain
domain used to restrict an vtkSMIntVectorProperty values to valid flat-index for a vtkCompositeDataSe...
Definition:
vtkSMCompositeTreeDomain.h:86
pqCompositeTreePropertyWidget
Definition:
pqCompositeTreePropertyWidget.h:60
Generated by
1.8.13 on Wed Jan 27 2021