VTK
vtkLocator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLocator.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 =========================================================================*/
52 #ifndef __vtkLocator_h
53 #define __vtkLocator_h
54 
55 #include "vtkObject.h"
56 
57 class vtkDataSet;
58 class vtkPolyData;
59 
61 {
62 public:
63  vtkTypeMacro(vtkLocator,vtkObject);
64  void PrintSelf(ostream& os, vtkIndent indent);
65 
67 
68  virtual void SetDataSet(vtkDataSet*);
69  vtkGetObjectMacro(DataSet,vtkDataSet);
71 
73 
76  vtkSetClampMacro(MaxLevel,int,0,VTK_LARGE_INTEGER);
77  vtkGetMacro(MaxLevel,int);
79 
81 
84  vtkGetMacro(Level,int);
86 
88 
92  vtkSetMacro(Automatic,int);
93  vtkGetMacro(Automatic,int);
94  vtkBooleanMacro(Automatic,int);
96 
98 
100  vtkSetClampMacro(Tolerance,double,0.0,VTK_DOUBLE_MAX);
101  vtkGetMacro(Tolerance,double);
103 
106  virtual void Update();
107 
109  virtual void Initialize();
110 
112  virtual void BuildLocator() = 0;
113 
115  virtual void FreeSearchStructure() = 0;
116 
121  virtual void GenerateRepresentation(int level, vtkPolyData *pd) = 0;
122 
124 
125  vtkGetMacro(BuildTime, unsigned long);
127 
129 
130  virtual void Register(vtkObjectBase *o);
131  virtual void UnRegister(vtkObjectBase *o);
132 protected:
133  vtkLocator();
134  ~vtkLocator();
136 
138  int Automatic; // boolean controls automatic subdivision (or uses user spec.)
139  double Tolerance; // for performing merging
140  int MaxLevel;
141  int Level;
142 
143  vtkTimeStamp BuildTime; // time at which locator was built
144 
145  virtual void ReportReferences(vtkGarbageCollector*);
146 private:
147  vtkLocator(const vtkLocator&); // Not implemented.
148  void operator=(const vtkLocator&); // Not implemented.
149 };
150 
151 #endif
152 
153 
abstract base class for most VTK objects
Definition: vtkObject.h:60
virtual void Register(vtkObjectBase *o)
#define VTK_DOUBLE_MAX
Definition: vtkType.h:133
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
vtkDataSet * DataSet
Definition: vtkLocator.h:137
record modification and/or execution time
Definition: vtkTimeStamp.h:33
abstract base class for objects that accelerate spatial searches
Definition: vtkLocator.h:60
vtkTimeStamp BuildTime
Definition: vtkLocator.h:143
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
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 *)
abstract base class for most VTK objects
Definition: vtkObjectBase.h:59
int MaxLevel
Definition: vtkLocator.h:140
int Automatic
Definition: vtkLocator.h:138
#define VTK_LARGE_INTEGER
Definition: vtkType.h:148
double Tolerance
Definition: vtkLocator.h:139