VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
VolumeRendering
vtkOpenGLProjectedTetrahedraMapper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOpenGLProjectedTetrahedraMapper.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
=========================================================================*/
15
16
/*
17
* Copyright 2003 Sandia Corporation.
18
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19
* license for use of this work by or on behalf of the
20
* U.S. Government. Redistribution and use in source and binary forms, with
21
* or without modification, are permitted provided that this Notice and any
22
* statement of authorship are reproduced on all copies.
23
*/
24
35
#ifndef __vtkOpenGLProjectedTetrahedraMapper_h
36
#define __vtkOpenGLProjectedTetrahedraMapper_h
37
38
#include "
vtkProjectedTetrahedraMapper.h
"
39
40
class
vtkVisibilitySort
;
41
class
vtkUnsignedCharArray
;
42
class
vtkFloatArray
;
43
44
class
VTK_VOLUMERENDERING_EXPORT
vtkOpenGLProjectedTetrahedraMapper
:
public
vtkProjectedTetrahedraMapper
45
{
46
public
:
47
vtkTypeMacro(
vtkOpenGLProjectedTetrahedraMapper
,
48
vtkProjectedTetrahedraMapper
);
49
static
vtkOpenGLProjectedTetrahedraMapper
*
New
();
50
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
51
52
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*window);
53
54
virtual
void
Render
(
vtkRenderer
*renderer,
vtkVolume
*volume);
55
57
59
vtkSetMacro(UseFloatingPointFrameBuffer,
bool
);
60
vtkGetMacro(UseFloatingPointFrameBuffer,
bool
);
61
vtkBooleanMacro(UseFloatingPointFrameBuffer,
bool
);
63
64
protected
:
65
vtkOpenGLProjectedTetrahedraMapper
();
66
~
vtkOpenGLProjectedTetrahedraMapper
();
67
68
void
Initialize(
vtkRenderer
*ren);
69
bool
Initialized
;
70
int
CurrentFBOWidth
, CurrentFBOHeight;
71
bool
CheckFBOResources(
vtkRenderer
*ren);
72
bool
CanDoFloatingPointFrameBuffer
;
73
bool
FloatingPointFrameBufferResourcesAllocated
;
74
bool
UseFloatingPointFrameBuffer
;
75
76
vtkUnsignedCharArray
*
Colors
;
77
int
UsingCellColors
;
78
79
vtkFloatArray
*
TransformedPoints
;
80
81
float
MaxCellSize
;
82
vtkTimeStamp
InputAnalyzedTime
;
83
vtkTimeStamp
OpacityTextureTime
;
84
vtkTimeStamp
ColorsMappedTime
;
85
86
int
GaveError
;
87
88
vtkVolumeProperty
*
LastProperty
;
89
90
float
*
SqrtTable
;
91
float
SqrtTableBias
;
92
93
virtual
void
ProjectTetrahedra(
vtkRenderer
*renderer,
vtkVolume
*volume);
94
95
float
GetCorrectedDepth(
float
x,
float
y,
float
z1,
float
z2,
96
const
float
inverse_projection_mat[16],
97
int
use_linear_depth_correction,
98
float
linear_depth_correction);
99
100
private
:
101
vtkOpenGLProjectedTetrahedraMapper
(
const
vtkOpenGLProjectedTetrahedraMapper
&);
// Not Implemented.
102
void
operator=(
const
vtkOpenGLProjectedTetrahedraMapper
&);
// Not Implemented.
103
104
class
vtkInternals;
105
106
vtkInternals *Internals;
107
};
108
109
#endif
Generated on Tue Jan 8 2013 05:45:40 for VTK by
1.8.1.2