001: /*
002: * @(#)Constants.java 1.0, 1 April 2000
003: *
004: * Copyright (c) 2000 Silv?re Martin-Michiellot All Rights Reserved.
005: *
006: * Silv?re Martin-Michiellot grants you ("Licensee") a non-exclusive,
007: * royalty free, license to use, modify and redistribute this
008: * software in source and binary code form,
009: * provided that i) this copyright notice and license appear on all copies of
010: * the software; and ii) Licensee does not utilize the software in a manner
011: * which is disparaging to Silv?re Martin-Michiellot.
012: *
013: * This software is provided "AS IS," without a warranty of any kind. ALL
014: * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
015: * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
016: * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. Silv?re Martin-Michiellot
017: * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
018: * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
019: * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL
020: * Silv?re Martin-Michiellot OR ITS LICENSORS BE LIABLE
021: * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
022: * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
023: * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
024: * OR INABILITY TO USE SOFTWARE, EVEN IF Silv?re Martin-Michiellot HAS BEEN
025: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
026: *
027: * This software is not designed or intended for use in on-line control of
028: * aircraft, air traffic, aircraft navigation or aircraft communications; or in
029: * the design, construction, operation or maintenance of any nuclear
030: * facility. Licensee represents and warrants that it will not use or
031: * redistribute the Software for such purposes.
032: *
033: * @Author: Silv?re Martin-Michiellot
034: *
035: */
036:
037: package com.db.client;
038:
039: import javax.vecmath.*;
040:
041: public class Constants extends Object {
042:
043: // Well known colors, positions, and directions
044: public final static Color3f COLOR_WHITE = new Color3f(1.0f, 1.0f,
045: 1.0f);
046: public final static Color3f COLOR_GRAY = new Color3f(0.7f, 0.7f,
047: 0.7f);
048: public final static Color3f COLOR_DARKGRAY = new Color3f(0.2f,
049: 0.2f, 0.2f);
050: public final static Color3f COLOR_BLACK = new Color3f(0.0f, 0.0f,
051: 0.0f);
052: public final static Color3f COLOR_RED = new Color3f(1.0f, 0.0f,
053: 0.0f);
054: public final static Color3f COLOR_DARKRED = new Color3f(0.3f, 0.0f,
055: 0.0f);
056: public final static Color3f COLOR_YELLOW = new Color3f(1.0f, 1.0f,
057: 0.0f);
058: public final static Color3f COLOR_DARKYELLOW = new Color3f(0.3f,
059: 0.3f, 0.0f);
060: public final static Color3f COLOR_GREEN = new Color3f(0.0f, 1.0f,
061: 0.0f);
062: public final static Color3f COLOR_DARKGREEN = new Color3f(0.0f,
063: 0.3f, 0.0f);
064: public final static Color3f COLOR_CYAN = new Color3f(0.0f, 1.0f,
065: 1.0f);
066: public final static Color3f COLOR_BLUE = new Color3f(0.0f, 0.0f,
067: 1.0f);
068: public final static Color3f COLOR_DARKBLUE = new Color3f(0.0f,
069: 0.0f, 0.3f);
070: public final static Color3f COLOR_MAGENTA = new Color3f(1.0f, 0.0f,
071: 1.0f);
072:
073: public final static Vector3f VECTOR_NULL = new Vector3f(0.0f, 0.0f,
074: 0.0f);
075: public final static Vector3f VECTOR_PLUSX = new Vector3f(1.0f,
076: 0.0f, 0.0f);
077: public final static Vector3f VECTOR_MINUSX = new Vector3f(-1.0f,
078: 0.0f, 0.0f);
079: public final static Vector3f VECTOR_PLUSY = new Vector3f(0.0f,
080: 1.0f, 0.0f);
081: public final static Vector3f VECTOR_MINUSY = new Vector3f(0.0f,
082: -1.0f, 0.0f);
083: public final static Vector3f VECTOR_PLUSZ = new Vector3f(0.0f,
084: 0.0f, 1.0f);
085: public final static Vector3f VECTOR_MIUSZ = new Vector3f(0.0f,
086: 0.0f, -1.0f);
087:
088: public final static Point3f POSITION_ORIGIN = new Point3f(0.0f,
089: 0.0f, 0.0f);
090: public final static Point3f POSITION_PLUSX = new Point3f(1.0f,
091: 0.0f, 0.0f);
092: public final static Point3f POSITION_MINUSX = new Point3f(-1.0f,
093: 0.0f, 0.0f);
094: public final static Point3f POSITION_PLUSY = new Point3f(0.0f,
095: 1.0f, 0.0f);
096: public final static Point3f POSITION_MINUSY = new Point3f(0.0f,
097: -1.0f, 0.0f);
098: public final static Point3f POSITION_PLUSZ = new Point3f(0.0f,
099: 0.0f, 1.0f);
100: public final static Point3f POSITION_MINUSZ = new Point3f(0.0f,
101: 0.0f, -1.0f);
102:
103: }
|