VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTexturedActor2D.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00029 #ifndef vtkTexturedActor2D_h 00030 #define vtkTexturedActor2D_h 00031 00032 #include "vtkRenderingCoreModule.h" // For export macro 00033 #include "vtkActor2D.h" 00034 00035 class vtkProp; 00036 class vtkTexture; 00037 class vtkViewport; 00038 class vtkWindow; 00039 00040 class VTKRENDERINGCORE_EXPORT vtkTexturedActor2D : public vtkActor2D 00041 { 00042 public: 00043 static vtkTexturedActor2D* New(); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00045 vtkTypeMacro(vtkTexturedActor2D, vtkActor2D); 00046 00048 00051 virtual void SetTexture(vtkTexture* texture); 00052 vtkGetObjectMacro(Texture, vtkTexture); 00054 00058 virtual void ReleaseGraphicsResources(vtkWindow* win); 00059 00061 00062 virtual int RenderOverlay(vtkViewport* viewport); 00063 virtual int RenderOpaqueGeometry(vtkViewport* viewport); 00064 virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport); 00066 00068 virtual unsigned long int GetMTime(); 00069 00071 virtual void ShallowCopy(vtkProp* prop); 00072 00073 protected: 00074 vtkTexturedActor2D(); 00075 ~vtkTexturedActor2D(); 00076 00077 vtkTexture* Texture; 00078 00079 private: 00080 vtkTexturedActor2D(const vtkTexturedActor2D&); // Not implemented. 00081 void operator=(const vtkTexturedActor2D&); // Not implemented. 00082 }; 00083 00084 #endif