src
paraview-5.12
Remoting
Views
vtkChartTextRepresentation.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-License-Identifier: BSD-3-Clause
17
#ifndef vtkChartTextRepresentation_h
18
#define vtkChartTextRepresentation_h
19
20
#include "
vtkNew.h
"
// for vtkNew
21
#include "
vtkPVDataRepresentation.h
"
22
23
class
vtkBlockItem
;
24
class
vtkTextProperty
;
25
26
class
VTKREMOTINGVIEWS_EXPORT
vtkChartTextRepresentation
:
public
vtkPVDataRepresentation
27
{
28
public
:
29
static
vtkChartTextRepresentation
*
New
();
30
vtkTypeMacro(
vtkChartTextRepresentation
,
vtkPVDataRepresentation
);
31
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
32
34
enum
35
{
36
AnyLocation = 0,
37
LowerLeftCorner
,
38
LowerRightCorner
,
39
LowerCenter
,
40
UpperLeftCorner
,
41
UpperRightCorner
,
42
UpperCenter
43
};
44
void
SetLabelLocation(
int
location);
46
48
52
vtkGetVector2Macro(Position,
double
);
53
vtkSetVector2Macro(Position,
double
);
55
57
60
void
SetInteractivity(
bool
);
62
64
67
void
SetTextProperty(
vtkTextProperty
*);
69
71
// Superclass overrides
72
void
SetVisibility
(
bool
val)
override
;
73
int
ProcessViewRequest
(
vtkInformationRequestKey
* request_type,
vtkInformation
* inInfo,
74
vtkInformation
* outInfo)
override
;
76
77
protected
:
78
vtkChartTextRepresentation
();
79
~
vtkChartTextRepresentation
()
override
=
default
;
80
84
int
FillInputPortInformation
(
int
port,
vtkInformation
* info)
override
;
85
89
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
90
96
bool
AddToView
(
vtkView
* view)
override
;
97
103
bool
RemoveFromView
(
vtkView
* view)
override
;
104
105
private
:
106
vtkChartTextRepresentation
(
const
vtkChartTextRepresentation
&) =
delete
;
107
void
operator=(
const
vtkChartTextRepresentation
&) =
delete
;
108
109
void
OnInteractionEvent();
110
111
vtkNew<vtkBlockItem>
BlockItem;
112
vtkNew<vtkTable>
PreparedData;
113
double
Position[2] = { 0.05, 0.05 };
114
int
LabelLocation =
vtkChartTextRepresentation::AnyLocation
;
115
};
116
117
#endif
vtkDataRepresentation::New
static vtkDataRepresentation * New()
vtkPVDataRepresentation.h
vtkChartTextRepresentation
representation to add text to vtkPVContextView
Definition:
vtkChartTextRepresentation.h:26
vtkInformationVector
vtkPVDataRepresentation::AddToView
bool AddToView(vtkView *view) override
Making these methods public.
vtkPVDataRepresentation::SetVisibility
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
Definition:
vtkPVDataRepresentation.h:89
vtkPVDataRepresentation::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
vtkPVDataRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
Making these methods public.
vtkPassInputTypeAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkView
vtkIndent
vtkPVDataRepresentation::ProcessViewRequest
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkInformationRequestKey
vtkChartTextRepresentation::UpperLeftCorner
@ UpperLeftCorner
Definition:
vtkChartTextRepresentation.h:40
vtkNew< vtkBlockItem >
vtkChartTextRepresentation::UpperRightCorner
@ UpperRightCorner
Definition:
vtkChartTextRepresentation.h:41
vtkTextProperty
vtkInformation
vtkChartTextRepresentation::LowerLeftCorner
@ LowerLeftCorner
Definition:
vtkChartTextRepresentation.h:37
vtkNew.h
vtkPVDataRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkChartTextRepresentation::AnyLocation
@ AnyLocation
Definition:
vtkChartTextRepresentation.h:36
vtkPVDataRepresentation
Definition:
vtkPVDataRepresentation.h:23
vtkChartTextRepresentation::LowerCenter
@ LowerCenter
Definition:
vtkChartTextRepresentation.h:39
vtkChartTextRepresentation::LowerRightCorner
@ LowerRightCorner
Definition:
vtkChartTextRepresentation.h:38
vtkBlockItem
Generated by
1.8.17 on Wed Mar 27 2024