Adding smooth line

This commit is contained in:
Martin Pernollet 2022-07-28 13:42:55 +02:00
parent 3d79fc20ae
commit 35b013bde3
3 changed files with 11 additions and 2 deletions

View File

@ -226,6 +226,8 @@ public class Chart {
}
// Restore 3D layout to view
//viewPositionMode = ViewPositionMode.FREE;
View view = getView();
view.setViewPoint(viewpoint, false);
view.setViewPositionMode(viewPositionMode);

View File

@ -130,11 +130,19 @@ public class Quality {
return smoothLine;
}
public Quality setSmoothEdge(boolean smoothLine) {
public Quality setSmoothLine(boolean smoothLine) {
this.smoothLine = smoothLine;
return this;
}
/**
* Use setSmoothLine instead
*/
@Deprecated
public Quality setSmoothEdge(boolean smoothLine) {
return setSmoothLine(smoothLine);
}
public boolean isSmoothPoint() {
return smoothPoint;
}

View File

@ -109,7 +109,6 @@ public class NativeDesktopPainter extends AbstractPainter implements IPainter {
// Activate Depth buffer
if (quality.isDepthActivated()) {
gl.glEnable(GL.GL_DEPTH_TEST);
gl.glDepthFunc(GL.GL_LEQUAL);
} else {