OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkMesaImageMapper.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkMesaImageMapper.h,v $
5   Language:  C++
6   Date:      $Date: 2002/02/01 06:39:58 $
7   Version:   $Revision: 1.1.1.1 $
8
9 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen 
10 All rights reserved.
11
12 Redistribution and use in source and binary forms, with or without
13 modification, are permitted provided that the following conditions are met:
14
15  * Redistributions of source code must retain the above copyright notice,
16    this list of conditions and the following disclaimer.
17
18  * Redistributions in binary form must reproduce the above copyright notice,
19    this list of conditions and the following disclaimer in the documentation
20    and/or other materials provided with the distribution.
21
22  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
23    of any contributors may be used to endorse or promote products derived
24    from this software without specific prior written permission.
25
26  * Modified source versions must be plainly marked as such, and must not be
27    misrepresented as being the original software.
28
29 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
30 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
33 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
35 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
36 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
37 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40 =========================================================================*/
41 // .NAME vtkMesaImageMapper - 2D image display support for Mesa
42 // .SECTION Description
43 // vtkMesaImageMapper is a concrete subclass of vtkImageMapper that
44 // renders images under Mesa
45
46 // .SECTION See Also
47 // vtkImageMapper
48
49 #ifndef __vtkMesaImageMapper_h
50 #define __vtkMesaImageMapper_h
51
52
53 #include "vtkImageMapper.h"
54 class vtkActor2D;
55
56
57 class VTK_EXPORT vtkMesaImageMapper : public vtkImageMapper
58 {
59 public:
60   static vtkMesaImageMapper *New();
61   vtkTypeMacro(vtkMesaImageMapper,vtkImageMapper);
62   
63   // Description:
64   // Handle the render method.
65   void RenderOpaqueGeometry(vtkViewport* viewport, vtkActor2D* actor) {
66     this->RenderStart(viewport,actor);}
67
68   // Description:
69   // Called by the Render function in vtkImageMapper.  Actually draws
70   // the image to the screen.
71   void RenderData(vtkViewport* viewport, vtkImageData* data, 
72                   vtkActor2D* actor);
73
74 protected:
75   vtkMesaImageMapper();
76   ~vtkMesaImageMapper();
77   vtkMesaImageMapper(const vtkMesaImageMapper&) {};
78   void operator=(const vtkMesaImageMapper&) {};
79
80 };
81
82
83 #endif
84
85
86
87
88
89
90
91
92