Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/view
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14909
Added Files:
View.java
Log Message:
The interfacefor views
--- NEW FILE: View.java ---
//---------------------------------------------------------------------------------
// $Id: View.java,v 1.1 2005/07/26 12:40:30 rimestad Exp $
//
// Copyright (c) 2005 The BProcessor Team (http://bprocessor.sourceforge.net)
// Released under the Lesser GNU Public License v2.1
//---------------------------------------------------------------------------------
package net.sourceforge.bprocessor.gl.view;
import net.sourceforge.bprocessor.kernel.notification.NotificationListener;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.Vertex;
import net.java.games.jogl.GLEventListener;
/**
* The View Interface
*/
public interface View extends GLEventListener, NotificationListener {
/** The 3D view view */
public static final int VIEW_3D = 0;
/** The x z plane view */
public static final int VIEW_XZ = 1;
/** The x y plane view */
public static final int VIEW_XY = 2;
/** The y z plane view */
public static final int VIEW_YZ = 3;
/**
* Return the 3D coordinates for the canvas matching the given 2D coords
* @param coords The window coordinates
* @return The relative 3D coordinates
*/
public double[] toCanvasCoords(double[] coords);
/**
* Move the center left/right, up/down, forward/backward
* @param mv the move vector
*/
public void translateCenter(double[] mv);
/**
* Change the zoom factor of the camera take only R+
* 1-oo is increase zoom and 0-1 decrease 1 keep the current zoom
* @param zoom the zoom factor change
*/
public void zoom(double zoom);
/**
* Change the rotation about the x axis. Only usable in 3D
* @param change The change in R+ (is divided with the window height)
*/
public void translateRotationX(double change);
/**
* Change the rotation about the y axis. Only usable in 3D
* @param change The change in R+ (is divided with the window height)
*/
public void translateRotationY(double change);
/**
* Set activeEdge
* @param e The activeEdge
*/
public void setActiveEdge(Edge e);
/**
* Getter for activeEdge
* @return activeEdge
*/
public Edge getActiveEdge();
/**
* Setter for snapVertex
* @param v The new snapVertex
*/
public void setSnapVertex(Vertex v);
/**
* Getter for snapVertex
* @return snapVertex
*/
public Vertex getSnapVertex();
/**
* Setter for alignVertex
* @param v The new alignVertex
*/
public void setAlignVertex(Vertex v);
/**
* Getter for alignVertex
* @return alignVertex
*/
public Vertex getAlignVertex();
/**
* Setter for alignPoint
* @param coord The new alignPoint
*/
public void setAlignPoint(double[] coord);
/**
* Getter for alignPoint
* @return alignPoint
*/
public double[] getAlignPoint();
}
|