VTK
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 
39 #ifndef vtkCellCenterDepthSort_h
40 #define vtkCellCenterDepthSort_h
41 
42 #include "vtkRenderingCoreModule.h" // For export macro
43 #include "vtkVisibilitySort.h"
44 
45 class vtkFloatArray;
46 
47 class vtkCellCenterDepthSortStack;
48 
49 class VTKRENDERINGCORE_EXPORT vtkCellCenterDepthSort : public vtkVisibilitySort
50 {
51 public:
53  void PrintSelf(ostream &os, vtkIndent indent) override;
54  static vtkCellCenterDepthSort *New();
55 
56  void InitTraversal() override;
57  vtkIdTypeArray *GetNextCells() override;
58 
59 protected:
61  ~vtkCellCenterDepthSort() override;
62 
65 
69 
70  virtual float *ComputeProjectionVector();
71  virtual void ComputeCellCenters();
72  virtual void ComputeDepths();
73 
74 private:
75  vtkCellCenterDepthSortStack *ToSort;
76 
78  void operator=(const vtkCellCenterDepthSort &) = delete;
79 };
80 
81 #endif
Abstract class that can sort cell data along a viewpoint.
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:41
dynamic, self-adjusting array of vtkIdType
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFloatArray * CellPartitionDepths
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void InitTraversal()=0
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process...
vtkIdTypeArray * SortedCellPartition
A simple implementation of vtkCellDepthSort.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual vtkIdTypeArray * GetNextCells()=0
To facilitate incremental sorting algorithms, the cells are retrieved in an iteration process...