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


Public Member Functions | |
| UnaryOp () | |
| Default 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 double | proc (gmVector3 x) |
| virtual gmVector3 | grad (gmVector3 x) |
| grad returns the gradient of the function (proc()) for a point or region. | |
| virtual gmMatrix3 | hess (gmVector3 x) |
| hess returns the Hessian of the function (proc()) for a point or region. | |
| virtual Intervald | proc (Box< double > x) |
| proc returns the evaluation of the function that defines the Implicit surface. | |
| virtual Box3d | grad (Box< double > x) |
| virtual IMatrix3d | hess (Box< double > x) |
| virtual void | procq (gmVector3 x, double *q) |
| procq Automatically computes df/dq of children. | |
| virtual void | getqname (char **qn) |
| Automatically fills qn with operand parameter names. | |
| virtual bool | setChild (int index, Implicit *child) |
| Sets one of the operands of this operation. | |
| virtual Implicit * | getChild (int index) |
| Get the specified child. | |
| virtual int | maxChildren () |
| Max number of children that can be defined. | |
| virtual int | numChildren () |
| Number of children currently defined. | |
Protected Attributes | |
| Implicit * | m_f |
| Surface on which to operate. | |
|
|
Default constructor. Sets m_f to NULL. Definition at line 22 of file UnaryOp.h. References m_f. |
|
|
_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 ADF, Blinn, Wyvill, Mover, and Offset. Definition at line 34 of file UnaryOp.h. References Implicit::_setq(), and m_f. |
|
|
Get the specified child.
Reimplemented from Implicit. Definition at line 34 of file UnaryOp.cpp. References m_f. |
|
|
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 ADF, Blinn, Wyvill, Mover, and Offset. Definition at line 40 of file UnaryOp.h. References Implicit::getq(), and m_f. |
|
|
Automatically fills qn with operand parameter names. UnaryOp's with no parameters need not redefine getqname(). UnaryOp's with parameters should set the names of only their parameters and then call UnaryOp::getqname(qn) to let it set its operand's parameters. Reimplemented from Implicit. Reimplemented in ADF, Blinn, Wyvill, Mover, and Offset. Definition at line 51 of file UnaryOp.cpp. References Surface::getObjectName(), Implicit::getqname(), m_f, Surface::name(), Implicit::qlen(), and qlen(). Referenced by Offset::getqname(), and ADF::getqname(). |
|
|
Reimplemented from Implicit. Reimplemented in Blob, Complement, Mover, and Offset. Definition at line 53 of file UnaryOp.h. References Implicit::grad(), and m_f. |
|
|
grad returns the gradient of the function (proc()) for a point or region. Basically, the gradient returns a vector of partial derivatives, or more formally grad(proc()) = (dproc/dx,dproc/dy,dproc/dz).
Reimplemented from Implicit. Reimplemented in Blob, Complement, Mover, and Offset. Definition at line 45 of file UnaryOp.h. References Implicit::grad(), and m_f. |
|
|
Reimplemented from Implicit. Reimplemented in Blob, Complement, Mover, and Offset. Definition at line 55 of file UnaryOp.h. References Implicit::hess(), and m_f. |
|
|
hess returns the Hessian of the function (proc()) for a point or region. Basically, the Hessian is a matrix of second partial derivatives, or more formally hess(proc()) = d^2proc/dx^2, d^2proc/dxdy d^2proc/dxdz \ d^2proc/dxdy, d^2proc/dy^2 d^2proc/dydz \ d^2proc/dxdz, d^2proc/dydz d^2proc/dz^2
Reimplemented from Implicit. Reimplemented in Blob, Complement, Mover, and Offset. Definition at line 47 of file UnaryOp.h. References Implicit::hess(), and m_f. |
|
|
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. |
|
|
Number of children currently defined.
Reimplemented from Implicit. Definition at line 42 of file UnaryOp.cpp. References m_f. |
|
|
proc returns the evaluation of the function that defines the Implicit surface. In normal circumstances, the gmVector3 version of proc defaults to a pure virtual function which means that you must define proc(gmVector3) in its subclasses. When INTERVAL_EVAL_ONLY is defined, the Implicit version of proc defaults to a pure virtual function and the gmVector3 version calls the Interval version. Either way, you must define proc() in subclasses of Implicit.
Reimplemented from Implicit. Reimplemented in ADF, Blob, Complement, Mover, and Offset. Definition at line 51 of file UnaryOp.h. References Intervald, m_f, and Implicit::proc(). |
|
|
Implements Implicit. Reimplemented in ADF, Blob, Complement, Mover, and Offset. Definition at line 43 of file UnaryOp.h. References m_f, and Implicit::proc(). |
|
||||||||||||
|
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 ADF, Blinn, Wyvill, Complement, Mover, and Offset. Definition at line 62 of file UnaryOp.h. References m_f, Implicit::procq(), and 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 ADF, Blinn, Wyvill, Mover, and Offset. Definition at line 28 of file UnaryOp.h. References m_f, and Implicit::qlen(). Referenced by getqname(), and procq(). |
|
||||||||||||
|
Sets one of the operands of this operation.
Reimplemented from Implicit. Definition at line 16 of file UnaryOp.cpp. References m_f. |
|
1.3.4