[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/view View.java,1.5,1.6
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2005-08-25 09:45:52
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30237 Modified Files: View.java Log Message: Added static final colors Index: View.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view/View.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** View.java 17 Aug 2005 10:56:15 -0000 1.5 --- View.java 25 Aug 2005 09:45:42 -0000 1.6 *************** *** 29,32 **** --- 29,65 ---- /** The y z plane view */ public static final int VIEW_YZ = 3; + + /** the color of the x axis */ + public static final float[] X_AXIS_COLOR = new float[] {0.0f, 1.0f, 0.0f}; + + /** the color of the y axis */ + public static final float[] Y_AXIS_COLOR = new float[] {1.0f, 0.0f, 0.0f}; + + /** the color of the z axis */ + public static final float[] Z_AXIS_COLOR = new float[] {0.0f, 0.0f, 1.0f}; + + /** the std line color*/ + public static final float[] STD_LINE_COLOR = new float[] {0.1f, 0.1f, 0.1f}; + + /** Used for the actual drawing line */ + public static final float[] DRAW_COLOR = new float[] {1.0f, 1.0f, 0.0f}; + + /** Used for the actual drawing line */ + public static final float[] GRID_COLOR = new float[] {0.85f, 0.85f, 0.85f, 0.8f}; + + /** Surface color for all not selected surfaces */ + public static final float[] SURFACE_COLOR = new float[] {0.93f, 0.93f, 0.93f}; + + /** Used for selected objects */ + public static final float[] SELECTED_COLOR = new float[] {1.0f, 0.4f, 1.0f}; + + /** Can be used for setting wireframe mode */ + public static final int WIREFRAME_MODE = 0; + + /** Can be used for setting solid mode */ + public static final int SOLID_MODE = 1; + + /** Can be used for setting lighting mode */ + public static final int LIGHTING_MODE = 2; /** *************** *** 129,131 **** --- 162,170 ---- */ public Object getObjectAtPoint(double x, double y); + + /** + * Change the drawing mode + * @param mode The mode one of the statics WIREFRAME_MODE, SOLID_MODE or LIGHTING_MODE + */ + public void changeDrawMode(int mode); } |