Qt
Core
pqContextView.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 pqContextView_h
5
#define pqContextView_h
6
7
#include "
pqView.h
"
8
#include "
vtkType.h
"
9
10
class
vtkSMContextViewProxy
;
11
class
vtkContextView
;
12
class
vtkObject
;
13
class
vtkSelection
;
14
19
class
PQCORE_EXPORT
pqContextView
:
public
pqView
20
{
21
Q_OBJECT
22
typedef
pqView
Superclass
;
23
24
public
:
25
~
pqContextView
()
override
;
26
31
virtual
vtkContextView
* getVTKContextView()
const
;
32
36
virtual
vtkSMContextViewProxy
* getContextViewProxy()
const
;
37
41
virtual
bool
supportsSelection()
const
;
42
48
bool
supportsCapture
()
const override
{
return
true
; }
49
54
// Default is vtkChart::SELECT_RECTANGLE
55
virtual
void
setSelectionAction(
int
selAction);
56
virtual
int
selectionAction();
57
61
void
resetDisplay
(
bool
closest =
false
)
override
;
62
63
protected
Q_SLOTS:
65
70
void
startInteraction();
71
void
endInteraction();
73
74
protected
:
// NOLINT(readability-redundant-access-specifiers)
84
pqContextView
(
const
QString&
type
,
const
QString& group,
const
QString&
name
,
85
vtkSMViewProxy
* view,
pqServer
* server, QObject* parent =
nullptr
);
86
91
QWidget*
createWidget
()
override
;
92
96
virtual
void
selectionChanged();
97
101
virtual
void
setSelection(
vtkSelection
*);
102
class
command;
103
command*
Command
;
104
105
private
:
106
Q_DISABLE_COPY(
pqContextView
)
107
108
class
pqInternal;
109
pqInternal* Internal;
110
};
111
112
#endif
vtkObject
type
type
pqContextView
pqContextView is an abstract base class for all charting views based on the VTK context charting libr...
Definition:
pqContextView.h:19
vtkSMViewProxy
Superclass for all view proxies.
Definition:
vtkSMViewProxy.h:42
vtkSelection
pqView
This is a PQ abstraction of a generic view module.
Definition:
pqView.h:26
name
name
PQCORE_EXPORT
#define PQCORE_EXPORT
Definition:
pqCoreModule.h:15
vtkSMContextViewProxy
abstract base class for all Chart Views.
Definition:
vtkSMContextViewProxy.h:26
pqContextView::Command
command * Command
Definition:
pqContextView.h:102
vtkType.h
pqView::resetDisplay
virtual void resetDisplay(bool closest=false)
Called to reset the view's display.
Definition:
pqView.h:116
pqView.h
pqView::createWidget
virtual QWidget * createWidget()=0
Subclasses must override this method to create a widget for the view.
vtkContextView
pqServer
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition:
pqServer.h:35
pqContextView::supportsCapture
bool supportsCapture() const override
Returns if this view module can support image capture.
Definition:
pqContextView.h:48
Generated by
1.8.13 on Tue Oct 1 2024