vtkTextSourceRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkTextSourceRepresentation.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkTextSourceRepresentation_h
25 #define vtkTextSourceRepresentation_h
26 
28 #include "vtkRemotingViewsModule.h" //needed for exports
29 
31 class vtkBillboardTextActor3D;
32 class vtkFlagpoleLabel;
33 class vtkPolyData;
34 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  void SetTextWidgetRepresentation(vtk3DWidgetRepresentation* widget);
47  vtkGetObjectMacro(TextWidgetRepresentation, vtk3DWidgetRepresentation);
49 
53  void SetVisibility(bool) override;
54 
58  void SetInteractivity(bool);
59 
65  void SetTextPropMode(int);
66 
68 
71  void SetFlagpoleLabel(vtkFlagpoleLabel* val);
72  vtkGetObjectMacro(FlagpoleLabel, vtkFlagpoleLabel);
74 
76 
79  void SetBillboardTextActor(vtkBillboardTextActor3D* val);
80  vtkGetObjectMacro(BillboardTextActor, vtkBillboardTextActor3D);
82 
90  vtkInformation* outInfo) override;
91 
92 protected:
94  ~vtkTextSourceRepresentation() override;
95 
99  int FillInputPortInformation(int port, vtkInformation* info) override;
100 
105 
111  bool AddToView(vtkView* view) override;
112 
118  bool RemoveFromView(vtkView* view) override;
119 
122  vtkFlagpoleLabel* FlagpoleLabel;
123  vtkBillboardTextActor3D* BillboardTextActor;
125 
126 private:
128  void operator=(const vtkTextSourceRepresentation&) = delete;
129 };
130 
131 #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