package org.geogebra.common.geogebra3D.euclidian3D.openGL;
import org.geogebra.common.awt.GColor;
import org.geogebra.common.kernel.Matrix.Coords;
/**
* Class that describes the geometry of buttons for 3D view
*
* @author ggb3D
*
*/
public class PlotterViewInFrontOf {
static private float start = 60f;
static private float end = 0f;
private int[] index;
/**
* common constructor
*/
public PlotterViewInFrontOf(Manager manager) {
manager.setScalerIdentity();
index = new int[1];
// arrow
PlotterBrush brush = manager.getBrush();
brush.setArrowType(PlotterBrush.ARROW_TYPE_SIMPLE);
// sets the thickness for arrows
brush.setThickness(7, 1f);
// brush.setAffineTexture(0.5f, 0.125f);
brush.start(-1);
brush.setColor(GColor.GRAY, 0.5f);
// brush.setThickness(thickness);//re sets the thickness
brush.segment(new Coords(0, 0, start, 1), new Coords(0, 0, end, 1));
index[0] = brush.end();
brush.setArrowType(PlotterBrush.ARROW_TYPE_NONE);
manager.setScalerView();
}
// ////////////////////////////////
// INDEX
// ////////////////////////////////
/**
* return geometry index for view in front of arrow
*
* @return geometry index for view in front of arrow
*/
public int getIndex() {
return index[0];
}
}