VTK  9.3.20240425
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
39#ifndef vtkLogoRepresentation_h
40#define vtkLogoRepresentation_h
41
43#include "vtkInteractionWidgetsModule.h" // For export macro
44
45VTK_ABI_NAMESPACE_BEGIN
46class vtkImageData;
48class vtkTexture;
49class vtkPolyData;
50class vtkPoionts;
53class vtkProperty2D;
54
55class VTKINTERACTIONWIDGETS_EXPORT vtkLogoRepresentation : public vtkBorderRepresentation
56{
57public:
62
64
68 void PrintSelf(ostream& os, vtkIndent indent) override;
70
72
75 virtual void SetImage(vtkImageData* img);
76 vtkGetObjectMacro(Image, vtkImageData);
78
80
84 vtkGetObjectMacro(ImageProperty, vtkProperty2D);
86
90 void BuildRepresentation() override;
91
93
97 void GetActors2D(vtkPropCollection* pc) override;
99 int RenderOverlay(vtkViewport*) override;
101
102protected:
105
106 // data members
109
110 // Represent the image
116
117 // Helper methods
118 virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2]);
119
120private:
122 void operator=(const vtkLogoRepresentation&) = delete;
123};
124
125VTK_ABI_NAMESPACE_END
126#endif
represent a vtkBorderWidget
topologically and geometrically regular array of data
image display properties
a simple class to control print indentation
Definition vtkIndent.h:108
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:139
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
an ordered list of Props
represent surface properties of a 2D image
handles properties associated with a texture map
Definition vtkTexture.h:167
actor that draws 2D data with texture support
abstract specification for Viewports
Definition vtkViewport.h:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48