CFunctionReference

class Lib3MF::CFunctionReference : public CBase
Lib3MF_uint32 GetFunctionResourceID()

Returns the UniqueResourceID of the Function. Only functions with a ‘pos’-input are allowed.

Returns:

returns the UniqueResourceID.

void SetFunctionResourceID(const Lib3MF_uint32 nUniqueResourceID)

Sets the UniqueResourceID to refer to.

Parameters:

nUniqueResourceID – UniqueResourceID of the function

sTransform GetTransform()

Returns the transformation matrix into the coordinate system of the referenced Function.

Returns:

the transformation matrix

void SetTransform(const sTransform &Transform)

Sets the transformation matrix into the coordinate system of the referenced Function.

Parameters:

Transform – new transformation matrix

std::string GetChannelName()

Returns the name of the function output channel to use.

Returns:

the name of the function output channel

void SetChannelName(const std::string &sChannelName)

Sets the name of the function output channel to use.

Parameters:

sChannelName – new name of the function output channel

void SetMinFeatureSize(const Lib3MF_double dMinFeatureSize)

Sets the minimal feature size as a hint for the function evaluator

Parameters:

dMinFeatureSize – minimal feature size

Lib3MF_double GetMinFeatureSize()

Returns the minimal feature size as a hint for the function evaluator

Returns:

minimal feature size

void SetFallBackValue(const Lib3MF_double dFallBackValue)

Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf).

Parameters:

dFallBackValue – fallback value

Lib3MF_double GetFallBackValue()

Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf).

Returns:

fallback value

typedef std::shared_ptr<CFunctionReference> Lib3MF::PFunctionReference

Shared pointer to CFunctionReference to easily allow reference counting.