VTK
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 =========================================================================*/
30 #ifndef vtkTexturedActor2D_h
31 #define vtkTexturedActor2D_h
32 
33 #include "vtkRenderingCoreModule.h" // For export macro
34 #include "vtkActor2D.h"
35 
36 class vtkProp;
37 class vtkTexture;
38 class vtkViewport;
39 class vtkWindow;
40 
41 class VTKRENDERINGCORE_EXPORT vtkTexturedActor2D : public vtkActor2D
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
54  virtual void SetTexture(vtkTexture* texture);
55  vtkGetObjectMacro(Texture, vtkTexture);
57 
63  void ReleaseGraphicsResources(vtkWindow* win) override;
64 
66 
69  int RenderOverlay(vtkViewport* viewport) override;
70  int RenderOpaqueGeometry(vtkViewport* viewport) override;
73 
77  vtkMTimeType GetMTime() override;
78 
82  void ShallowCopy(vtkProp* prop) override;
83 
84 protected:
86  ~vtkTexturedActor2D() override;
87 
89 
90 private:
91  vtkTexturedActor2D(const vtkTexturedActor2D&) = delete;
92  void operator=(const vtkTexturedActor2D&) = delete;
93 };
94 
95 #endif
vtkTexturedActor2D::SetTexture
virtual void SetTexture(vtkTexture *texture)
Set/Get the texture object to control rendering texture maps.
vtkTexturedActor2D::New
static vtkTexturedActor2D * New()
vtkTexturedActor2D::vtkTexturedActor2D
vtkTexturedActor2D()
vtkTexturedActor2D
actor that draws 2D data with texture support
Definition: vtkTexturedActor2D.h:42
vtkTexturedActor2D::GetMTime
vtkMTimeType GetMTime() override
Return this object's modified time.
vtkTexturedActor2D::~vtkTexturedActor2D
~vtkTexturedActor2D() override
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkTexture
handles properties associated with a texture map
Definition: vtkTexture.h:72
vtkTexturedActor2D::Texture
vtkTexture * Texture
Definition: vtkTexturedActor2D.h:88
vtkTexturedActor2D::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkTexturedActor2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTexturedActor2D::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkTexturedActor2D::RenderOverlay
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:53
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:46
vtkActor2D.h
vtkTexturedActor2D::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkTexturedActor2D.
vtkTexturedActor2D::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *win) override
Release any graphics resources that are being consumed by this actor.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302