-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkPCellCenterDepthSort.h
48 lines (37 loc) · 1.3 KB
/
vtkPCellCenterDepthSort.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef vtkPCellCenterDepthSort_h
#define vtkPCellCenterDepthSort_h
#include "vtkRenderingCoreModule.h" // For export macro
#include "vtkPVisibilitySort.h"
class vtkFloatArray;
class vtkPCellCenterDepthSortStack;
class vtkTimerLog;
class vtkPCellCenterDepthSort : public vtkPVisibilitySort
{
public:
vtkTypeMacro(vtkPCellCenterDepthSort, vtkPVisibilitySort);
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
static vtkPCellCenterDepthSort *New();
void InitTraversal() VTK_OVERRIDE;
vtkIdTypeArray *GetNextCells() VTK_OVERRIDE;
void GetCells() VTK_OVERRIDE;
std::vector<vtkIdTypeArray*> GetIDVector() VTK_OVERRIDE;
std::vector<int> GetPOSVector()VTK_OVERRIDE;
virtual void SetNumberOfThread(int);
protected:
vtkPCellCenterDepthSort();
~vtkPCellCenterDepthSort() VTK_OVERRIDE;
vtkIdTypeArray *SortedCells;
vtkIdTypeArray *SortedCellPartition;
vtkFloatArray *CellCenters;
vtkFloatArray *CellDepths;
vtkFloatArray *CellPartitionDepths;
vtkTimerLog *Timer;
virtual float *ComputeProjectionVector();
virtual void ComputeCellCenters();
virtual void ComputeDepths();
private:
vtkPCellCenterDepthSortStack *ToSort;
vtkPCellCenterDepthSort(const vtkPCellCenterDepthSort &) VTK_DELETE_FUNCTION;
void operator=(const vtkPCellCenterDepthSort &) VTK_DELETE_FUNCTION;
};
#endif