#include <BoundarySegmentMapper.h>
|
static const char * | NameOfType () |
| Get name of this class type.
|
|
template<typename... Args> |
static void | ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args) |
|
Base class of filters which assign map values to one surface boundary segment
Definition at line 35 of file BoundarySegmentMapper.h.
§ ComputeMap()
virtual void mirtk::BoundarySegmentMapper::ComputeMap |
( |
| ) |
|
|
protectedvirtual |
Assign map values to longest boundary of input surface
When the surface has more than one boundary segment and a different boundary segment should be processed or when multiple boundary segments should be processed with different boundary map settings, perform the following steps instead of calling the Run() function.
- Initialize() filter
- Repeat the following steps for each boundary segment to be mapped: a) Set selected boundary segment points and map parameters. b) MapSegment() to assign map values to current segment.
- Finalize() boundary map
Implements mirtk::BoundaryMapper.
§ MapBoundarySegment()
virtual void mirtk::BoundarySegmentMapper::MapBoundarySegment |
( |
int |
n, |
|
|
const Array< int > & |
indices, |
|
|
const Array< double > & |
tvalues, |
|
|
const Array< int > & |
selection |
|
) |
| |
|
protectedpure virtual |
Map boundary segment
- Parameters
-
[in] | n | Index of boundary segment. |
[in] | indices | Indices of boundary points forming a closed line strip that discretizes the current surface boundary segment. |
[in] | tvalues | Curve parameter in [0, 1) for each boundary segment point, where the first point has value t=0 and the parameter value for consecutive points is proportional to the distance of the point from the first point along the boundary curve. |
[in] | selection | Indices in i and t arrays corresponding to selected boundary points. |
Implemented in mirtk::BoundaryToPolygonMapper, mirtk::BoundaryToDiskMapper, and mirtk::BoundaryToSquareMapper.
§ MapSegment()
void mirtk::BoundarySegmentMapper::MapSegment |
( |
int |
n | ) |
|
Process specified boundary segment
- Parameters
-
[in] | n | Index of boundary segment. |
The documentation for this class was generated from the following file: