VTK  9.3.0
vtkLogoRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
20 #ifndef vtkLogoRepresentation_h
21 #define vtkLogoRepresentation_h
22 
24 #include "vtkInteractionWidgetsModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkImageData;
28 class vtkImageProperty;
29 class vtkTexture;
30 class vtkPolyData;
31 class vtkPoionts;
33 class vtkTexturedActor2D;
34 class vtkProperty2D;
35 
36 class VTKINTERACTIONWIDGETS_EXPORT vtkLogoRepresentation : public vtkBorderRepresentation
37 {
38 public:
43 
45 
49  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  virtual void SetImage(vtkImageData* img);
57  vtkGetObjectMacro(Image, vtkImageData);
59 
61 
64  virtual void SetImageProperty(vtkProperty2D* p);
65  vtkGetObjectMacro(ImageProperty, vtkProperty2D);
67 
71  void BuildRepresentation() override;
72 
74 
78  void GetActors2D(vtkPropCollection* pc) override;
80  int RenderOverlay(vtkViewport*) override;
82 
83 protected:
86 
87  // data members
90 
91  // Represent the image
97 
98  // Helper methods
99  virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2]);
100 
101 private:
103  void operator=(const vtkLogoRepresentation&) = delete;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #endif
represent a vtkBorderWidget
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
image display properties
a simple class to control print indentation
Definition: vtkIndent.h:29
represent the vtkLogoWidget
~vtkLogoRepresentation() override
static vtkLogoRepresentation * New()
Instantiate this class.
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkPolyDataMapper2D * TextureMapper
vtkTexturedActor2D * TextureActor
void BuildRepresentation() override
Satisfy the superclasses' API.
virtual void SetImage(vtkImageData *img)
Specify/retrieve the image to display in the balloon.
virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2])
void GetActors2D(vtkPropCollection *pc) override
These methods are necessary to make this representation behave as a vtkProp.
virtual void SetImageProperty(vtkProperty2D *p)
Set/get the image property (relevant only if an image is shown).
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods.
represent and manipulate 3D points
Definition: vtkPoints.h:29
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:80
an ordered list of Props
represent surface properties of a 2D image
Definition: vtkProperty2D.h:30
handles properties associated with a texture map
Definition: vtkTexture.h:58
actor that draws 2D data with texture support
abstract specification for Viewports
Definition: vtkViewport.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:28