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:
44  static vtkTexturedActor2D* New();
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47 
49 
54  virtual void SetTexture(vtkTexture* texture);
55  vtkGetObjectMacro(Texture, vtkTexture);
57 
63  virtual void ReleaseGraphicsResources(vtkWindow* win) VTK_OVERRIDE;
64 
66 
69  virtual int RenderOverlay(vtkViewport* viewport) VTK_OVERRIDE;
70  virtual int RenderOpaqueGeometry(vtkViewport* viewport) VTK_OVERRIDE;
71  virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) VTK_OVERRIDE;
73 
77  virtual vtkMTimeType GetMTime() VTK_OVERRIDE;
78 
82  virtual void ShallowCopy(vtkProp* prop) VTK_OVERRIDE;
83 
84 protected:
86  ~vtkTexturedActor2D();
87 
88  vtkTexture* Texture;
89 
90 private:
91  vtkTexturedActor2D(const vtkTexturedActor2D&) VTK_DELETE_FUNCTION;
92  void operator=(const vtkTexturedActor2D&) VTK_DELETE_FUNCTION;
93 };
94 
95 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
actor that draws 2D data with texture support
abstract specification for Viewports
Definition: vtkViewport.h:47
a actor that draws 2D data
Definition: vtkActor2D.h:45
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
virtual vtkMTimeType GetMTime() override
Return this objects MTime.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Support the standard render methods.
a simple class to control print indentation
Definition: vtkIndent.h:39
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:70
virtual void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
virtual int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
virtual int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.