vtkLogoSourceRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkLogoSourceRepresentation_h
11 #define vtkLogoSourceRepresentation_h
12 
13 #include "vtkNew.h" // for vtkNew
15 #include "vtkRemotingViewsModule.h" //needed for exports
16 
18 class vtkImageData;
20 {
21 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
27 
30  void SetLogoWidgetRepresentation(vtk3DWidgetRepresentation* widget);
31  vtkGetObjectMacro(LogoWidgetRepresentation, vtk3DWidgetRepresentation);
33 
37  void SetVisibility(bool) override;
38 
42  void SetInteractivity(bool);
43 
45 
48  vtkSetMacro(Opacity, double);
49  vtkGetMacro(Opacity, double);
51 
53 
56  vtkSetMacro(InteractiveScaling, bool);
57  vtkGetMacro(InteractiveScaling, bool);
58  vtkBooleanMacro(InteractiveScaling, bool);
60 
61  static constexpr double VTK_MINIMUM_IMAGE_SCALE = 0.01;
62  static constexpr double VTK_MAXIMUM_IMAGE_SCALE = 2.0;
64 
67  vtkSetClampMacro(ImageScale, double, VTK_MINIMUM_IMAGE_SCALE, VTK_MAXIMUM_IMAGE_SCALE);
68  vtkGetMacro(ImageScale, double);
70 
78  vtkInformation* outInfo) override;
79 
80 protected:
82  ~vtkLogoSourceRepresentation() 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 
109  vtk3DWidgetRepresentation* LogoWidgetRepresentation = nullptr;
110  double Opacity = 1.0;
111  bool InteractiveScaling = true;
112  double ImageScale = 0.075; // Defined by Position2 in vtkLogoRepresentation
113 
114 private:
116  void operator=(const vtkLogoSourceRepresentation&) = delete;
117 };
118 
119 #endif
#define VTKREMOTINGVIEWS_EXPORT
vtkPVDataRepresentation adds some ParaView specific API to data representations.
vtkLogoSourceRepresentation is a representation to show a Logo.
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.
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()
void PrintSelf(ostream &os, vtkIndent indent) override