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 "vtkObject.h"
49 
50 class vtkIdTypeArray;
51 class vtkDataSet;
52 class vtkMatrix4x4;
53 class vtkCamera;
54 
56 {
57 public:
58  vtkTypeMacro(vtkVisibilitySort, vtkObject);
59  virtual void PrintSelf(ostream &os, vtkIndent indent);
60 
62 
71  virtual void InitTraversal() = 0;
72  virtual vtkIdTypeArray *GetNextCells() = 0;
74 
76 
78  vtkSetClampMacro(MaxCellsReturned, int, 1, VTK_LARGE_INTEGER);
79  vtkGetMacro(MaxCellsReturned, int);
81 
83 
86  virtual void SetModelTransform(vtkMatrix4x4 *mat);
87  vtkGetObjectMacro(ModelTransform, vtkMatrix4x4);
89 
90  vtkGetObjectMacro(InverseModelTransform, vtkMatrix4x4);
91 
93 
94  virtual void SetCamera(vtkCamera *camera);
95  vtkGetObjectMacro(Camera, vtkCamera);
97 
99 
100  virtual void SetInput(vtkDataSet *data);
101  vtkGetObjectMacro(Input, vtkDataSet);
103 
105 
107  vtkGetMacro(Direction, int);
108  vtkSetMacro(Direction, int);
109  void SetDirectionToBackToFront() { this->SetDirection(BACK_TO_FRONT); }
110  void SetDirectionToFrontToBack() { this->SetDirection(FRONT_TO_BACK); }
112 
113 //BTX
114  enum { BACK_TO_FRONT, FRONT_TO_BACK };
115 //ETX
116 
118 
119  virtual void Register(vtkObjectBase *o);
120  virtual void UnRegister(vtkObjectBase *o);
122 
123 protected:
125  virtual ~vtkVisibilitySort();
126 
128 
133 
135 
137 
138  virtual void ReportReferences(vtkGarbageCollector *collector);
139 
140 private:
141  vtkVisibilitySort(const vtkVisibilitySort &); // Not implemented.
142  void operator=(const vtkVisibilitySort &); // Not implemented.
143 };
144 
145 #endif //__vtkVisibilitySort_h
146 
abstract base class for most VTK objects
Definition: vtkObject.h:60
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:37
virtual void Register(vtkObjectBase *o)
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
Abstract class that can sort cell data along a viewpoint.
record modification and/or execution time
Definition: vtkTimeStamp.h:33
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:37
virtual void ReportReferences(vtkGarbageCollector *)
a virtual camera for 3D rendering
Definition: vtkCamera.h:47
vtkTimeStamp LastSortTime
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59
vtkMatrix4x4 * InverseModelTransform
#define VTK_RENDERING_EXPORT
vtkMatrix4x4 * ModelTransform
#define VTK_LARGE_INTEGER
Definition: vtkType.h:148