vtkChartLogoRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkChartLogoRepresentation_h
14 #define vtkChartLogoRepresentation_h
15 
16 #include "vtkNew.h" // for vtkNew
18 
19 class vtkImageItem;
20 
22 {
23 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
29  enum
30  {
31  AnyLocation = 0,
37  UpperCenter
38  };
39  vtkSetClampMacro(LogoLocation, int, AnyLocation, UpperCenter);
41 
43 
46  vtkGetVector2Macro(Position, double);
47  vtkSetVector2Macro(Position, double);
49 
51  // Superclass overrides
52  void SetVisibility(bool val) override;
54  vtkInformation* outInfo) override;
56 
57 protected:
59  ~vtkChartLogoRepresentation() override;
60 
64  int FillInputPortInformation(int port, vtkInformation* info) override;
65 
70 
76  bool AddToView(vtkView* view) override;
77 
83  bool RemoveFromView(vtkView* view) override;
84 
85 private:
87  void operator=(const vtkChartLogoRepresentation&) = delete;
88 
89  void OnInteractionEvent();
90 
91  vtkNew<vtkImageItem> ImageItem;
92  vtkNew<vtkImageData> PreparedData;
93  double Position[2] = { 0.05, 0.05 };
94  int LogoLocation = AnyLocation;
95 };
96 
97 #endif
#define VTKREMOTINGVIEWS_EXPORT
vtkPVDataRepresentation adds some ParaView specific API to data representations.
representation to add logo to vtkPVContextView
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.
bool RemoveFromView(vtkView *view) override
Making these methods public.
static vtkDataRepresentation * New()
void PrintSelf(ostream &os, vtkIndent indent) override