VTK
9.0.1
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 "
vtkBorderRepresentation.h
"
33
#include "vtkInteractionWidgetsModule.h"
// For export macro
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
class
VTKINTERACTIONWIDGETS_EXPORT
vtkLogoRepresentation
:
public
vtkBorderRepresentation
45
{
46
public
:
50
static
vtkLogoRepresentation
*
New
();
51
53
56
vtkTypeMacro(
vtkLogoRepresentation
,
vtkBorderRepresentation
);
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
;
87
void
ReleaseGraphicsResources
(
vtkWindow
*)
override
;
88
int
RenderOverlay
(
vtkViewport
*)
override
;
90
91
protected
:
92
vtkLogoRepresentation
();
93
~
vtkLogoRepresentation
()
override
;
94
95
// data members
96
vtkImageData
*
Image
;
97
vtkProperty2D
*
ImageProperty
;
98
99
// Represent the image
100
vtkTexture
*
Texture
;
101
vtkPoints
*
TexturePoints
;
102
vtkPolyData
*
TexturePolyData
;
103
vtkPolyDataMapper2D
*
TextureMapper
;
104
vtkTexturedActor2D
*
TextureActor
;
105
106
// Helper methods
107
virtual
void
AdjustImageSize(
double
o[2],
double
borderSize[2],
double
imageSize[2]);
108
109
private
:
110
vtkLogoRepresentation
(
const
vtkLogoRepresentation
&) =
delete
;
111
void
operator=(
const
vtkLogoRepresentation
&) =
delete
;
112
};
113
114
#endif
vtkPoints
represent and manipulate 3D points
Definition:
vtkPoints.h:33
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition:
vtkPolyDataMapper2D.h:44
vtkLogoRepresentation
represent the vtkLogoWidget
Definition:
vtkLogoRepresentation.h:44
vtkBorderRepresentation
represent a vtkBorderWidget
Definition:
vtkBorderRepresentation.h:54
vtkTexturedActor2D
actor that draws 2D data with texture support
Definition:
vtkTexturedActor2D.h:38
vtkBorderRepresentation::New
static vtkBorderRepresentation * New()
Instantiate this class.
vtkBorderRepresentation::BuildRepresentation
void BuildRepresentation() override
Subclasses should implement these methods.
vtkBorderRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:37
vtkLogoRepresentation::ImageProperty
vtkProperty2D * ImageProperty
Definition:
vtkLogoRepresentation.h:97
vtkBorderRepresentation::GetActors2D
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkTexture
handles properties associated with a texture map
Definition:
vtkTexture.h:65
vtkImageProperty
image display properties
Definition:
vtkImageProperty.h:36
vtkBorderRepresentation.h
vtkBorderRepresentation::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:41
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkLogoRepresentation::TexturePoints
vtkPoints * TexturePoints
Definition:
vtkLogoRepresentation.h:101
vtkViewport
abstract specification for Viewports
Definition:
vtkViewport.h:44
vtkLogoRepresentation::Texture
vtkTexture * Texture
Definition:
vtkLogoRepresentation.h:100
vtkProperty2D
represent surface properties of a 2D image
Definition:
vtkProperty2D.h:37
vtkLogoRepresentation::Image
vtkImageData * Image
Definition:
vtkLogoRepresentation.h:96
vtkLogoRepresentation::TextureActor
vtkTexturedActor2D * TextureActor
Definition:
vtkLogoRepresentation.h:104
vtkLogoRepresentation::TexturePolyData
vtkPolyData * TexturePolyData
Definition:
vtkLogoRepresentation.h:102
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition:
vtkPolyData.h:84
vtkBorderRepresentation::RenderOverlay
int RenderOverlay(vtkViewport *) override
vtkPropCollection
an ordered list of Props
Definition:
vtkPropCollection.h:35
vtkLogoRepresentation::TextureMapper
vtkPolyDataMapper2D * TextureMapper
Definition:
vtkLogoRepresentation.h:103
Generated on Thu Jun 25 2020 08:30:48 for VTK by
1.8.17