|
VMTK
|
Provides a collection of functions used when working with split and grouped centerlines. More...
#include <vtkvmtkCenterlineUtilities.h>
Public Types | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkCenterlineUtilities * | NewInstance () const |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkCenterlineUtilities * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkCenterlineUtilities * | New () |
| static vtkIdType | GetMaxGroupId (vtkPolyData *centerlines, const char *groupIdsArrayName) |
| static void | GetGroupsIdList (vtkPolyData *centerlines, const char *groupIdsArrayName, vtkIdList *groupIds) |
| static void | GetGroupsIdList (vtkPolyData *centerlines, const char *groupIdsArrayName, const char *blankingArrayName, int blanked, vtkIdList *groupIds) |
| static void | GetNonBlankedGroupsIdList (vtkPolyData *centerlines, const char *groupIdsArrayName, const char *blankingArrayName, vtkIdList *groupIds) |
| static void | GetBlankedGroupsIdList (vtkPolyData *centerlines, const char *groupIdsArrayName, const char *blankingArrayName, vtkIdList *groupIds) |
| static void | GetGroupCellIds (vtkPolyData *centerlines, const char *groupIdsArrayName, vtkIdType groupId, vtkIdList *groupCellIds) |
| static void | GetGroupUniqueCellIds (vtkPolyData *centerlines, const char *groupIdsArrayName, vtkIdType groupId, vtkIdList *groupCellIds) |
| static void | GetCenterlineCellIds (vtkPolyData *centerlines, const char *centerlineIdsArrayName, vtkIdType centerlineId, vtkIdList *centerlineCellIds) |
| static void | GetCenterlineCellIds (vtkPolyData *centerlines, const char *centerlineIdsArrayName, const char *tractIdsArrayName, vtkIdType centerlineId, vtkIdList *centerlineCellIds) |
| static int | IsGroupBlanked (vtkPolyData *centerlines, const char *groupIdsArrayName, const char *blankingArrayName, vtkIdType groupId) |
| static int | IsCellBlanked (vtkPolyData *centerlines, const char *blankingArrayName, vtkIdType cellId) |
| static void | FindAdjacentCenterlineGroupIds (vtkPolyData *centerlines, const char *groupIdsArrayName, const char *centerlineIdsArrayName, const char *tractIdsArrayName, vtkIdType groupId, vtkIdList *upStreamGroupIds, vtkIdList *downStreamGroupIds) |
| static void | InterpolatePoint (vtkPolyData *centerlines, int cellId, int subId, double pcoord, double interpolatedPoint[3]) |
| static void | InterpolateTuple (vtkPolyData *centerlines, const char *arrayName, int cellId, int subId, double pcoord, double *interpolatedTuple) |
| static void | InterpolateTuple1 (vtkPolyData *centerlines, const char *arrayName, int cellId, int subId, double pcoord, double &interpolatedTuple1) |
| static void | InterpolateTuple3 (vtkPolyData *centerlines, const char *arrayName, int cellId, int subId, double pcoord, double interpolatedTuple3[3]) |
| static void | FindMergingPoints (vtkPolyData *centerlines, vtkPoints *mergingPoints, double tolerance) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkCenterlineUtilities () | |
| ~vtkvmtkCenterlineUtilities () | |
Provides a collection of functions used when working with split and grouped centerlines.
Purely a static utility class (never instantiated), providing common query/interpolation helpers on split and grouped centerlines – looking up group/branch cell ids, testing blanking status, walking adjacent branches at a bifurcation, and interpolating point positions/array values at an arbitrary (cellId, subId, pcoord) location along a centerline. Used internally throughout the "branch extractor" family of filters and by higher-level scripts operating on split centerlines.
Definition at line 43 of file vtkvmtkCenterlineUtilities.h.
| typedef vtkObject vtkvmtkCenterlineUtilities::Superclass |
Definition at line 46 of file vtkvmtkCenterlineUtilities.h.
|
inlineprotected |
Definition at line 153 of file vtkvmtkCenterlineUtilities.h.
|
inlineprotected |
Definition at line 154 of file vtkvmtkCenterlineUtilities.h.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkCenterlineUtilities * vtkvmtkCenterlineUtilities::NewInstance | ( | ) | const |
|
static |
|
static |
Return the highest group id found in the groupIdsArrayName cell data array of centerlines.
Definition at line 35 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Fill groupIds with the list of all distinct group ids found in the groupIdsArrayName cell data array of centerlines.
Definition at line 87 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Fill groupIds with the list of distinct group ids among cells whose blankingArrayName value equals blanked (0 or 1).
Definition at line 55 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Fill groupIds with the list of distinct group ids among the non-blanked cells of centerlines.
Definition at line 92 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Fill groupIds with the list of distinct group ids among the blanked cells of centerlines.
Definition at line 97 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Fill groupCellIds with the ids of all cells of centerlines belonging to groupId.
Definition at line 102 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Like GetGroupCellIds, but additionally de-duplicates cells that represent the same tract repeated across multiple original centerlines (keeping one representative cell per unique tract).
Definition at line 121 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Fill centerlineCellIds with the ids of all cells of centerlines belonging to the original, unsplit centerline centerlineId.
Definition at line 164 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Like the two-array overload, but also sorts/filters the result using tractIdsArrayName so that cells come back in tract order along the original centerline.
Definition at line 183 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Return non-zero if every cell of group groupId is marked blanked in the blankingArrayName cell data array.
Definition at line 229 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Return the blankingArrayName value (0 or non-zero) of the given cell.
Definition at line 255 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Fill upStreamGroupIds and downStreamGroupIds with the group ids immediately upstream and downstream, respectively, of groupId along each original centerline passing through it.
Definition at line 263 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Compute the (x,y,z) position at the given parametric location (cellId, subId, pcoord) along centerlines, linearly interpolated between the segment's two endpoints.
Definition at line 324 of file vtkvmtkCenterlineUtilities.cxx.
|
static |
Linearly interpolate the point data array arrayName of centerlines at the given parametric location (cellId, subId, pcoord), writing the result (one value per array component) into interpolatedTuple.
Definition at line 336 of file vtkvmtkCenterlineUtilities.cxx.
|
inlinestatic |
Convenience overload of InterpolateTuple for single-component (scalar) arrays.
Definition at line 133 of file vtkvmtkCenterlineUtilities.h.
|
inlinestatic |
Convenience overload of InterpolateTuple for 3-component (vector) arrays.
Definition at line 141 of file vtkvmtkCenterlineUtilities.h.
|
static |
Find points shared (within tolerance) by more than one cell of centerlines – typically bifurcation points where multiple branches meet – and append them to mergingPoints.
Definition at line 352 of file vtkvmtkCenterlineUtilities.cxx.