vtkProtractorRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkProtractorRepresentation_h
14 #define vtkProtractorRepresentation_h
15 
16 #include "vtkAngleRepresentation2D.h" // vtkAngleRepresentation2D
17 #include "vtkNew.h" //needed for instances of vtkPolyData
19 #include "vtkRemotingViewsModule.h" //needed for exports
20 #include "vtkSmartPointer.h" // vtkSmartPointer
21 
22 class vtkPolyData;
23 class vtkProperty2D;
24 class vtkTextProperty;
25 
27 {
28 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  void SetAngleRepresentation(vtkAngleRepresentation2D*);
38  vtkGetSmartPointerMacro(AngleRepresentation, vtkAngleRepresentation2D);
40 
42 
45  void SetTextProperty(vtkTextProperty* prop);
46  void SetLineColor(double r, double g, double b);
47  void SetLineThickness(double thickness);
48  void SetArrowStyle(int style);
49  void SetLabelFactorSize(double size);
50  void SetVisibility(bool) override;
51  void SetLabelFormat(char* labelFormat);
52  void SetAngleScale(double factor);
54 
62  vtkInformation* outInfo) override;
63 
64 protected:
66  ~vtkProtractorRepresentation() override = default;
67 
69 
73  int FillInputPortInformation(int port, vtkInformation* info) override;
74 
80  bool AddToView(vtkView* view) override;
81 
87  bool RemoveFromView(vtkView* view) override;
88 
91 
92 private:
94  void operator=(const vtkProtractorRepresentation&) = delete;
95 };
96 
97 #endif
#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.
vtkProtractorRepresentation is a representation to show a protractor.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkSmartPointer< vtkAngleRepresentation2D > AngleRepresentation
virtual int FillInputPortInformation(int port, vtkInformation *info)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
bool RemoveFromView(vtkView *view) override
Making these methods public.
static vtkDataRepresentation * New()
void PrintSelf(ostream &os, vtkIndent indent) override