Public Member Functions | Protected Member Functions | List of all members
mirtk::MeshlessMap Class Reference

#include <MeshlessMap.h>

Inheritance diagram for mirtk::MeshlessMap:
Inheritance graph
Collaboration diagram for mirtk::MeshlessMap:
Collaboration graph

Public Member Functions

bool AddSourcePoint (double p[3], double tol=.0)
 
virtual void BoundingBox (double &x1, double &y1, double &z1, double &x2, double &y2, double &z2) const
 
virtual int NumberOfComponents () const
 Dimension of codomain, i.e., number of output values.
 
int NumberOfSourcePoints () const
 Get number of source points.
 
virtual ~MeshlessMap ()
 Destructor.
 
- Public Member Functions inherited from mirtk::Mapping
ImageAttributes Attributes (int nx, int ny=0, int nz=0) const
 
ImageAttributes Attributes (double dx=.0, double dy=.0, double dz=.0) const
 
void BoundingBox (double &x1, double &y1, double &x2, double &y2) const
 
void BoundingBox (double bounds[6]) const
 
void BoundingBox (Point &p1, Point &p2) const
 
virtual bool Evaluate (double *v, double x, double y, double z=0) const =0
 
bool Evaluate (double *v, const double p[3]) const
 
bool Evaluate (double *v, const Point &p) const
 
virtual double Evaluate (double x, double y, double z=0, int l=0) const
 
double Evaluate (const double p[3], int l=0) const
 
double Evaluate (const Point &, int l=0) const
 
virtual void Evaluate (GenericImage< float > &f, int l=0, vtkSmartPointer< vtkPointSet > m=nullptr) const
 
virtual void Evaluate (GenericImage< double > &f, int l=0, vtkSmartPointer< vtkPointSet > m=nullptr) const
 
virtual MappingNewCopy () const =0
 Make deep copy of this map.
 
virtual int NumberOfArguments () const
 Dimension of map domain.
 
virtual bool Read (const char *)
 Read map from file.
 
virtual bool Write (const char *) const
 Write map to file.
 
virtual ~Mapping ()
 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 Initialize ()
 Initialize map after inputs and parameters are set.
 
 MeshlessMap ()
 Default constructor.
 
 MeshlessMap (const MeshlessMap &)
 Copy constructor.
 
MeshlessMapoperator= (const MeshlessMap &)
 Assignment operator.
 
virtual void ReadMap (Cifstream &)
 Read map attributes and parameters from file stream.
 
virtual void WriteMap (Cofstream &) const
 Write map attributes and parameters to file stream.
 
- Protected Member Functions inherited from mirtk::Mapping
 Mapping ()
 Default constructor.
 
 Mapping (const Mapping &)
 Copy constructor.
 
Mappingoperator= (const Mapping &)
 Assignment operator.
 
- 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::Mapping
static MappingNew (const char *)
 Read mapping from file.
 
- 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

Meshless map defined as superposition of kernel functions

Definition at line 41 of file MeshlessMap.h.

Member Function Documentation

§ AddSourcePoint()

bool mirtk::MeshlessMap::AddSourcePoint ( double  p[3],
double  tol = .0 
)
inline

Add source point with zero coefficient

Returns
Whether source point was added or too close to existing point.

Definition at line 135 of file MeshlessMap.h.

§ BoundingBox()

virtual void mirtk::MeshlessMap::BoundingBox ( double &  x1,
double &  y1,
double &  z1,
double &  x2,
double &  y2,
double &  z2 
) const
virtual

Get minimum axes-aligned bounding box of map domain

Parameters
[out]x1Lower bound of map domain along x axis.
[out]y1Lower bound of map domain along y axis.
[out]z1Lower bound of map domain along z axis.
[out]x2Upper bound of map domain along x axis.
[out]y2Upper bound of map domain along y axis.
[out]z2Upper bound of map domain along z axis.

Implements mirtk::Mapping.


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