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 =========================================================================*/
34 #ifndef vtkActor2D_h
35 #define vtkActor2D_h
36 
37 #include "vtkRenderingCoreModule.h" // For export macro
38 #include "vtkProp.h"
39 #include "vtkCoordinate.h" // For vtkViewportCoordinateMacro
40 
41 class vtkMapper2D;
42 class vtkProperty2D;
43 
45 {
46 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48  vtkTypeMacro(vtkActor2D,vtkProp);
49 
52  static vtkActor2D* New();
53 
55 
56  virtual int RenderOverlay(vtkViewport *viewport);
57  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
58  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
60 
62  virtual int HasTranslucentPolygonalGeometry();
63 
65 
66  virtual void SetMapper(vtkMapper2D *mapper);
67  vtkGetObjectMacro(Mapper, vtkMapper2D);
69 
71 
72  vtkSetMacro(LayerNumber, int);
73  vtkGetMacro(LayerNumber, int);
75 
78  vtkProperty2D* GetProperty();
79 
81  virtual void SetProperty(vtkProperty2D*);
82 
84 
87  vtkViewportCoordinateMacro(Position);
89 
91  void SetDisplayPosition(int,int);
92 
94 
98  vtkViewportCoordinateMacro(Position2);
100 
102 
105  void SetWidth(double w);
106  double GetWidth();
107  void SetHeight(double h);
108  double GetHeight();
110 
112  virtual unsigned long GetMTime();
113 
117  virtual void GetActors2D(vtkPropCollection *pc);
118 
121  virtual void ShallowCopy(vtkProp *prop);
122 
126  virtual void ReleaseGraphicsResources(vtkWindow *);
127 
129 
133  { return this->PositionCoordinate; }
135 
137 
141  { return this->Position2Coordinate; }
143 
144 protected:
145  vtkActor2D();
146  ~vtkActor2D();
147 
153 
154 private:
155  vtkActor2D(const vtkActor2D&); // Not implemented.
156  void operator=(const vtkActor2D&); // Not implemented.
157 };
158 
159 #endif
160 
161 
162 
vtkMapper2D * Mapper
Definition: vtkActor2D.h:148
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
void PrintSelf(ostream &os, vtkIndent indent)
virtual vtkCoordinate * GetActualPosition2Coordinate(void)
Definition: vtkActor2D.h:140
virtual void ShallowCopy(vtkProp *prop)
int LayerNumber
Definition: vtkActor2D.h:149
vtkCoordinate * Position2Coordinate
Definition: vtkActor2D.h:152
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:198
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:262
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:204
a actor that draws 2D data
Definition: vtkActor2D.h:44
vtkCoordinate * PositionCoordinate
Definition: vtkActor2D.h:151
a list of Props
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:270
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
vtkProperty2D * Property
Definition: vtkActor2D.h:150
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
Definition: vtkCoordinate.h:69
virtual void GetActors2D(vtkPropCollection *)
Definition: vtkProp.h:63
#define VTKRENDERINGCORE_EXPORT
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:200
represent surface properties of a 2D image
Definition: vtkProperty2D.h:39
static vtkObject * New()
virtual vtkCoordinate * GetActualPositionCoordinate(void)
Definition: vtkActor2D.h:132
abstract class specifies interface for objects which render 2D actors
Definition: vtkMapper2D.h:34