org.gwoptics.graphics.colourmap.presets
Class HotColourmap

java.lang.Object
  extended by org.gwoptics.graphics.colourmap.RGBColourmap
      extended by org.gwoptics.graphics.colourmap.presets.HotColourmap
All Implemented Interfaces:
IColourmap

public final class HotColourmap
extends RGBColourmap

HotColourmap extends RGBColourmap and is a gradient of black at 0.0, red at 0.5 and white at 1.0. This map must be generated using generateColourmap() before use.

Since:
0.2.2
Author:
Daniel Brown 17/6/09
See Also:
RGBColourmap.generateColourmap()

Constructor Summary
HotColourmap(boolean generateMapNow)
          If you require the colourmap to be generated now rather than later by calling generateColourmap() manually set generateMapNow to true.
 
Method Summary
 
Methods inherited from class org.gwoptics.graphics.colourmap.RGBColourmap
addNode, generateColourmap, getColourAtLocation, getIntAtLocation, getNode, getNodeCount, isCentreAtZero, isGenerated, removeNode, setCentreAtZero, setNode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotColourmap

public HotColourmap(boolean generateMapNow)
If you require the colourmap to be generated now rather than later by calling generateColourmap() manually set generateMapNow to true. This is useful in the instance that you simply pass a map to a new trace.
 
 SurfaceGraph3D.addSurfaceTrace(new IGraph3DCallback(){
                public float computePoint(float X, float Z) {
                        return -(X*X + Z*Z);
                }}, 100, 100, new HotColourmap(true));
 

Parameters:
generateMapNow - Boolean value stating whether to generate map now or not.


processing library gwoptics by Daniel Brown and Andreas Freise. (c) 2009 onwards