Assimp
v4.1. (December 2018)
|
Useful macrodefines. More...
Macros | |
#define | MACRO_ATTRREAD_CHECK_REF(pAttrName, pVarName, pFunction) |
Check curent attribute name and if it equal to requested then read value. More... | |
#define | MACRO_ATTRREAD_CHECK_RET(pAttrName, pVarName, pFunction) |
Check curent attribute name and if it equal to requested then read value. More... | |
#define | MACRO_ATTRREAD_CHECKUSEDEF_RET(pDEF_Var, pUSE_Var) |
Compact variant for checking "USE" and "DEF". More... | |
#define | MACRO_ATTRREAD_LOOPBEG |
Begin of loop that read attributes values. More... | |
#define | MACRO_ATTRREAD_LOOPEND |
End of loop that read attributes values. More... | |
#define | MACRO_FACE_ADD_QUAD(pCCW, pOut, pP1, pP2, pP3, pP4) |
Add points as quad. More... | |
#define | MACRO_FACE_ADD_QUAD_FA(pCCW, pOut, pIn, pP1, pP2, pP3, pP4) |
Add points as quad. More... | |
#define | MACRO_NODECHECK_LOOPBEGIN(pNodeName) |
Begin of loop of parsing child nodes. More... | |
#define | MACRO_NODECHECK_LOOPEND(pNodeName) |
End of loop of parsing child nodes. More... | |
#define | MACRO_NODECHECK_METADATA(pNodeName) |
#define | MACRO_USE_CHECKANDAPPLY(pDEF, pUSE, pType, pNE) |
Used for regular checking while attribute "USE" is defined. More... | |
Useful macrodefines.
#define MACRO_ATTRREAD_CHECK_REF | ( | pAttrName, | |
pVarName, | |||
pFunction | |||
) |
Check curent attribute name and if it equal to requested then read value.
Result write to output variable by reference. If result was read then "continue" will called.
[in] | pAttrName | - attribute name. |
[out] | pVarName | - output variable name. |
[in] | pFunction | - function which read attribute value and write it to pVarName. |
#define MACRO_ATTRREAD_CHECK_RET | ( | pAttrName, | |
pVarName, | |||
pFunction | |||
) |
Check curent attribute name and if it equal to requested then read value.
Result write to output variable using return value of pFunction. If result was read then "continue" will called.
[in] | pAttrName | - attribute name. |
[out] | pVarName | - output variable name. |
[in] | pFunction | - function which read attribute value and write it to pVarName. |
#define MACRO_ATTRREAD_CHECKUSEDEF_RET | ( | pDEF_Var, | |
pUSE_Var | |||
) |
Compact variant for checking "USE" and "DEF".
Also skip bbox attributes: "bboxCenter", "bboxSize". If result was read then "continue" will called.
[out] | pDEF_Var | - output variable name for "DEF" value. |
[out] | pUSE_Var | - output variable name for "USE" value. |
#define MACRO_ATTRREAD_LOOPBEG |
Begin of loop that read attributes values.
#define MACRO_ATTRREAD_LOOPEND |
End of loop that read attributes values.
#define MACRO_FACE_ADD_QUAD | ( | pCCW, | |
pOut, | |||
pP1, | |||
pP2, | |||
pP3, | |||
pP4 | |||
) |
Add points as quad.
Means that pP1..pP4 set in CCW order.
#define MACRO_FACE_ADD_QUAD_FA | ( | pCCW, | |
pOut, | |||
pIn, | |||
pP1, | |||
pP2, | |||
pP3, | |||
pP4 | |||
) |
Add points as quad.
Means that pP1..pP4 set in CCW order.
#define MACRO_NODECHECK_LOOPBEGIN | ( | pNodeName | ) |
Begin of loop of parsing child nodes.
Do not add ';' at end.
[in] | pNodeName | - current node name. |
#define MACRO_NODECHECK_LOOPEND | ( | pNodeName | ) |
End of loop of parsing child nodes.
[in] | pNodeName | - current node name. |
#define MACRO_NODECHECK_METADATA | ( | pNodeName | ) |
#define MACRO_USE_CHECKANDAPPLY | ( | pDEF, | |
pUSE, | |||
pType, | |||
pNE | |||
) |
Used for regular checking while attribute "USE" is defined.
[in] | pDEF | - string holding "DEF" value. |
[in] | pUSE | - string holding "USE" value. |
[in] | pType | - type of element to find. |
[out] | pNE | - pointer to found node element. |