VTK: Rendering/Core/vtkTexturedActor2D.h Source File

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