Node that evaluates a conditional (if-then-else) expression. More...
#include <SeExprNode.h>
Public Member Functions | |
SeExprCondNode (const SeExpression *expr, SeExprNode *a, SeExprNode *b, SeExprNode *c) | |
virtual bool | prep (bool wantVec) |
virtual void | eval (SeVec3d &result) const |
Evaluation method. Note: v[1] and v[2] are undefined if !isVec. |
Node that evaluates a conditional (if-then-else) expression.
Definition at line 174 of file SeExprNode.h.
SeExprCondNode::SeExprCondNode | ( | const SeExpression * | expr, | |
SeExprNode * | a, | |||
SeExprNode * | b, | |||
SeExprNode * | c | |||
) | [inline] |
Definition at line 177 of file SeExprNode.h.
void SeExprCondNode::eval | ( | SeVec3d & | v | ) | const [virtual] |
Evaluation method. Note: v[1] and v[2] are undefined if !isVec.
Reimplemented from SeExprNode.
Definition at line 266 of file SeExprNode.cpp.
References SeExprNode::_isVec, SeExprNode::child(), SeExprNode::eval(), and SeExprNode::isVec().
bool SeExprCondNode::prep | ( | bool | wantVec | ) | [virtual] |
Prepare the node (for parser use only). See the discussion at the start of SeExprNode.cpp for more info.
Reimplemented from SeExprNode.
Definition at line 253 of file SeExprNode.cpp.
References SeExprNode::_isVec, SeExprNode::child(), and SeExprNode::isVec().