VTK  9.4.20250201
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
25VTK_ABI_NAMESPACE_BEGIN
26class vtkProp;
27class vtkTexture;
28class vtkViewport;
29class vtkWindow;
30
31class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkTexturedActor2D : public vtkActor2D
32{
33public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
44 virtual void SetTexture(vtkTexture* texture);
45 vtkGetObjectMacro(Texture, vtkTexture);
47
54
56
59 int RenderOverlay(vtkViewport* viewport) override;
60 int RenderOpaqueGeometry(vtkViewport* viewport) override;
63
68
72 void ShallowCopy(vtkProp* prop) override;
73
74protected:
77
79
80private:
82 void operator=(const vtkTexturedActor2D&) = delete;
83};
84
85VTK_ABI_NAMESPACE_END
86#endif
a actor that draws 2D data
Definition vtkActor2D.h:145
a simple class to control print indentation
Definition vtkIndent.h:108
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:66
handles properties associated with a texture map
Definition vtkTexture.h:168
actor that draws 2D data with texture support
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkMTimeType GetMTime() override
Return this object's modified time.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Support the standard render methods.
virtual void SetTexture(vtkTexture *texture)
Set/Get the texture object to control rendering texture maps.
static vtkTexturedActor2D * New()
~vtkTexturedActor2D() override
void ReleaseGraphicsResources(vtkWindow *win) override
Release any graphics resources that are being consumed by this actor.
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkTexturedActor2D.
abstract specification for Viewports
Definition vtkViewport.h:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_MARSHALAUTO