#include <BinaryOp.h>
Inheritance diagram for BinaryOp:


Public Member Functions | |
| BinaryOp () | |
| Default constructor. | |
| BinaryOp (Implicit *f, Implicit *g) | |
| Explicit constructor. | |
| virtual int | qlen () |
| qlen Automatically returns total qlen of children. | |
| virtual void | _setq (double *q) |
| setq Automatically sets q of children. | |
| virtual void | getq (double *q) |
| getq Automatically gets q of children. | |
| virtual void | procq (gmVector3 x, double *q) |
| procq Automatically computes df/dq of children. | |
| virtual void | getqname (char **qn) |
| Automatically fills qn with operands parameter names. | |
| virtual bool | setChild (int index, Implicit *child) |
| Sets one of the operands of this operation. | |
| virtual Implicit * | getChild (int index) |
| Gets one of the operands of this operation. | |
| virtual int | maxChildren () |
| Max number of children that can be defined. | |
| virtual int | numChildren () |
| Number of children currently defined. | |
Public Attributes | |
| Implicit * | m_f |
| First operand. | |
| Implicit * | m_g |
| Second operand. | |
|
|
Default constructor.
Definition at line 11 of file BinaryOp.cpp. |
|
||||||||||||
|
Explicit constructor.
Definition at line 23 of file BinaryOp.cpp. |
|
|
setq Automatically sets q of children. Does not need to be overridden if op has no parameters. Can be called from subclasses to handle children. Reimplemented from Implicit. Reimplemented in Blend, and Subtraction. Definition at line 46 of file BinaryOp.cpp. References Implicit::_setq(), m_f, m_g, and Implicit::qlen(). |
|
|
Gets one of the operands of this operation.
Reimplemented from Implicit. Definition at line 103 of file BinaryOp.cpp. |
|
|
getq Automatically gets q of children. Does not need to be overridden if op has no parameters. Can be called from subclasses to handle children. Reimplemented from Implicit. Reimplemented in Blend, and Subtraction. Definition at line 57 of file BinaryOp.cpp. References Implicit::getq(), m_f, m_g, and Implicit::qlen(). |
|
|
Automatically fills qn with operands parameter names. BinaryOp's with no parameters need not redefine getqname(). BinaryOp's with parameters should set the names of only their parameters and then call BinaryOp::getqname(qn) to let it set its operands' parameters. Reimplemented from Implicit. Reimplemented in Blend, and Subtraction. Definition at line 131 of file BinaryOp.cpp. References Surface::getObjectName(), Implicit::getqname(), m_f, m_g, Surface::name(), qlen(), and Implicit::qlen(). |
|
|
Max number of children that can be defined. This will return -1 for operators that can have an arbitrary number of operands. Reimplemented from Implicit. Definition at line 32 of file BinaryOp.h. |
|
|
Number of children currently defined.
Reimplemented from Implicit. Definition at line 113 of file BinaryOp.cpp. |
|
||||||||||||
|
procq Automatically computes df/dq of children. Does not need to be overridden if op has no parameters. Can be called from subclasses to handle children. Reimplemented from Implicit. Reimplemented in Blend, and Subtraction. Definition at line 68 of file BinaryOp.cpp. References m_f, m_g, Implicit::procq(), and Implicit::qlen(). |
|
|
qlen Automatically returns total qlen of children. Does not need to be overridden if op has no parameters. Can be called from subclasses to handle children. Reimplemented from Implicit. Reimplemented in Blend, and Subtraction. Definition at line 35 of file BinaryOp.cpp. References m_f, m_g, and Implicit::qlen(). Referenced by getqname(). |
|
||||||||||||
|
Sets one of the operands of this operation.
Reimplemented from Implicit. Definition at line 80 of file BinaryOp.cpp. |
|
|
First operand.
Reimplemented in ASubtraction, and Subtraction. Definition at line 17 of file BinaryOp.h. Referenced by Blend::_setq(), _setq(), AIntersection::AIntersection(), AUnion::AUnion(), BinaryOp(), Difference::Difference(), getChild(), Blend::getq(), getq(), Blend::getqname(), getqname(), Sum::grad(), Difference::grad(), Blend::grad(), Sum::hess(), Difference::hess(), Blend::hess(), Intersection::init(), Blend::init(), numChildren(), Sum::proc(), Difference::proc(), Blend::proc(), Blend::procq(), procq(), Blend::qlen(), qlen(), setChild(), Sum::Sum(), and Union::Union(). |
|
|
Second operand.
Definition at line 18 of file BinaryOp.h. Referenced by Blend::_setq(), _setq(), AIntersection::AIntersection(), AUnion::AUnion(), BinaryOp(), Difference::Difference(), getChild(), Blend::getq(), getq(), Blend::getqname(), getqname(), Sum::grad(), Difference::grad(), Blend::grad(), Sum::hess(), Difference::hess(), Blend::hess(), Intersection::init(), Blend::init(), numChildren(), Sum::proc(), Difference::proc(), Blend::proc(), Blend::procq(), procq(), Blend::qlen(), qlen(), setChild(), Sum::Sum(), and Union::Union(). |
1.3.4