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  virtual void PrintSelf(ostream &os, vtkIndent indent);
54  static vtkCellCenterDepthSort *New();
55 
56  virtual void InitTraversal();
57  virtual vtkIdTypeArray *GetNextCells();
58 
59 protected:
61  virtual ~vtkCellCenterDepthSort();
62 
65 
69 
70  virtual float *ComputeProjectionVector();
71  virtual void ComputeCellCenters();
72  virtual void ComputeDepths();
73 
74 private:
75  vtkCellCenterDepthSortStack *ToSort;
76 
77  vtkCellCenterDepthSort(const vtkCellCenterDepthSort &) VTK_DELETE_FUNCTION;
78  void operator=(const vtkCellCenterDepthSort &) VTK_DELETE_FUNCTION;
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
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...
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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...