VTK  9.2.6
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 =========================================================================*/
32 #ifndef vtkLogoRepresentation_h
33 #define vtkLogoRepresentation_h
34 
36 #include "vtkInteractionWidgetsModule.h" // For export macro
37 
38 class vtkImageData;
39 class vtkImageProperty;
40 class vtkTexture;
41 class vtkPolyData;
42 class vtkPoionts;
44 class vtkTexturedActor2D;
45 class vtkProperty2D;
46 
47 class VTKINTERACTIONWIDGETS_EXPORT vtkLogoRepresentation : public vtkBorderRepresentation
48 {
49 public:
53  static vtkLogoRepresentation* New();
54 
56 
60  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
67  virtual void SetImage(vtkImageData* img);
68  vtkGetObjectMacro(Image, vtkImageData);
70 
72 
75  virtual void SetImageProperty(vtkProperty2D* p);
76  vtkGetObjectMacro(ImageProperty, vtkProperty2D);
78 
82  void BuildRepresentation() override;
83 
85 
89  void GetActors2D(vtkPropCollection* pc) override;
90  void ReleaseGraphicsResources(vtkWindow*) override;
91  int RenderOverlay(vtkViewport*) override;
93 
94 protected:
96  ~vtkLogoRepresentation() override;
97 
98  // data members
101 
102  // Represent the image
108 
109  // Helper methods
110  virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2]);
111 
112 private:
114  void operator=(const vtkLogoRepresentation&) = delete;
115 };
116 
117 #endif
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
actor that draws 2D data with texture support
abstract specification for Viewports
Definition: vtkViewport.h:55
image display properties
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
static vtkBorderRepresentation * New()
Instantiate this class.
an ordered list of Props
void PrintSelf(ostream &os, vtkIndent indent) override
Define standard methods.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
void BuildRepresentation() override
Subclasses should implement these methods.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPolyDataMapper2D * TextureMapper
vtkTexturedActor2D * TextureActor
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
handles properties associated with a texture map
Definition: vtkTexture.h:68
represent a vtkBorderWidget
represent the vtkLogoWidget
represent surface properties of a 2D image
Definition: vtkProperty2D.h:40
draw vtkPolyData onto the image plane
represent and manipulate 3D points
Definition: vtkPoints.h:39