VTK
dox
Interaction
Widgets
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
32
#include "vtkInteractionWidgetsModule.h"
// For export macro
33
#include "
vtkBorderRepresentation.h
"
34
35
class
vtkImageData
;
36
class
vtkImageProperty
;
37
class
vtkTexture
;
38
class
vtkPolyData
;
39
class
vtkPoionts;
40
class
vtkPolyDataMapper2D
;
41
class
vtkTexturedActor2D
;
42
class
vtkProperty2D
;
43
44
45
class
VTKINTERACTIONWIDGETS_EXPORT
vtkLogoRepresentation
:
public
vtkBorderRepresentation
46
{
47
public
:
51
static
vtkLogoRepresentation
*
New
();
52
54
57
vtkTypeMacro(
vtkLogoRepresentation
,
vtkBorderRepresentation
);
58
void
PrintSelf
(ostream& os,
vtkIndent
indent) VTK_OVERRIDE;
60
62
65
virtual
void
SetImage(
vtkImageData
*img);
66
vtkGetObjectMacro(Image,
vtkImageData
);
68
70
73
virtual
void
SetImageProperty(
vtkProperty2D
*p);
74
vtkGetObjectMacro(ImageProperty,
vtkProperty2D
);
76
80
void
BuildRepresentation
() VTK_OVERRIDE;
81
83
87
void
GetActors2D(
vtkPropCollection
*pc) VTK_OVERRIDE;
88
void
ReleaseGraphicsResources(
vtkWindow
*) VTK_OVERRIDE;
89
int
RenderOverlay(
vtkViewport
*) VTK_OVERRIDE;
91
92
protected:
93
vtkLogoRepresentation
();
94
~
vtkLogoRepresentation
() VTK_OVERRIDE;
95
96
// data members
97
vtkImageData
*Image;
98
vtkProperty2D
*ImageProperty;
99
100
// Represent the image
101
vtkTexture
*Texture;
102
vtkPoints
*TexturePoints;
103
vtkPolyData
*TexturePolyData;
104
vtkPolyDataMapper2D
*TextureMapper;
105
vtkTexturedActor2D
*TextureActor;
106
107
// Helper methods
108
virtual
void
AdjustImageSize(
double
o[2],
double
borderSize[2],
double
imageSize[2]);
109
110
private:
111
vtkLogoRepresentation
(const
vtkLogoRepresentation
&) VTK_DELETE_FUNCTION;
112
void
operator=(const
vtkLogoRepresentation
&) VTK_DELETE_FUNCTION;
113
};
114
115
#endif
vtkTexturedActor2D
actor that draws 2D data with texture support
Definition:
vtkTexturedActor2D.h:38
vtkViewport
abstract specification for Viewports
Definition:
vtkViewport.h:44
vtkImageProperty
image display properties
Definition:
vtkImageProperty.h:36
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition:
vtkPolyData.h:79
vtkBorderRepresentation::New
static vtkBorderRepresentation * New()
Instantiate this class.
vtkPropCollection
an ordered list of Props
Definition:
vtkPropCollection.h:35
vtkBorderRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Define standard methods.
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:34
vtkBorderRepresentation::BuildRepresentation
void BuildRepresentation() override
Subclasses should implement these methods.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:39
vtkTexture
handles properties associated with a texture map
Definition:
vtkTexture.h:64
vtkBorderRepresentation
represent a vtkBorderWidget
Definition:
vtkBorderRepresentation.h:55
vtkBorderRepresentation.h
vtkLogoRepresentation
represent the vtkLogoWidget
Definition:
vtkLogoRepresentation.h:45
vtkProperty2D
represent surface properties of a 2D image
Definition:
vtkProperty2D.h:37
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition:
vtkPolyDataMapper2D.h:45
vtkPoints
represent and manipulate 3D points
Definition:
vtkPoints.h:33
Generated by
1.8.14