SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
extension
paraview
appcomponents
pqSMTKResource.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
#ifndef smtk_extension_paraview_appcomponents_pqSMTKResource_h
11
#define smtk_extension_paraview_appcomponents_pqSMTKResource_h
12
13
#include "smtk/extension/paraview/appcomponents/smtkPQComponentsExtModule.h"
14
15
#include "pqPipelineSource.h"
16
17
#include "smtk/operation/Observer.h"
18
19
#include "
smtk/PublicPointerDefs.h
"
20
21
#include "smtk/extension/paraview/appcomponents/pqQtKeywordWrapping.h"
22
32
class
SMTKPQCOMPONENTSEXT_EXPORT
pqSMTKResource
:
public
pqPipelineSource
33
{
34
Q_OBJECT
35
typedef
pqPipelineSource Superclass;
36
37
public
:
38
pqSMTKResource
(
39
const
QString& grp,
40
const
QString& name,
41
vtkSMProxy* proxy,
42
pqServer* server,
43
QObject* parent =
nullptr
);
44
~
pqSMTKResource
()
override
;
45
49
smtk::resource::ResourcePtr
getResource()
const
;
50
52
void
dropResource();
53
54
Q_SIGNALS:
56
void
resourceModified(
smtk::resource::ResourcePtr
);
57
60
void
operationOccurred(QPrivateSignal);
61
62
protected
Q_SLOTS:
71
virtual
void
synchronizeResource();
72
73
protected
:
74
smtk::resource::WeakResourcePtr
m_lastResource;
75
76
smtk::operation::Observers::Key
m_key;
77
};
78
#endif // smtk_extension_paraview_appcomponents_pqSMTKResource_h
PublicPointerDefs.h
smtk::common::Observers::Key
Definition:
Observers.h:106
smtk::resource::WeakResourcePtr
smtk::weak_ptr< smtk::resource::Resource > WeakResourcePtr
Definition:
PublicPointerDefs.h:306
pqSMTKResource
A pqPipelineSource subclass for VTK algorithms that own SMTK resources.
Definition:
pqSMTKResource.h:32
smtk::resource::ResourcePtr
smtk::shared_ptr< smtk::resource::Resource > ResourcePtr
Definition:
PublicPointerDefs.h:302
Generated by
1.8.17