Translation Scale 函数

详细描述

函数

Float   CalculateTranslationScale (const UnitScaleData *src, const UnitScaleData *dst)
Float   CalculateTranslationScale ( BaseDocument *sdoc, BaseDocument *ddoc)
maxon::Result < BaseList2D * >  NbmFindOrCreateCorrespondingBaseList (maxon::NimbusInterface *nbm, const maxon::CString &nodePath)
maxon::Result < void >  NbmPortToDescID (maxon::NimbusInterface *nbm, const maxon::GraphNode &node, const maxon::GraphNode &port, DescID &result)

Function Documentation

◆  CalculateTranslationScale() [1/2]

Float CalculateTranslationScale ( const UnitScaleData *  src ,
const UnitScaleData *  dst  
)

Calculates the scale between src and dst unit scale data.

参数
[in] src The source unit scale data.
[in] dst The destination unit scale data.
返回
The scale between src and dst .

◆  CalculateTranslationScale() [2/2]

Float CalculateTranslationScale ( BaseDocument *  sdoc ,
BaseDocument *  ddoc  
)

Calculates the scale between sdoc and ddoc documents.

参数
[in] sdoc The source document.
[in] ddoc The destination document.
返回
The scale between sdoc and ddoc .

◆  NbmFindOrCreateCorrespondingBaseList()

maxon::Result < BaseList2D *> NbmFindOrCreateCorrespondingBaseList ( maxon::NimbusInterface *  nbm ,
const maxon::CString &  nodePath  
)

Returns the corresponding BaseList element for a GraphNode. This function creates a new one if not already present.

参数
[in] nbm The nimbus class reference.
[in] nodePath Absolute Path to the Node.
返回
BaseList2D element. The return value can be nullptr in case no element can be created for the given path, e.g. if it is invalid of refers to an inner node.

◆  NbmPortToDescID()

maxon::Result <void> NbmPortToDescID ( maxon::NimbusInterface *  nbm ,
const maxon::GraphNode &  node ,
const maxon::GraphNode &  port ,
DescID &  result  
)

Calculates the DescID for a given port.

参数
[in] nbm The nimbus class reference.
[in] node The node that owns the port.
[in] port The port.
[out] result The description ID of the port.
返回
OK on success. If no description representation exists an error will be returned.