vtkTextSourceRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkTextSourceRepresentation_h
13 #define vtkTextSourceRepresentation_h
14 
16 #include "vtkRemotingViewsModule.h" //needed for exports
17 
19 class vtkBillboardTextActor3D;
20 class vtkFlagpoleLabel;
21 class vtkPolyData;
22 
23 class VTKREMOTINGVIEWS_EXPORT vtkTextSourceRepresentation : public vtkPVDataRepresentation
24 {
25 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
34  void SetTextWidgetRepresentation(vtk3DWidgetRepresentation* widget);
35  vtkGetObjectMacro(TextWidgetRepresentation, vtk3DWidgetRepresentation);
37 
41  void SetVisibility(bool) override;
42 
46  void SetInteractivity(bool);
47 
53  void SetTextPropMode(int);
54 
56 
59  void SetFlagpoleLabel(vtkFlagpoleLabel* val);
60  vtkGetObjectMacro(FlagpoleLabel, vtkFlagpoleLabel);
62 
64 
67  void SetBillboardTextActor(vtkBillboardTextActor3D* val);
68  vtkGetObjectMacro(BillboardTextActor, vtkBillboardTextActor3D);
70 
78  vtkInformation* outInfo) override;
79 
80 protected:
82  ~vtkTextSourceRepresentation() override;
83 
87  int FillInputPortInformation(int port, vtkInformation* info) override;
88 
93 
99  bool AddToView(vtkView* view) override;
100 
106  bool RemoveFromView(vtkView* view) override;
107 
110  vtkFlagpoleLabel* FlagpoleLabel;
111  vtkBillboardTextActor3D* BillboardTextActor;
113 
114 private:
116  void operator=(const vtkTextSourceRepresentation&) = delete;
117 };
118 
119 #endif
vtkDataRepresentation::New
static vtkDataRepresentation * New()
vtkTextSourceRepresentation::FlagpoleLabel
vtkFlagpoleLabel * FlagpoleLabel
Definition: vtkTextSourceRepresentation.h:110
vtkTextSourceRepresentation::DummyPolyData
vtkPolyData * DummyPolyData
Definition: vtkTextSourceRepresentation.h:108
vtkPVDataRepresentation.h
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
vtkTextSourceRepresentation::BillboardTextActor
vtkBillboardTextActor3D * BillboardTextActor
Definition: vtkTextSourceRepresentation.h:111
vtk3DWidgetRepresentation
Definition: vtk3DWidgetRepresentation.h:22
vtkInformation
vtkTextSourceRepresentation::TextWidgetRepresentation
vtk3DWidgetRepresentation * TextWidgetRepresentation
Definition: vtkTextSourceRepresentation.h:109
vtkPVDataRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPolyData
vtkPVDataRepresentation
Definition: vtkPVDataRepresentation.h:23
vtkTextSourceRepresentation
Definition: vtkTextSourceRepresentation.h:23
vtkTextSourceRepresentation::TextPropMode
int TextPropMode
Definition: vtkTextSourceRepresentation.h:112