Module imp3d

Class Gradient

All Implemented Interfaces:
ChannelMap, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Serializable

public class Gradient extends VolumeFunction
See Also:
  • Field Details

  • Constructor Details

    • Gradient

      public Gradient()
  • Method Details

    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class Node
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class Node
      Returns:
      new instance of class of this node
    • getDirection

      public Vector3f getDirection()
    • setDirection

      public void setDirection(Vector3f value)
    • getFloatValue

      protected float getFloatValue(float x, float y, float z)
      Description copied from class: VolumeFunction
      Evaluates the volume function at the given point.
      Specified by:
      getFloatValue in class VolumeFunction
      Parameters:
      x - x-coordinate of 3D-point
      y - y-coordinate of 3D-point
      z - z-coordinate of 3D-point
      Returns:
      the function value at the 3D-point (x, y, z)
    • accept

      public void accept(ChannelMapNodeVisitor visitor)
      Overrides:
      accept in class VolumeFunction