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 
38 #ifndef vtkCellCenterDepthSort_h
39 #define vtkCellCenterDepthSort_h
40 
41 #include "vtkRenderingCoreModule.h" // For export macro
42 #include "vtkVisibilitySort.h"
43 
44 class vtkFloatArray;
45 
46 class vtkCellCenterDepthSortStack;
47 
49 {
50 public:
52  virtual void PrintSelf(ostream &os, vtkIndent indent);
54 
55  virtual void InitTraversal();
57 
58 protected:
61 
64 
68 
69  virtual float *ComputeProjectionVector();
70  virtual void ComputeCellCenters();
71  virtual void ComputeDepths();
72 
73 private:
74  vtkCellCenterDepthSortStack *ToSort;
75 
76  vtkCellCenterDepthSort(const vtkCellCenterDepthSort &); // Not implemented.
77  void operator=(const vtkCellCenterDepthSort &); // Not implemented.
78 };
79 
80 #endif
vtkFloatArray
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:49
vtkCellCenterDepthSort::CellCenters
vtkFloatArray * CellCenters
Definition: vtkCellCenterDepthSort.h:65
vtkCellCenterDepthSort::vtkCellCenterDepthSort
vtkCellCenterDepthSort()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCellCenterDepthSort
A simple implementation of vtkCellDepthSort.
Definition: vtkCellCenterDepthSort.h:49
vtkCellCenterDepthSort::SortedCells
vtkIdTypeArray * SortedCells
Definition: vtkCellCenterDepthSort.h:62
vtkCellCenterDepthSort::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkCellCenterDepthSort::CellPartitionDepths
vtkFloatArray * CellPartitionDepths
Definition: vtkCellCenterDepthSort.h:67
vtkCellCenterDepthSort::~vtkCellCenterDepthSort
virtual ~vtkCellCenterDepthSort()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellCenterDepthSort::ComputeProjectionVector
virtual float * ComputeProjectionVector()
vtkRenderingCoreModule.h
vtkCellCenterDepthSort::InitTraversal
virtual void InitTraversal()
vtkVisibilitySort.h
vtkVisibilitySort
Abstract class that can sort cell data along a viewpoint.
Definition: vtkVisibilitySort.h:57
vtkCellCenterDepthSort::CellDepths
vtkFloatArray * CellDepths
Definition: vtkCellCenterDepthSort.h:66
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkCellCenterDepthSort::ComputeCellCenters
virtual void ComputeCellCenters()
vtkCellCenterDepthSort::ComputeDepths
virtual void ComputeDepths()
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkCellCenterDepthSort::SortedCellPartition
vtkIdTypeArray * SortedCellPartition
Definition: vtkCellCenterDepthSort.h:63
vtkCellCenterDepthSort::New
static vtkCellCenterDepthSort * New()
vtkCellCenterDepthSort::GetNextCells
virtual vtkIdTypeArray * GetNextCells()