VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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
=========================================================================*/
31
#ifndef __vtkLogoRepresentation_h
32
#define __vtkLogoRepresentation_h
33
34
#include "
vtkBorderRepresentation.h
"
35
36
class
vtkImageData
;
37
class
vtkImageProperty;
38
class
vtkTexture
;
39
class
vtkPolyData
;
40
class
vtkPoionts;
41
class
vtkPolyDataMapper2D
;
42
class
vtkActor2D
;
43
class
vtkProperty2D
;
44
45
46
class
VTK_WIDGETS_EXPORT
vtkLogoRepresentation
:
public
vtkBorderRepresentation
47
{
48
public
:
50
static
vtkLogoRepresentation
*
New
();
51
53
54
vtkTypeMacro(
vtkLogoRepresentation
,
vtkBorderRepresentation
);
55
void
PrintSelf
(ostream& os,
vtkIndent
indent);
57
59
60
virtual
void
SetImage(
vtkImageData
*img);
61
vtkGetObjectMacro(Image,
vtkImageData
);
63
65
66
virtual
void
SetImageProperty(
vtkProperty2D
*p);
67
vtkGetObjectMacro(ImageProperty,
vtkProperty2D
);
69
71
virtual
void
BuildRepresentation
();
72
74
76
virtual
void
GetActors2D
(
vtkPropCollection
*pc);
77
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*);
78
virtual
int
RenderOverlay
(
vtkViewport
*);
80
81
protected
:
82
vtkLogoRepresentation
();
83
~
vtkLogoRepresentation
();
84
85
// data members
86
vtkImageData
*
Image
;
87
vtkProperty2D
*
ImageProperty
;
88
89
// Represent the image
90
vtkTexture
*
Texture
;
91
vtkPoints
*
TexturePoints
;
92
vtkPolyData
*
TexturePolyData
;
93
vtkPolyDataMapper2D
*
TextureMapper
;
94
vtkActor2D
*
TextureActor
;
95
96
// Helper methods
97
void
AdjustImageSize(
double
o[2],
double
borderSize[2],
double
imageSize[2]);
98
99
private
:
100
vtkLogoRepresentation
(
const
vtkLogoRepresentation
&);
//Not implemented
101
void
operator=(
const
vtkLogoRepresentation
&);
//Not implemented
102
};
103
104
#endif
Generated on Sun Sep 9 2012 13:03:50 for VTK by
1.8.1.2