VTK  9.7.1
vtkTexturedActor2D.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkTexturedActor2D_h
19 #define vtkTexturedActor2D_h
20 
21 #include "vtkActor2D.h"
22 #include "vtkRenderingCoreModule.h" // For export macro
23 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkProp;
27 class vtkTexture;
28 class vtkViewport;
29 class vtkWindow;
30 
31 class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkTexturedActor2D : public vtkActor2D
32 {
33 public:
34  static vtkTexturedActor2D* New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
44  virtual void SetTexture(vtkTexture* texture);
45  vtkGetObjectMacro(Texture, vtkTexture);
47 
53  void ReleaseGraphicsResources(vtkWindow* win) override;
54 
56 
59  int RenderOverlay(vtkViewport* viewport) override;
60  int RenderOpaqueGeometry(vtkViewport* viewport) override;
61  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
63 
67  vtkMTimeType GetMTime() override;
68 
72  void ShallowCopy(vtkProp* prop) override;
73 
74 protected:
76  ~vtkTexturedActor2D() override;
77 
79 
80 private:
81  vtkTexturedActor2D(const vtkTexturedActor2D&) = delete;
82  void operator=(const vtkTexturedActor2D&) = delete;
83 };
84 
85 VTK_ABI_NAMESPACE_END
86 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
actor that draws 2D data with texture support
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:318
abstract specification for Viewports
Definition: vtkViewport.h:46
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkMTimeType GetMTime() override
Return this objects MTime.
a actor that draws 2D data
Definition: vtkActor2D.h:35
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkActor2D.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:41
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkActor2D * New()
Creates an actor2D with the following defaults: position (0,0) (coordinate system is viewport); at la...
handles properties associated with a texture map
Definition: vtkTexture.h:58
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
#define VTK_MARSHALAUTO
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.