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 =========================================================================*/
48 #ifndef vtkLogoRepresentation_h
49 #define vtkLogoRepresentation_h
50 
52 #include "vtkInteractionWidgetsModule.h" // For export macro
53 
54 class vtkImageData;
55 class vtkImageProperty;
56 class vtkTexture;
57 class vtkPolyData;
58 class vtkPoionts;
60 class vtkTexturedActor2D;
61 class vtkProperty2D;
62 
63 class VTKINTERACTIONWIDGETS_EXPORT vtkLogoRepresentation : public vtkBorderRepresentation
64 {
65 public:
70 
72 
76  void PrintSelf(ostream& os, vtkIndent indent) override;
78 
80 
83  virtual void SetImage(vtkImageData* img);
84  vtkGetObjectMacro(Image, vtkImageData);
86 
88 
91  virtual void SetImageProperty(vtkProperty2D* p);
92  vtkGetObjectMacro(ImageProperty, vtkProperty2D);
94 
98  void BuildRepresentation() override;
99 
101 
105  void GetActors2D(vtkPropCollection* pc) override;
107  int RenderOverlay(vtkViewport*) override;
109 
110 protected:
113 
114  // data members
117 
118  // Represent the image
124 
125  // Helper methods
126  virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2]);
127 
128 private:
130  void operator=(const vtkLogoRepresentation&) = delete;
131 };
132 
133 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:143
vtkLogoRepresentation::New
static vtkLogoRepresentation * New()
Instantiate this class.
vtkLogoRepresentation::GetActors2D
void GetActors2D(vtkPropCollection *pc) override
These methods are necessary to make this representation behave as a vtkProp.
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:154
vtkLogoRepresentation
represent the vtkLogoWidget
Definition: vtkLogoRepresentation.h:64
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:107
vtkTexturedActor2D
actor that draws 2D data with texture support
Definition: vtkTexturedActor2D.h:39
vtkLogoRepresentation::vtkLogoRepresentation
vtkLogoRepresentation()
vtkLogoRepresentation::AdjustImageSize
virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2])
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
vtkLogoRepresentation::ImageProperty
vtkProperty2D * ImageProperty
Definition: vtkLogoRepresentation.h:116
vtkTexture
handles properties associated with a texture map
Definition: vtkTexture.h:175
vtkLogoRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods.
vtkImageProperty
image display properties
Definition: vtkImageProperty.h:146
vtkBorderRepresentation.h
vtkLogoRepresentation::SetImage
virtual void SetImage(vtkImageData *img)
Specify/retrieve the image to display in the balloon.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkLogoRepresentation::TexturePoints
vtkPoints * TexturePoints
Definition: vtkLogoRepresentation.h:120
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkLogoRepresentation::Texture
vtkTexture * Texture
Definition: vtkLogoRepresentation.h:119
vtkLogoRepresentation::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:147
vtkLogoRepresentation::~vtkLogoRepresentation
~vtkLogoRepresentation() override
vtkLogoRepresentation::Image
vtkImageData * Image
Definition: vtkLogoRepresentation.h:115
vtkLogoRepresentation::BuildRepresentation
void BuildRepresentation() override
Satisfy the superclasses' API.
vtkLogoRepresentation::TextureActor
vtkTexturedActor2D * TextureActor
Definition: vtkLogoRepresentation.h:123
vtkLogoRepresentation::TexturePolyData
vtkPolyData * TexturePolyData
Definition: vtkLogoRepresentation.h:121
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
vtkLogoRepresentation::RenderOverlay
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:85
vtkLogoRepresentation::SetImageProperty
virtual void SetImageProperty(vtkProperty2D *p)
Set/get the image property (relevant only if an image is shown).
vtkLogoRepresentation::TextureMapper
vtkPolyDataMapper2D * TextureMapper
Definition: vtkLogoRepresentation.h:122