Remoting
Views
vtk2DWidgetRepresentation.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-License-Identifier: BSD-3-Clause
3
#ifndef vtk2DWidgetRepresentation_h
4
#define vtk2DWidgetRepresentation_h
5
6
#include "
vtkContextItem.h
"
// needed for vtkWeakPOinter<vtkContextItem>
7
#include "
vtkDataRepresentation.h
"
8
#include "
vtkRemotingViewsModule.h
"
// needed for exports
9
#include "
vtkWeakPointer.h
"
// needed for WeakPointer
10
11
class
vtkPVContextView
;
12
21
class
VTKREMOTINGVIEWS_EXPORT
vtk2DWidgetRepresentation
:
public
vtkDataRepresentation
22
{
23
public
:
24
static
vtk2DWidgetRepresentation
*
New
();
25
vtkTypeMacro(
vtk2DWidgetRepresentation
,
vtkDataRepresentation
);
26
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
27
29
32
vtkSetMacro(ContextItem,
vtkContextItem
*);
33
virtual
vtkContextItem
*
GetContextItem
()
const
{
return
this->ContextItem; };
35
37
40
vtkSetMacro(Enabled,
bool
);
41
vtkGetMacro(Enabled,
bool
);
42
vtkBooleanMacro(Enabled,
bool
);
44
45
protected
:
46
vtk2DWidgetRepresentation
();
47
~
vtk2DWidgetRepresentation
()
override
;
48
54
bool
AddToView
(
vtkView
* view)
override
;
55
61
bool
RemoveFromView
(
vtkView
* view)
override
;
62
63
vtkWeakPointer<vtkContextItem>
ContextItem
;
64
vtkWeakPointer<vtkPVContextView>
View
;
65
bool
Enabled =
false
;
66
67
private
:
68
vtk2DWidgetRepresentation
(
const
vtk2DWidgetRepresentation
&) =
delete
;
69
void
operator=
(
const
vtk2DWidgetRepresentation
&) =
delete
;
70
};
71
72
#endif
VTKREMOTINGVIEWS_EXPORT
#define VTKREMOTINGVIEWS_EXPORT
Definition:
vtkRemotingViewsModule.h:15
vtkContextItem
vtk2DWidgetRepresentation::GetContextItem
virtual vtkContextItem * GetContextItem() const
Get/Set the representation.
Definition:
vtk2DWidgetRepresentation.h:33
vtkDataRepresentation::AddToView
virtual bool AddToView(vtkView *vtkNotUsed(view))
vtkIndent
vtkDataRepresentation::RemoveFromView
virtual bool RemoveFromView(vtkView *vtkNotUsed(view))
vtkWeakPointer< vtkContextItem >
vtkView
vtkDataRepresentation
vtk2DWidgetRepresentation
vtk2DWidgetRepresentation is a vtkDataRepresentation subclass for 2D widgets and their representation...
Definition:
vtk2DWidgetRepresentation.h:21
vtkDataRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkRemotingViewsModule.h
vtkWeakPointer.h
vtkDataRepresentation::New
static vtkDataRepresentation * New()
vtkPVContextView
vtkPVContextView adopts vtkContextView so that it can be used in ParaView configurations.
Definition:
vtkPVContextView.h:29
vtkDataRepresentation.h
vtk2DWidgetRepresentation::View
vtkWeakPointer< vtkPVContextView > View
Definition:
vtk2DWidgetRepresentation.h:64
vtk2DWidgetRepresentation::ContextItem
vtkWeakPointer< vtkContextItem > ContextItem
Definition:
vtk2DWidgetRepresentation.h:63
vtkContextItem.h
vtkObjectBase::operator=
void operator=(const vtkObjectBase &)
Generated by
1.8.13 on Thu Mar 28 2024