VTK  9.2.6
vtkProjectedTerrainPath.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkProjectedTerrainPath.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=========================================================================*/
70
71#ifndef vtkProjectedTerrainPath_h
72#define vtkProjectedTerrainPath_h
73
74#include "vtkFiltersHybridModule.h" // For export macro
76
78class vtkImageData;
79class vtkEdgeList;
80class vtkPoints;
81
82class VTKFILTERSHYBRID_EXPORT vtkProjectedTerrainPath : public vtkPolyDataAlgorithm
83{
84public:
86
90 void PrintSelf(ostream& os, vtkIndent indent) override;
92
97
99
108
114
115 enum
116 {
120 };
121
123
132 vtkGetMacro(ProjectionMode, int);
137
139
144 vtkSetMacro(HeightOffset, double);
145 vtkGetMacro(HeightOffset, double);
147
149
154 vtkSetClampMacro(HeightTolerance, double, 0.0, VTK_FLOAT_MAX);
155 vtkGetMacro(HeightTolerance, double);
157
159
167
168protected:
171
173 int FillInputPortInformation(int port, vtkInformation* info) override;
174
175 // Supporting methods
176 void GetImageIndex(double x[3], double loc[2], int ij[2]);
177 double GetHeight(double loc[2], int ij[2]);
181 void SplitEdge(vtkIdType eId, double t);
182
183 // ivars that the API addresses
188
189 // Bookkeeping arrays
191 int Extent[6];
192 double Origin[3];
193 double Spacing[3];
197
198 // Errors above/below terrain. In both instances, negative values are
199 // inserted because the priority queue puts smallest values on top.
200 vtkPriorityQueue* PositiveLineError; // errors above terrain
201 vtkPriorityQueue* NegativeLineError; // errors below terrain
202
203 // This is a PIMPL'd vector representing edges
204 vtkEdgeList* EdgeList;
205
206private:
208 void operator=(const vtkProjectedTerrainPath&) = delete;
209};
210
211#endif
Proxy object to connect input/output ports.
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition vtkPoints.h:40
a list of ids arranged in priority order
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkProjectedTerrainPath() override
void SetSourceData(vtkImageData *source)
Specify the second input (the terrain) onto which the polyline(s) should be projected.
void SetProjectionModeToNonOccluded()
Determine how to control the projection process.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
double GetHeight(double loc[2], int ij[2])
void ComputeError(vtkIdType edgeId)
void SetProjectionModeToHug()
Determine how to control the projection process.
void SplitEdge(vtkIdType eId, double t)
virtual void SetProjectionMode(int)
Determine how to control the projection process.
static vtkProjectedTerrainPath * New()
Instantiate the class.
void SetSourceConnection(vtkAlgorithmOutput *algOutput)
Specify the second input (the terrain) onto which the polyline(s) should be projected.
void GetImageIndex(double x[3], double loc[2], int ij[2])
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for printing and determining type information.
void SetProjectionModeToSimple()
Determine how to control the projection process.
vtkImageData * GetSource()
Specify the second input (the terrain) onto which the polyline(s) should be projected.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define vtkDataArray
int vtkIdType
Definition vtkType.h:332
#define VTK_ID_MAX
Definition vtkType.h:336
#define VTK_FLOAT_MAX
Definition vtkType.h:163