VTK  9.1.0
vtkTexturedActor2D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTexturedActor2D.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=========================================================================*/
27#ifndef vtkTexturedActor2D_h
28#define vtkTexturedActor2D_h
29
30#include "vtkActor2D.h"
31#include "vtkRenderingCoreModule.h" // For export macro
32
33class vtkProp;
34class vtkTexture;
35class vtkViewport;
36class vtkWindow;
37
38class VTKRENDERINGCORE_EXPORT vtkTexturedActor2D : public vtkActor2D
39{
40public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
51 virtual void SetTexture(vtkTexture* texture);
52 vtkGetObjectMacro(Texture, vtkTexture);
54
61
63
66 int RenderOverlay(vtkViewport* viewport) override;
67 int RenderOpaqueGeometry(vtkViewport* viewport) override;
70
75
79 void ShallowCopy(vtkProp* prop) override;
80
81protected:
84
86
87private:
89 void operator=(const vtkTexturedActor2D&) = delete;
90};
91
92#endif
a actor that draws 2D data
Definition: vtkActor2D.h:149
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:67
handles properties associated with a texture map
Definition: vtkTexture.h:175
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:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287