VTK  9.2.6
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=========================================================================*/
144#ifndef vtkActor2D_h
145#define vtkActor2D_h
146
147#include "vtkCoordinate.h" // For vtkViewportCoordinateMacro
148#include "vtkProp.h"
149#include "vtkRenderingCoreModule.h" // For export macro
150
151class vtkMapper2D;
152class vtkProperty2D;
153
154class VTKRENDERINGCORE_EXPORT vtkActor2D : public vtkProp
155{
156public:
157 void PrintSelf(ostream& os, vtkIndent indent) override;
158 vtkTypeMacro(vtkActor2D, vtkProp);
159
165 static vtkActor2D* New();
166
168
171 int RenderOverlay(vtkViewport* viewport) override;
172 int RenderOpaqueGeometry(vtkViewport* viewport) override;
175
180
182
185 virtual void SetMapper(vtkMapper2D* mapper);
186 vtkGetObjectMacro(Mapper, vtkMapper2D);
188
190
193 vtkSetMacro(LayerNumber, int);
194 vtkGetMacro(LayerNumber, int);
196
202
207
209
214 vtkViewportCoordinateMacro(Position);
216
220 void SetDisplayPosition(int, int);
221
223
229 vtkViewportCoordinateMacro(Position2);
231
233
238 void SetWidth(double w);
239 double GetWidth();
240 void SetHeight(double h);
241 double GetHeight();
243
248
254 void GetActors2D(vtkPropCollection* pc) override;
255
259 void ShallowCopy(vtkProp* prop) override;
260
267
273 virtual vtkCoordinate* GetActualPositionCoordinate(void) { return this->PositionCoordinate; }
274
280 virtual vtkCoordinate* GetActualPosition2Coordinate(void) { return this->Position2Coordinate; }
281
282protected:
284 ~vtkActor2D() override;
285
291
292private:
293 vtkActor2D(const vtkActor2D&) = delete;
294 void operator=(const vtkActor2D&) = delete;
295};
296
297#endif
a actor that draws 2D data
Definition: vtkActor2D.h:155
virtual vtkCoordinate * GetActualPosition2Coordinate(void)
Return the actual vtkCoordinate reference that the mapper should use to position the actor.
Definition: vtkActor2D.h:280
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkCoordinate * PositionCoordinate
Definition: vtkActor2D.h:289
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkMTimeType GetMTime() override
Return this objects MTime.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkProperty2D * Property
Definition: vtkActor2D.h:288
int LayerNumber
Definition: vtkActor2D.h:287
~vtkActor2D() override
double GetHeight()
Set/Get the height and width of the Actor2D.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
virtual vtkCoordinate * GetActualPositionCoordinate(void)
Return the actual vtkCoordinate reference that the mapper should use to position the actor.
Definition: vtkActor2D.h:273
void SetWidth(double w)
Set/Get the height and width of the Actor2D.
vtkMapper2D * Mapper
Definition: vtkActor2D.h:286
vtkProperty2D * GetProperty()
Returns this actor's vtkProperty2D.
virtual void SetProperty(vtkProperty2D *)
Set this vtkProp's vtkProperty2D.
vtkCoordinate * Position2Coordinate
Definition: vtkActor2D.h:290
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
void SetHeight(double h)
Set/Get the height and width of the Actor2D.
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkActor2D.
void GetActors2D(vtkPropCollection *pc) override
For some exporters and other other operations we must be able to collect all the actors or volumes.
double GetWidth()
Set/Get the height and width of the Actor2D.
virtual void SetMapper(vtkMapper2D *mapper)
Set/Get the vtkMapper2D which defines the data to be drawn.
static vtkActor2D * New()
Creates an actor2D with the following defaults: position (0,0) (coordinate system is viewport); at la...
void SetDisplayPosition(int, int)
Set the Prop2D's position in display coordinates.
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
a simple class to control print indentation
Definition: vtkIndent.h:119
abstract class specifies interface for objects which render 2D actors
Definition: vtkMapper2D.h:36
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:73
represent surface properties of a 2D image
Computes the portion of a dataset which is inside a selection.
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287