VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkCellCenterDepthSort.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCellCenterDepthSort.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
38
#ifndef __vtkCellCenterDepthSort_h
39
#define __vtkCellCenterDepthSort_h
40
41
#include "
vtkVisibilitySort.h
"
42
43
class
vtkFloatArray
;
44
45
class
vtkCellCenterDepthSortStack;
46
47
class
VTK_RENDERING_EXPORT
vtkCellCenterDepthSort
:
public
vtkVisibilitySort
48
{
49
public
:
50
vtkTypeMacro(
vtkCellCenterDepthSort
,
vtkVisibilitySort
);
51
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
52
static
vtkCellCenterDepthSort
*
New
();
53
54
virtual
void
InitTraversal
();
55
virtual
vtkIdTypeArray
*
GetNextCells
();
56
57
protected
:
58
vtkCellCenterDepthSort
();
59
virtual
~
vtkCellCenterDepthSort
();
60
61
vtkIdTypeArray
*
SortedCells
;
62
vtkIdTypeArray
*
SortedCellPartition
;
63
64
vtkFloatArray
*
CellCenters
;
65
vtkFloatArray
*
CellDepths
;
66
vtkFloatArray
*
CellPartitionDepths
;
67
68
virtual
float
*ComputeProjectionVector();
69
virtual
void
ComputeCellCenters();
70
virtual
void
ComputeDepths();
71
72
private
:
73
vtkCellCenterDepthSortStack *ToSort;
74
75
vtkCellCenterDepthSort
(
const
vtkCellCenterDepthSort
&);
// Not implemented.
76
void
operator=(
const
vtkCellCenterDepthSort
&);
// Not implemented.
77
};
78
79
#endif //__vtkCellCenterDepthSort_h
80
Generated on Sun Sep 9 2012 13:03:43 for VTK by
1.8.1.2