this.maxSamples = maxSamples;
point = new Point("p", BufferUtils.createVector3Buffer(maxSamples), null, null, null);
point.getSceneHints().setRenderBucketType(RenderBucketType.Ortho);
point.setDefaultColor(getColorConfig(type, ConfigKeys.PointColor.name(), new ColorRGBA(ColorRGBA.WHITE)));
point.setPointSize(getIntConfig(type, ConfigKeys.PointSize.name(), 5));
point.setAntialiased(getBooleanConfig(type, ConfigKeys.Antialias.name(), true));
if (!getBooleanConfig(type, ConfigKeys.ShowPoints.name(), false)) {
point.getSceneHints().setCullHint(CullHint.Always);
}
line = new Line("l", BufferUtils.createVector3Buffer(maxSamples), null, null, null);
line.getSceneHints().setRenderBucketType(RenderBucketType.Ortho);
line.getMeshData().setIndexMode(IndexMode.LineStrip);
line.setDefaultColor(getColorConfig(type, ConfigKeys.Color.name(), new ColorRGBA(ColorRGBA.LIGHT_GRAY)));
line.setLineWidth(getIntConfig(type, ConfigKeys.Width.name(), 3));
line.setStipplePattern(getShortConfig(type, ConfigKeys.Stipple.name(), (short) 0xFFFF));
line.setAntialiased(getBooleanConfig(type, ConfigKeys.Antialias.name(), true));
if (!getBooleanConfig(type, ConfigKeys.ShowLines.name(), true)) {
line.getSceneHints().setCullHint(CullHint.Always);