Blob 1.0
Public Member Functions | Protected Attributes | List of all members
TreeBlendUnion Class Reference

Local blending node. More...

#include <blobtree.h>

Inheritance diagram for TreeBlendUnion:
TreeBinary TreeOperator TreeNode

Public Member Functions

 TreeBlendUnion (TreeNode *, TreeNode *, TreeNode *)
 Creates a blending to union node given a geometrical action node and a set of children nodes. More...
 
virtual ~TreeBlendUnion ()
 Destroys a local blending operator. More...
 
double Intensity (const Vector &) const
 Computes the field value. More...
 
Vector Gradient (const Vector &) const
 Computes the gradient of the blend to union. More...
 
virtual TreeNodeCopy () const
 Creates a deep copy of blending node.
 
double K () const
 Computes the Lipschitz constant of the sub-tree.
 
double K (const Box &) const
 Compute the local Lipschitz constant in a box. More...
 
double K (const Ray &) const
 Computes the Lipschitz constant of the blending to union sub-tree. More...
 
double K (const Segment &) const
 Computes the Lipschitz constant of the sub-tree. More...
 
Color GetMaterial (const Vector &, const Vector &=Vector::Null) const
 Get the texture of blending to union node. More...
 
TreeNodeCut (const Box &) const
 Cuts the to simplify its structure inside a box.
 
- Public Member Functions inherited from TreeBinary
 TreeBinary (TreeNode *, TreeNode *)
 Creates a union operator node given a small set of children nodes. More...
 
virtual ~TreeBinary ()
 Destroys an operator, destroying all existing children.
 
virtual int Memory () const
 Compute the size of the sub-tree.
 
virtual int Nodes () const
 Compute the number of nodes of the sub-tree. More...
 
virtual int Depth () const
 Compute the dpeth of the sub-tree. More...
 
virtual void SetThreshold (const double &)
 Recursively setup the threshold value. More...
 
- Public Member Functions inherited from TreeOperator
 TreeOperator ()
 Creates an operator node.
 
virtual ~TreeOperator ()
 Destroys an operator.
 
- Public Member Functions inherited from TreeNode
 TreeNode ()
 Create a virtual node of the Blob-Tree structure.
 
virtual ~TreeNode ()
 Destroys a node.
 
virtual void IntensityGradient (const Vector &, double &, Vector &) const
 Computes the field value and the gradient at a given point in space. More...
 
virtual TreeNodeBlend (TreeNode *)
 Insert a blending node that blends the old and the new sub-tree together. More...
 
virtual TreeNodeUnion (TreeNode *)
 Insert a union node that unions the old and the new sub-tree together. More...
 
virtual TreeNodeDifference (TreeNode *)
 Insert a difference node. More...
 
virtual TreeNodeTranslate (const Vector &)
 Insert a translation node. More...
 
virtual TreeNodeRotate (const Matrix &)
 Insert a rotation node. More...
 
virtual TreeNodeScale (const Vector &)
 Insert a scaling node. More...
 
virtual double K (const RayStep &) const
 Compute the Lipschitz constant along an optimized ray-stepping segment. More...
 
virtual double K (const Sphere &) const
 Compute the Lipschitz constant in a sphere. More...
 
Box GetBox () const
 Return the bounding box of the node.
 
virtual Vector Dichotomy (Vector, Vector, double, double, double, const double &=1.0e-4)
 Compute the intersection between the implicit surface and a segment. More...
 

Protected Attributes

TreeNodeomega
 Blending region defined as a sub-tree.
 
- Protected Attributes inherited from TreeNode
Box box = Box::Null
 Bounding box of the node.
 
double T = 0.5
 Threshold value.
 

Additional Inherited Members

- Static Protected Attributes inherited from TreeNode
static const double Epsilon = 1e-6
 Epsilon value for gradient computation.
 

Detailed Description

Local blending node.

Constructor & Destructor Documentation

◆ TreeBlendUnion()

TreeBlendUnion::TreeBlendUnion ( TreeNode a,
TreeNode b,
TreeNode at 
)
explicit

Creates a blending to union node given a geometrical action node and a set of children nodes.

Parameters
atNode where blending occurs.
a,bNodes of the Blob-Tree.

◆ ~TreeBlendUnion()

TreeBlendUnion::~TreeBlendUnion ( )
virtual

Destroys a local blending operator.

Implicitly calls TreeOperator::~TreeOperator().

Member Function Documentation

◆ GetMaterial()

Color TreeBlendUnion::GetMaterial ( const Vector p,
const Vector n = Vector::Null 
) const
virtual

Get the texture of blending to union node.

See also
TreeBlend::GetMaterial()

Reimplemented from TreeNode.

◆ Gradient()

Vector TreeBlendUnion::Gradient ( const Vector p) const
virtual

Computes the gradient of the blend to union.

Parameters
pPoint.

Reimplemented from TreeNode.

◆ Intensity()

double TreeBlendUnion::Intensity ( const Vector p) const
virtual

Computes the field value.

Parameters
pPoint.

Implements TreeNode.

◆ K() [1/3]

double TreeBlendUnion::K ( const Box b) const
virtual

Compute the local Lipschitz constant in a box.

Implements TreeNode.

◆ K() [2/3]

double TreeBlendUnion::K ( const Ray ray) const
virtual

Computes the Lipschitz constant of the blending to union sub-tree.

Parameters
rayThe ray.

Implements TreeNode.

◆ K() [3/3]

double TreeBlendUnion::K ( const Segment s) const
virtual

Computes the Lipschitz constant of the sub-tree.

Parameters
sThe segment.

Reimplemented from TreeNode.