package org.jzy3d.chart.graphs;
import org.jzy3d.chart.ChartView;
import org.jzy3d.chart.factories.IChartComponentFactory;
import org.jzy3d.plot3d.rendering.canvas.ICanvas;
import org.jzy3d.plot3d.rendering.canvas.Quality;
import org.jzy3d.plot3d.rendering.scene.Scene;
import com.jogamp.opengl.GL;
import com.jogamp.opengl.glu.GLU;
public class GraphView extends ChartView {
public GraphView(IChartComponentFactory factory, Scene scene, ICanvas canvas, Quality quality) {
super(factory, scene, canvas, quality);
}
protected void correctCameraPositionForIncludingTextLabels(GL gl, GLU glu, float left, float right) {
/*cam.setViewPort(canvas.getRendererWidth(), canvas.getRendererHeight(), left, right);
cam.shoot(gl, glu, cameraMode);
axe.draw(gl, glu, cam);
clear(gl);
AxeBox abox = (AxeBox)axe;
BoundingBox3d newBounds = abox.getWholeBounds().scale(scaling);
if (viewmode == CameraMode.TOP){
float radius = Math.max(newBounds.getXmax() - newBounds.getXmin(), newBounds.getYmax() - newBounds.getYmin()) / 2;
radius += (radius * STRETCH_RATIO);
cam.setRenderingSphereRadius(radius);
}else
cam.setRenderingSphereRadius((float) newBounds.getRadius());
Coord3d target = newBounds.getCenter();
Coord3d eye = viewpoint.cartesian().add(target);
cam.setTarget(target);
cam.setEye(eye);*/
}
protected GLU glu = new GLU();
}
Ads help maintain this website.