VTK  9.1.0
vtkLogoRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLogoRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkLogoRepresentation_h
30 #define vtkLogoRepresentation_h
31 
33 #include "vtkInteractionWidgetsModule.h" // For export macro
34 
35 class vtkImageData;
36 class vtkImageProperty;
37 class vtkTexture;
38 class vtkPolyData;
39 class vtkPoionts;
41 class vtkTexturedActor2D;
42 class vtkProperty2D;
43 
44 class VTKINTERACTIONWIDGETS_EXPORT vtkLogoRepresentation : public vtkBorderRepresentation
45 {
46 public:
51 
53 
57  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
61 
64  virtual void SetImage(vtkImageData* img);
65  vtkGetObjectMacro(Image, vtkImageData);
67 
69 
72  virtual void SetImageProperty(vtkProperty2D* p);
73  vtkGetObjectMacro(ImageProperty, vtkProperty2D);
75 
79  void BuildRepresentation() override;
80 
82 
86  void GetActors2D(vtkPropCollection* pc) override;
88  int RenderOverlay(vtkViewport*) override;
90 
91 protected:
94 
95  // data members
98 
99  // Represent the image
105 
106  // Helper methods
107  virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2]);
108 
109 private:
111  void operator=(const vtkLogoRepresentation&) = delete;
112 };
113 
114 #endif
represent a vtkBorderWidget
topologically and geometrically regular array of data
Definition: vtkImageData.h:48
image display properties
a simple class to control print indentation
Definition: vtkIndent.h:34
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:34
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
an ordered list of Props
represent surface properties of a 2D image
Definition: vtkProperty2D.h:38
handles properties associated with a texture map
Definition: vtkTexture.h:66
actor that draws 2D data with texture support
abstract specification for Viewports
Definition: vtkViewport.h:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39