Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkMesaImageActor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMesaImageActor.h,v $
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 =========================================================================*/
00022 #ifndef __vtkMesaImageActor_h
00023 #define __vtkMesaImageActor_h
00024 
00025 #include "vtkImageActor.h"
00026 
00027 class vtkWindow;
00028 class vtkMesaRenderer;
00029 class vtkRenderWindow;
00030 
00031 class VTK_RENDERING_EXPORT vtkMesaImageActor : public vtkImageActor
00032 {
00033 public:
00034   static vtkMesaImageActor *New();
00035   vtkTypeRevisionMacro(vtkMesaImageActor,vtkImageActor);
00036   virtual void PrintSelf(ostream& os, vtkIndent indent);
00037 
00039   void Load(vtkRenderer *ren);
00040   
00042   void Render(vtkRenderer *ren);
00043 
00048   void ReleaseGraphicsResources(vtkWindow *);
00049 
00050 protected:
00051   vtkMesaImageActor();
00052   ~vtkMesaImageActor();
00053 
00054   unsigned char *MakeDataSuitable(int &xsize, int &ysize,
00055                                   int &release, int &reuseTexture);
00056 
00057   vtkTimeStamp   LoadTime;
00058   long          Index;
00059   static   long GlobalIndex;
00060   vtkRenderWindow *RenderWindow;   // RenderWindow used for previous render
00061   double Coords[12];
00062   double TCoords[8];
00063   int TextureSize[2];
00064   
00065   // Non-recursive internal method
00066   void InternalRender(vtkRenderer *ren);
00067   
00068   // Is a certain size texture supported?
00069   int TextureSizeOK( int size[2] );
00070   
00071 private:
00072   vtkMesaImageActor(const vtkMesaImageActor&);  // Not implemented.
00073   void operator=(const vtkMesaImageActor&);  // Not implemented.
00074 };
00075 
00076 #endif

Generated on Mon Jan 21 23:07:35 2008 for VTK by  doxygen 1.4.3-20050530