org.primordion.xholon.io.vrml
Class AbstractVrmlColor

java.lang.Object
  extended byorg.primordion.xholon.io.vrml.AbstractVrmlColor
All Implemented Interfaces:
IVrmlColor
Direct Known Subclasses:
VrmlColorCell

public abstract class AbstractVrmlColor
extends java.lang.Object
implements IVrmlColor

VRML VrmlColor.

ColorSpace downloaded Dec 31, 2002 from: http://www.codeguru.com/dialog/ColorSpace.shtml

Author of convert routine: "This article was contributed by Rajiv Ramachandran."

The rest of this file is my code (KSW). Converted Oct 2005 from C++ to Java (KSW).

Converts RGB values to numbers between 0.0 and 1.0, for example:

White: 255 255 255 = 1.0 1.0 1.0

Black: 0 0 0 = 0.0 0.0 0.0

Since:
0.1 (Created on Oct 27, 2005)
Author:
Ken Webb

Field Summary
 
Fields inherited from interface org.primordion.xholon.io.vrml.IVrmlColor
MaxColorArraySize
 
Constructor Summary
AbstractVrmlColor()
           
 
Method Summary
 RGBTypeInt convertHSVtoRGB(HSVType hsv)
          Convert from HSV to RGB color model.
 void testVrmlColor()
          Test VrmlColor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.primordion.xholon.io.vrml.IVrmlColor
fillColorArray
 

Constructor Detail

AbstractVrmlColor

public AbstractVrmlColor()
Method Detail

convertHSVtoRGB

public RGBTypeInt convertHSVtoRGB(HSVType hsv)
Convert from HSV to RGB color model.

Specified by:
convertHSVtoRGB in interface IVrmlColor
Parameters:
hsv - HSV colors.
Returns:
RGB colors.

testVrmlColor

public void testVrmlColor()
Test VrmlColor. TODO move this to a JUnit test case.