VTK
vtkVisibilitySort.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVisibilitySort.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 
45 #ifndef vtkVisibilitySort_h
46 #define vtkVisibilitySort_h
47 
48 #include "vtkRenderingCoreModule.h" // For export macro
49 #include "vtkObject.h"
50 
51 class vtkIdTypeArray;
52 class vtkDataSet;
53 class vtkMatrix4x4;
54 class vtkCamera;
55 
57 {
58 public:
59  vtkTypeMacro(vtkVisibilitySort, vtkObject);
60  virtual void PrintSelf(ostream &os, vtkIndent indent);
61 
63 
72  virtual void InitTraversal() = 0;
73  virtual vtkIdTypeArray *GetNextCells() = 0;
75 
77 
79  vtkSetClampMacro(MaxCellsReturned, int, 1, VTK_INT_MAX);
80  vtkGetMacro(MaxCellsReturned, int);
82 
84 
87  virtual void SetModelTransform(vtkMatrix4x4 *mat);
88  vtkGetObjectMacro(ModelTransform, vtkMatrix4x4);
90 
91  vtkGetObjectMacro(InverseModelTransform, vtkMatrix4x4);
92 
94 
95  virtual void SetCamera(vtkCamera *camera);
96  vtkGetObjectMacro(Camera, vtkCamera);
98 
100 
101  virtual void SetInput(vtkDataSet *data);
102  vtkGetObjectMacro(Input, vtkDataSet);
104 
106 
108  vtkGetMacro(Direction, int);
109  vtkSetMacro(Direction, int);
110  void SetDirectionToBackToFront() { this->SetDirection(BACK_TO_FRONT); }
111  void SetDirectionToFrontToBack() { this->SetDirection(FRONT_TO_BACK); }
113 
114 //BTX
115  enum { BACK_TO_FRONT, FRONT_TO_BACK };
116 //ETX
117 
119 
120  virtual void Register(vtkObjectBase *o);
121  virtual void UnRegister(vtkObjectBase *o);
123 
124 protected:
126  virtual ~vtkVisibilitySort();
127 
129 
134 
136 
138 
139  virtual void ReportReferences(vtkGarbageCollector *collector);
140 
141 private:
142  vtkVisibilitySort(const vtkVisibilitySort &); // Not implemented.
143  void operator=(const vtkVisibilitySort &); // Not implemented.
144 };
145 
146 #endif //vtkVisibilitySort_h
147 
abstract base class for most VTK objects
Definition: vtkObject.h:61
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:38
virtual void Register(vtkObjectBase *o)
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
Abstract class that can sort cell data along a viewpoint.
#define VTK_INT_MAX
Definition: vtkType.h:132
record modification and/or execution time
Definition: vtkTimeStamp.h:34
dynamic, self-adjusting array of vtkIdType
Detect and break reference loops.
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual void UnRegister(vtkObjectBase *o)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void ReportReferences(vtkGarbageCollector *)
a virtual camera for 3D rendering
Definition: vtkCamera.h:48
vtkTimeStamp LastSortTime
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59
vtkMatrix4x4 * InverseModelTransform
#define VTKRENDERINGCORE_EXPORT
vtkMatrix4x4 * ModelTransform