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 
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
vtk3DWidgetRepresentation * TextWidgetRepresentation
#define VTKREMOTINGVIEWS_EXPORT
vtkPVDataRepresentation adds some ParaView specific API to data representations.
bool AddToView(vtkView *view) override
Making these methods public.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkBillboardTextActor3D * BillboardTextActor
virtual int FillInputPortInformation(int port, vtkInformation *info)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
vtk3DWidgetRepresentation is a vtkDataRepresentation subclass for 3D widgets and their representation...
bool RemoveFromView(vtkView *view) override
Making these methods public.
static vtkDataRepresentation * New()
vtkTextSourceRepresentation is a representation to show text.
void PrintSelf(ostream &os, vtkIndent indent) override