VTK
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=========================================================================*/
35#ifndef vtkActor2D_h
36#define vtkActor2D_h
37
38#include "vtkRenderingCoreModule.h" // For export macro
39#include "vtkProp.h"
40#include "vtkCoordinate.h" // For vtkViewportCoordinateMacro
41
42class vtkMapper2D;
43class vtkProperty2D;
44
45class VTKRENDERINGCORE_EXPORT vtkActor2D : public vtkProp
46{
47public:
48 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 vtkTypeMacro(vtkActor2D,vtkProp);
50
56 static vtkActor2D* New();
57
59
62 virtual int RenderOverlay(vtkViewport *viewport) VTK_OVERRIDE;
63 virtual int RenderOpaqueGeometry(vtkViewport *viewport) VTK_OVERRIDE;
64 virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) VTK_OVERRIDE;
66
70 virtual int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
71
73
76 virtual void SetMapper(vtkMapper2D *mapper);
77 vtkGetObjectMacro(Mapper, vtkMapper2D);
79
81
84 vtkSetMacro(LayerNumber, int);
85 vtkGetMacro(LayerNumber, int);
87
92 vtkProperty2D* GetProperty();
93
97 virtual void SetProperty(vtkProperty2D*);
98
100
105 vtkViewportCoordinateMacro(Position);
107
111 void SetDisplayPosition(int,int);
112
114
120 vtkViewportCoordinateMacro(Position2);
122
124
129 void SetWidth(double w);
130 double GetWidth();
131 void SetHeight(double h);
132 double GetHeight();
134
138 virtual vtkMTimeType GetMTime() VTK_OVERRIDE;
139
145 virtual void GetActors2D(vtkPropCollection *pc) VTK_OVERRIDE;
146
150 virtual void ShallowCopy(vtkProp *prop) VTK_OVERRIDE;
151
157 virtual void ReleaseGraphicsResources(vtkWindow *) VTK_OVERRIDE;
158
164 virtual vtkCoordinate *GetActualPositionCoordinate(void)
165 { return this->PositionCoordinate; }
166
173 { return this->Position2Coordinate; }
174
175protected:
178
184
185private:
186 vtkActor2D(const vtkActor2D&) VTK_DELETE_FUNCTION;
187 void operator=(const vtkActor2D&) VTK_DELETE_FUNCTION;
188};
189
190#endif
191
192
193
a actor that draws 2D data
Definition: vtkActor2D.h:46
virtual vtkCoordinate * GetActualPosition2Coordinate(void)
Return the actual vtkCoordinate reference that the mapper should use to position the actor.
Definition: vtkActor2D.h:172
vtkCoordinate * PositionCoordinate
Definition: vtkActor2D.h:182
virtual int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkProperty2D * Property
Definition: vtkActor2D.h:181
int LayerNumber
Definition: vtkActor2D.h:180
virtual int HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
vtkMapper2D * Mapper
Definition: vtkActor2D.h:179
vtkCoordinate * Position2Coordinate
Definition: vtkActor2D.h:183
virtual int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
static vtkActor2D * New()
Creates an actor2D with the following defaults: position (0,0) (coordinate system is viewport); at la...
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:71
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract class specifies interface for objects which render 2D actors
Definition: vtkMapper2D.h:36
a list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248