2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2009-2012 - DIGITEO - Pierre Lando
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
12 package org.scilab.modules.renderer.JoGLView.interaction.util;
14 import org.scilab.forge.scirenderer.tranformations.Vector3d;
17 * @author Pierre Lando
19 public interface PointComputer {
21 /** The number of axis */
22 static final int AXIS_NUMBER = 3;
26 * @return true if the clicked point is valid.
28 public abstract boolean isValid();
31 * First position getter.
32 * @return the first position.
34 public abstract Vector3d getFirstPosition();
37 * Second position getter.
38 * @return the second position.
40 public abstract Vector3d getSecondPosition();
43 * First axis index getter.
44 * @return the first axis index.
46 public abstract int getFirstAxisIndex();
50 * @return true if the zoom is in 2D mode.
52 public boolean is2D();