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 =========================================================================*/
27 #ifndef vtkTexturedActor2D_h
28 #define vtkTexturedActor2D_h
29 
30 #include "vtkActor2D.h"
31 #include "vtkRenderingCoreModule.h" // For export macro
32 
33 class vtkProp;
34 class vtkTexture;
35 class vtkViewport;
36 class vtkWindow;
37 
38 class VTKRENDERINGCORE_EXPORT vtkTexturedActor2D : public vtkActor2D
39 {
40 public:
41  static vtkTexturedActor2D* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
51  virtual void SetTexture(vtkTexture* texture);
52  vtkGetObjectMacro(Texture, vtkTexture);
54 
60  void ReleaseGraphicsResources(vtkWindow* win) override;
61 
63 
66  int RenderOverlay(vtkViewport* viewport) override;
67  int RenderOpaqueGeometry(vtkViewport* viewport) override;
68  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
70 
74  vtkMTimeType GetMTime() override;
75 
79  void ShallowCopy(vtkProp* prop) override;
80 
81 protected:
83  ~vtkTexturedActor2D() override;
84 
86 
87 private:
88  vtkTexturedActor2D(const vtkTexturedActor2D&) = delete;
89  void operator=(const vtkTexturedActor2D&) = delete;
90 };
91 
92 #endif
vtkActor2D::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkActor2D::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
vtkTexturedActor2D
actor that draws 2D data with texture support
Definition: vtkTexturedActor2D.h:38
vtkActor2D::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkActor2D.
vtkActor2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkActor2D::GetMTime
vtkMTimeType GetMTime() override
Return this objects MTime.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkActor2D::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkTexture
handles properties associated with a texture map
Definition: vtkTexture.h:65
vtkTexturedActor2D::Texture
vtkTexture * Texture
Definition: vtkTexturedActor2D.h:85
vtkActor2D::RenderOverlay
int RenderOverlay(vtkViewport *viewport) override
Support the standard render methods.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:47
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:39
vtkActor2D.h
vtkActor2D::New
static vtkActor2D * New()
Creates an actor2D with the following defaults: position (0,0) (coordinate system is viewport); at la...
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:298