VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkActor2D.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkActor2D.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
=========================================================================*/
34
#ifndef __vtkActor2D_h
35
#define __vtkActor2D_h
36
37
#include "
vtkProp.h
"
38
#include "
vtkCoordinate.h
"
// For vtkViewportCoordinateMacro
39
40
class
vtkMapper2D
;
41
class
vtkProperty2D
;
42
43
class
VTK_FILTERING_EXPORT
vtkActor2D
:
public
vtkProp
44
{
45
public
:
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
47
vtkTypeMacro(
vtkActor2D
,
vtkProp
);
48
51
static
vtkActor2D
*
New
();
52
54
55
virtual
int
RenderOverlay
(
vtkViewport
*viewport);
56
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*viewport);
57
virtual
int
RenderTranslucentPolygonalGeometry
(
vtkViewport
*viewport);
59
61
virtual
int
HasTranslucentPolygonalGeometry
();
62
64
65
virtual
void
SetMapper(
vtkMapper2D
*mapper);
66
vtkGetObjectMacro(Mapper,
vtkMapper2D
);
68
70
71
vtkSetMacro(LayerNumber,
int
);
72
vtkGetMacro(LayerNumber,
int
);
74
77
vtkProperty2D
* GetProperty();
78
80
virtual
void
SetProperty(
vtkProperty2D
*);
81
83
86
vtkViewportCoordinateMacro(Position);
88
90
void
SetDisplayPosition(
int
,
int
);
91
93
97
vtkViewportCoordinateMacro(Position2);
99
101
104
void
SetWidth(
double
w);
105
double
GetWidth();
106
void
SetHeight(
double
h);
107
double
GetHeight();
109
111
virtual
unsigned
long
GetMTime
();
112
116
virtual
void
GetActors2D
(
vtkPropCollection
*pc);
117
120
virtual
void
ShallowCopy
(
vtkProp
*prop);
121
125
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*);
126
128
131
virtual
vtkCoordinate
*
GetActualPositionCoordinate
(
void
)
132
{
return
this->PositionCoordinate; }
134
136
139
virtual
vtkCoordinate
*
GetActualPosition2Coordinate
(
void
)
140
{
return
this->Position2Coordinate; }
142
143
protected
:
144
vtkActor2D
();
145
~
vtkActor2D
();
146
147
vtkMapper2D
*
Mapper
;
148
int
LayerNumber
;
149
vtkProperty2D
*
Property
;
150
vtkCoordinate
*
PositionCoordinate
;
151
vtkCoordinate
*
Position2Coordinate
;
152
153
private
:
154
vtkActor2D
(
const
vtkActor2D
&);
// Not implemented.
155
void
operator=(
const
vtkActor2D
&);
// Not implemented.
156
};
157
158
#endif
159
160
161
Generated on Sun Sep 15 2013 03:44:21 for VTK by
1.8.4