de.jreality.tutorial.gui
Class SliderExample.HelicoidCatenoid

java.lang.Object
  extended by de.jreality.tutorial.gui.SliderExample.HelicoidCatenoid
All Implemented Interfaces:
ParametricSurfaceFactory.Immersion
Enclosing class:
SliderExample

public static class SliderExample.HelicoidCatenoid
extends java.lang.Object
implements ParametricSurfaceFactory.Immersion

This class implements the associated family of the Helicoid and Catenoid x = cos alpha sinh v sin u + sin alpha cosh v cos u y = -cos alpha sinh v cos u + sin alpha cosh v sin u z = u cos alpha + v sin alpha u \in [-Pi,Pi[ v \in \R alpha = 0 helicoid alpha = Pi/2 catenoid


Constructor Summary
SliderExample.HelicoidCatenoid()
           
 
Method Summary
 void evaluate(double u, double v, double[] xyz, int index)
          The implementation of the formula.
 double getAlpha()
           
 int getDimensionOfAmbientSpace()
          The dimension of the target space.
 boolean isImmutable()
          Mutable immersions are always recalculated when the update method is called; immutable immersions are only recalculated when the parameter domain changes.
 void setAlpha(double alpha)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliderExample.HelicoidCatenoid

public SliderExample.HelicoidCatenoid()
Method Detail

getAlpha

public double getAlpha()

setAlpha

public void setAlpha(double alpha)

evaluate

public void evaluate(double u,
                     double v,
                     double[] xyz,
                     int index)
Description copied from interface: ParametricSurfaceFactory.Immersion
The implementation of the formula. If in mathematical notation (f1(u,v), ..., fn(u,v)) is your Rn valued map, where n is the dimension of the ambient space. Then your implementation of evaluate should read
                xyz[3*index]=f1(u,v);
                xyz[3*index+1]=f2(u,v);
                   ...
                xyz[3*index+n-1]=fn(u,v);
  

Specified by:
evaluate in interface ParametricSurfaceFactory.Immersion
Parameters:
u - coordinate of the requested value
v - coordinate of the requested value
xyz - an array to put the result of the evaluation into
index - at which to put the result into xyz.

getDimensionOfAmbientSpace

public int getDimensionOfAmbientSpace()
Description copied from interface: ParametricSurfaceFactory.Immersion
The dimension of the target space.

Specified by:
getDimensionOfAmbientSpace in interface ParametricSurfaceFactory.Immersion

isImmutable

public boolean isImmutable()
Description copied from interface: ParametricSurfaceFactory.Immersion
Mutable immersions are always recalculated when the update method is called; immutable immersions are only recalculated when the parameter domain changes.

Specified by:
isImmutable in interface ParametricSurfaceFactory.Immersion