|
VMTK
|
Experimental: for each seed point (e.g. a Voronoi pole), backtrace a steepest descent path over a non-manifold to the nearest point of a target polyline, recording where it lands. More...
#include <vtkvmtkSteepestDescentShooter.h>
Public Types | |
| typedef vtkvmtkNonManifoldSteepestDescent | Superclass |
| Public Types inherited from vtkvmtkNonManifoldSteepestDescent | |
| typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkSteepestDescentShooter * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual void | SetTarget (vtkPolyData *) |
| virtual vtkPolyData * | GetTarget () |
| virtual void | SetSeeds (vtkIdList *) |
| virtual vtkIdList * | GetSeeds () |
| virtual void | SetEdgeArrayName (const char *) |
| virtual char * | GetEdgeArrayName () |
| virtual void | SetTargetVectorsArrayName (const char *) |
| virtual char * | GetTargetVectorsArrayName () |
| virtual void | SetTargetCellIdsArrayName (const char *) |
| virtual char * | GetTargetCellIdsArrayName () |
| virtual void | SetTargetPCoordsArrayName (const char *) |
| virtual char * | GetTargetPCoordsArrayName () |
| Public Member Functions inherited from vtkvmtkNonManifoldSteepestDescent | |
| vtkvmtkNonManifoldSteepestDescent * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual void | SetDescentArrayName (const char *) |
| virtual char * | GetDescentArrayName () |
| virtual void | SetDirection (int) |
| virtual int | GetDirection () |
| void | SetDirectionToDownward () |
| void | SetDirectionToUpward () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkSteepestDescentShooter * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkSteepestDescentShooter * | New () |
| Static Public Member Functions inherited from vtkvmtkNonManifoldSteepestDescent | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkNonManifoldSteepestDescent * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkNonManifoldSteepestDescent * | New () |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkSteepestDescentShooter () | |
| ~vtkvmtkSteepestDescentShooter () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
| void | Backtrace (vtkPolyData *input, vtkIdType seedId) |
| void | FindNearestPolyLinePoint (double *currentPoint, double *lineClosestPoint, int &lineCellId, int &lineCellSubId, double &linePCoord) |
| Protected Member Functions inherited from vtkvmtkNonManifoldSteepestDescent | |
| vtkvmtkNonManifoldSteepestDescent () | |
| ~vtkvmtkNonManifoldSteepestDescent () | |
| double | GetSteepestDescent (vtkPolyData *input, vtkIdType *edge, double s, vtkIdType *steepestDescentEdge, double &steepestDescentS) |
| double | GetSteepestDescentInCell (vtkPolyData *input, vtkIdType cellId, vtkIdType *edge, double s, vtkIdType *steepestDescentEdge, double &steepestDescentS, double &steepestDescentLength) |
Protected Attributes | |
| vtkPolyData * | Target |
| vtkIdList * | Seeds |
| vtkIntArray * | TargetArray |
| vtkDataArray * | EdgeArray |
| vtkDoubleArray * | TargetVectors |
| vtkIntArray * | TargetCellIds |
| vtkDoubleArray * | TargetPCoords |
| char * | EdgeArrayName |
| char * | TargetVectorsArrayName |
| char * | TargetCellIdsArrayName |
| char * | TargetPCoordsArrayName |
| Protected Attributes inherited from vtkvmtkNonManifoldSteepestDescent | |
| vtkDataArray * | DescentArray |
| char * | DescentArrayName |
| int | NumberOfEdgeSubdivisions |
| int | Direction |
Experimental: for each seed point (e.g. a Voronoi pole), backtrace a steepest descent path over a non-manifold to the nearest point of a target polyline, recording where it lands.
This class is meant to be used after solving the Eikonal equation, with the target polyline (typically the centerlines) as boundary condition, over a non-manifold polygonal domain (typically a Voronoi diagram, via vtkNonManifoldFastMarching). For every seed, it follows the steepest descent of the resulting scalar field (using the machinery of the base class vtkvmtkNonManifoldSteepestDescent) until it reaches Target, and records, for each seed, the vector from seed to the landing point, the target cell id/sub-id, and the parametric coordinate along the target cell. This is used e.g. to associate each surface point's Voronoi pole to the closest point on the centerlines. Implement with caution: this method is experimental and has known limitations when a path must cross multiple Voronoi diagram "spikes" to reach the target.
Definition at line 45 of file vtkvmtkSteepestDescentShooter.h.
Definition at line 48 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 36 of file vtkvmtkSteepestDescentShooter.cxx.
|
protected |
Definition at line 55 of file vtkvmtkSteepestDescentShooter.cxx.
|
static |
|
virtual |
Reimplemented from vtkvmtkNonManifoldSteepestDescent.
|
static |
|
protectedvirtual |
Reimplemented from vtkvmtkNonManifoldSteepestDescent.
| vtkvmtkSteepestDescentShooter * vtkvmtkSteepestDescentShooter::NewInstance | ( | ) | const |
|
override |
Definition at line 337 of file vtkvmtkSteepestDescentShooter.cxx.
|
static |
|
virtual |
Set/Get the target polyline (typically the centerlines) that seed backtraces are shot towards. Required input.
|
virtual |
Set/Get the target polyline (typically the centerlines) that seed backtraces are shot towards. Required input.
|
virtual |
Set/Get the ids, on the input non-manifold domain, of the seed points to backtrace from. Required input.
|
virtual |
Set/Get the ids, on the input non-manifold domain, of the seed points to backtrace from. Required input.
|
virtual |
Set/Get the name of the point data array of the input domain used internally to track, for each point, the edge of the shortest-path tree it was reached through (as produced by vtkvmtkNonManifoldFastMarching). Commonly named "EdgeArray".
|
virtual |
Set/Get the name of the point data array of the input domain used internally to track, for each point, the edge of the shortest-path tree it was reached through (as produced by vtkvmtkNonManifoldFastMarching). Commonly named "EdgeArray".
|
virtual |
Set/Get the name of the output point data array where, for each seed, the vector from the seed to its landing point on Target is stored. Commonly named "VoronoiPoleCenterlineVectors".
|
virtual |
Set/Get the name of the output point data array where, for each seed, the vector from the seed to its landing point on Target is stored. Commonly named "VoronoiPoleCenterlineVectors".
|
virtual |
Set/Get the name of the output point data array where, for each seed, the id of the Target cell its backtrace path landed on is stored. Commonly named "VoronoiCellIds".
|
virtual |
Set/Get the name of the output point data array where, for each seed, the id of the Target cell its backtrace path landed on is stored. Commonly named "VoronoiCellIds".
|
virtual |
Set/Get the name of the output point data array where, for each seed, the parametric coordinate along the landing Target cell is stored.
|
virtual |
Set/Get the name of the output point data array where, for each seed, the parametric coordinate along the landing Target cell is stored.
|
overrideprotectedvirtual |
Reimplemented from vtkvmtkNonManifoldSteepestDescent.
Definition at line 192 of file vtkvmtkSteepestDescentShooter.cxx.
|
protected |
Definition at line 112 of file vtkvmtkSteepestDescentShooter.cxx.
|
protected |
Definition at line 76 of file vtkvmtkSteepestDescentShooter.cxx.
|
protected |
Definition at line 121 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 122 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 124 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 125 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 127 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 128 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 129 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 131 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 133 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 134 of file vtkvmtkSteepestDescentShooter.h.
|
protected |
Definition at line 135 of file vtkvmtkSteepestDescentShooter.h.