Public Member Functions | Protected Member Functions | List of all members
mirtk::SurfaceMapper Class Referenceabstract

#include <SurfaceMapper.h>

Inheritance diagram for mirtk::SurfaceMapper:
Inheritance graph
Collaboration diagram for mirtk::SurfaceMapper:
Collaboration graph

Public Member Functions

void Run ()
 Compute surface map.
 
virtual ~SurfaceMapper ()
 Destructor.
 
- Public Member Functions inherited from mirtk::Object
virtual const char * NameOfClass () const =0
 Get name of class, which this object is an instance of.
 
virtual ParameterList Parameter () const
 Get parameter name/value pairs.
 
bool Parameter (const ParameterList &)
 Set parameters from name/value pairs.
 
virtual bool Set (const char *name, const char *value)
 
virtual ~Object ()
 Destructor.
 

Protected Member Functions

virtual void ComputeMap ()=0
 Compute surface map.
 
virtual void Finalize ()
 Finalize filter execution.
 
int GetEdgeNeighborPoints (int i, int j, int &k, int &l) const
 
void GetPoint (int ptId, double p[3]) const
 
virtual void Initialize ()
 Initialize filter after input and parameters are set.
 
int NumberOfInteriorPoints () const
 Number of surface points minus the number of boundary points.
 
int NumberOfPoints () const
 Number of surface points.
 
SurfaceMapperoperator= (const SurfaceMapper &)
 Assignment operator.
 
class Point Point (int ptId) const
 
 SurfaceMapper ()
 Default constructor.
 
 SurfaceMapper (const SurfaceMapper &)
 Copy constructor.
 
- Protected Member Functions inherited from mirtk::Object
template<typename... Args>
void Throw (ErrorType err, const char *func, Args... args) const
 

Additional Inherited Members

- Static Public Member Functions inherited from mirtk::Object
static const char * NameOfType ()
 Get name of this class type.
 
- Static Protected Member Functions inherited from mirtk::Object
template<typename... Args>
static void ThrowStatic (ErrorType err, const char *cls, const char *func, Args... args)
 

Detailed Description

Base class of solvers for the computation of a surface map

Solvers of this type compute a map value for each point on the surface of the input mesh embedded in 3D Euclidean space. The properties of the output map depend on the boundary conditions and the specific solver used to compute the surface map. Examples of surface maps are the assignment of 2D texture coordinates and a bijective mapping of a surface mesh to a disk, square, or sphere, respectively.

Definition at line 49 of file SurfaceMapper.h.

Member Function Documentation

§ GetEdgeNeighborPoints()

int mirtk::SurfaceMapper::GetEdgeNeighborPoints ( int  i,
int  j,
int &  k,
int &  l 
) const
protected

Get IDs of surface points belong to the two triangles sharing an edge

Parameters
[in]iEdge start point.
[in]jEdge end point.
[out]kOther point of first adjacent triangle.
[out]lOther point of second adjacent triangle. When the edge is on the surface boundary and therefore has only as single adjacent triangle, -1 is returned.
Returns
Number of cells adjacent to the specified edge. When the surface mesh is triangulated, the return value is 1 for a boundary edge, and 2 for an interior edge.

§ GetPoint()

void mirtk::SurfaceMapper::GetPoint ( int  ptId,
double  p[3] 
) const
inlineprotected

Get surface point coordinates

Parameters
[in]ptIdSurface point ID.
[out]pPoint coordinates.

Definition at line 170 of file SurfaceMapper.h.

§ Point()

Point mirtk::SurfaceMapper::Point ( int  ptId) const
inlineprotected

Get surface point coordinates

Parameters
[in]ptIdSurface point ID.
Returns
Point point.

Definition at line 176 of file SurfaceMapper.h.


The documentation for this class was generated from the following file: