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


Public Member Functions | |
| Subtraction () | |
| Default constructor. | |
| Subtraction (Implicit f, Implicit g, int cont=2) | |
| Constructor for a Subtraction. | |
| 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 int | qlen () |
| Get the length of the q vector. | |
| virtual void | getq (double *q) |
| Get the q vector. | |
| virtual void | _setq (double *q) |
| Set the current q vector. | |
| virtual void | procq (gmVector3 p, double *q) |
| Evaluate the derivative of proc with respect to q at a given point. | |
| virtual void | getqname (char **qn) |
| Get the parameter names. | |
Private Member Functions | |
| void | init (Implicit f, Implicit g, int cont) |
| Put all constructor initialization in one place. | |
Private Attributes | |
| Intersection | m_f |
| The intersection which represents the subtraction. | |
| Complement | m_comp_g |
| Storage for the complement of g. | |
|
|
Default constructor.
Definition at line 38 of file Subtraction.h. References init(). |
|
||||||||||||||||
|
Constructor for a Subtraction.
Definition at line 47 of file Subtraction.h. References init(). |
|
|
Set the current q vector.
Reimplemented from Blend. Definition at line 76 of file Subtraction.h. References Blend::_setq(), and m_f. |
|
|
Get the q vector.
Reimplemented from Blend. Definition at line 70 of file Subtraction.h. References Blend::getq(), and m_f. |
|
|
Get the parameter names.
Reimplemented from Blend. Definition at line 91 of file Subtraction.h. References Blend::getqname(), and m_f. |
|
|
Reimplemented from Blend. Definition at line 56 of file Subtraction.h. References Blend::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 Blend. Definition at line 51 of file Subtraction.h. References Blend::grad(), and m_f. |
|
|
Reimplemented from Blend. Definition at line 57 of file Subtraction.h. References Blend::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 Blend. Definition at line 52 of file Subtraction.h. References Blend::hess(), and m_f. |
|
||||||||||||||||
|
Put all constructor initialization in one place.
Definition at line 30 of file Subtraction.h. Referenced by Subtraction(). |
|
|
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 Blend. Definition at line 55 of file Subtraction.h. References Intervald, m_f, and Blend::proc(). |
|
|
Reimplemented from Blend. Definition at line 50 of file Subtraction.h. References m_f, and Blend::proc(). |
|
||||||||||||
|
Evaluate the derivative of proc with respect to q at a given point.
Reimplemented from Blend. Definition at line 84 of file Subtraction.h. References m_f, and Blend::procq(). |
|
|
Get the length of the q vector.
Reimplemented from Blend. Definition at line 63 of file Subtraction.h. References m_f, and Blend::qlen(). |
|
|
Storage for the complement of g.
Definition at line 27 of file Subtraction.h. Referenced by init(). |
|
|
The intersection which represents the subtraction. Any subtraction can simply be represented as the intersection with the complement of the function being subtracted. Reimplemented from BinaryOp. Definition at line 22 of file Subtraction.h. Referenced by _setq(), getq(), getqname(), grad(), hess(), init(), proc(), procq(), and qlen(). |
1.3.4