Rendering/vtkOpenGLImageActor.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Rendering/vtkOpenGLImageActor.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkOpenGLImageActor.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00038 #ifndef __vtkOpenGLImageActor_h
    00039 #define __vtkOpenGLImageActor_h
    00040
    00041 #include "vtkImageActor.h"
    00042
    00043 class vtkWindow;
    00044 class vtkOpenGLRenderer;
    00045 class vtkRenderWindow;
    00046
    00047 class VTK_RENDERING_EXPORT vtkOpenGLImageActor : public vtkImageActor
    00048 {
    00049 public:
    00050   static vtkOpenGLImageActor *New();
    00051   vtkTypeRevisionMacro(vtkOpenGLImageActor,vtkImageActor);
    00052   virtual void PrintSelf(ostream& os, vtkIndent indent);
    00053
    00055   void Load(vtkRenderer *ren);
    00056
    00061   void ReleaseGraphicsResources(vtkWindow *);
    00062
    00063 protected:
    00064   vtkOpenGLImageActor();
    00065   ~vtkOpenGLImageActor();
    00066
    00067   unsigned char *MakeDataSuitable(int &xsize, int &ysize, int &release);
    00068
    00069   vtkTimeStamp   LoadTime;
    00070   long          Index;
    00071   vtkRenderWindow *RenderWindow;   // RenderWindow used for previous render
    00072   float Coords[12];
    00073   float TCoords[8];
    00074 private:
    00075   vtkOpenGLImageActor(const vtkOpenGLImageActor&);  // Not implemented.
    00076   void operator=(const vtkOpenGLImageActor&);  // Not implemented.
    00077 };
    00078
    00079 #endif