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
29#ifndef vtkLogoRepresentation_h
30#define vtkLogoRepresentation_h
31
33#include "vtkInteractionWidgetsModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkImageData;
38class vtkTexture;
39class vtkPolyData;
40class vtkPoionts;
43class vtkProperty2D;
44
45class VTKINTERACTIONWIDGETS_EXPORT vtkLogoRepresentation : public vtkBorderRepresentation
46{
47public:
52
54
58 void PrintSelf(ostream& os, vtkIndent indent) override;
60
62
65 virtual void SetImage(vtkImageData* img);
66 vtkGetObjectMacro(Image, vtkImageData);
68
70
74 vtkGetObjectMacro(ImageProperty, vtkProperty2D);
76
80 void BuildRepresentation() override;
81
83
87 void GetActors2D(vtkPropCollection* pc) override;
89 int RenderOverlay(vtkViewport*) override;
91
92protected:
95
96 // data members
99
100 // Represent the image
106
107 // Helper methods
108 virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2]);
109
110private:
112 void operator=(const vtkLogoRepresentation&) = delete;
113};
114
115VTK_ABI_NAMESPACE_END
116#endif
represent a vtkBorderWidget
topologically and geometrically regular array of data
image display properties
a simple class to control print indentation
Definition vtkIndent.h:38
represent the vtkLogoWidget
~vtkLogoRepresentation() override
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.
static vtkLogoRepresentation * New()
Instantiate this class.
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:38
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:89
an ordered list of Props
represent surface properties of a 2D image
handles properties associated with a texture map
Definition vtkTexture.h:67
actor that draws 2D data with texture support
abstract specification for Viewports
Definition vtkViewport.h:54
window superclass for vtkRenderWindow
Definition vtkWindow.h:34