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

Noise operator. More...

#include <blobtree.h>

Inheritance diagram for TreeNoise:
TreeUnary TreeOperator TreeNode

Public Member Functions

 TreeNoise (const double &, TreeNode *)
 Create a noise operator. More...
 
virtual ~TreeNoise ()
 Recursively destroys a noise node.
 
double Intensity (const Vector &) const
 Compute the field value at a given point in space. More...
 
virtual TreeNodeCopy () const
 Create a deep copy of the node.
 
double K () const
 Compute the gradient 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 along a ray. More...
 
Color GetMaterial (const Vector &, const Vector &=Vector::Null) const
 Compute the color of the node. More...
 
TreeNodeCut (const Box &) const
 Cut the sub-tree to simplify its structure inside a box. More...
 
- Public Member Functions inherited from TreeUnary
 TreeUnary (TreeNode *)
 Create a generic warping node. More...
 
virtual ~TreeUnary ()
 Recursively destroys the structure.
 
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 Vector Gradient (const Vector &) const
 Computes the gradient of the field function 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 Segment &) const
 Compute the Lipschitz constant along a segment. 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

double a
 Uniform scale in space (frequency).
 
- 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

Noise operator.

A warping node that smoothly deforms space using a noise function. ,

Constructor & Destructor Documentation

◆ TreeNoise()

TreeNoise::TreeNoise ( const double &  a,
TreeNode node 
)
explicit

Create a noise operator.

Parameters
nodeChild sub-tree.
aAmplitude of the noise.

Member Function Documentation

◆ Cut()

TreeNode * TreeNoise::Cut ( const Box b) const
virtual

Cut the sub-tree to simplify its structure inside a box.

Parameters
bThe box.

Implements TreeNode.

◆ GetMaterial()

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

Compute the color of the node.

Parameters
pPoint.
nDirection.

Reimplemented from TreeNode.

◆ Intensity()

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

Compute the field value at a given point in space.

Parameters
pPoint.

Implements TreeNode.

◆ K() [1/2]

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

Compute the local Lipschitz constant in a box.

Implements TreeNode.

◆ K() [2/2]

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

Computes the Lipschitz constant along a ray.

Parameters
rayThe ray.

Implements TreeNode.