@Override protected org.scijava.java3d.SceneGraphObject createNode() { return new LineArray( vertexCount, vertexFormat, texCoordSetCount, texCoordSetMap ); }
public Geometry createLineGeometry() { final Point3f origin = new Point3f(); final Point3f onX = new Point3f(length < 1 ? 1f : length, 0, 0); final Point3f[] coords = { origin, onX }; final int N = coords.length; final Color3f colors[] = new Color3f[N]; for (int i = 0; i < N; i++) { colors[i] = color; } final LineArray ta = new LineArray(N, GeometryArray.COORDINATES | GeometryArray.COLOR_3); ta.setCoordinates(0, coords); ta.setColors(0, colors); return ta; } }
if (mode == PAIRWISE) { ta = new LineArray(nAll, GeometryArray.COORDINATES | GeometryArray.COLOR_3); ta.setValidVertexCount(nValid);
public Geometry createGeometry() { final Point3f origin = new Point3f(); final Point3f onX = new Point3f(length, 0, 0); final Point3f onY = new Point3f(0, length, 0); final Point3f onZ = new Point3f(0, 0, length); final Point3f[] coords = { origin, onX, origin, onY, origin, onZ }; final int N = coords.length; final Color3f colors[] = new Color3f[N]; for (int i = 0; i < N; i++) { colors[i] = color; } final LineArray ta = new LineArray(N, GeometryArray.COORDINATES | GeometryArray.COLOR_3); ta.setCoordinates(0, coords); ta.setColors(0, colors); // initialize the geometry info here return ta; } }
final LineArray line = new LineArray( 2 * track.size(), GeometryArray.COORDINATES | GeometryArray.COLOR_4 ); line.setCapability( GeometryArray.ALLOW_COLOR_WRITE );
final LineArray line = new LineArray( 2 * track.size(), GeometryArray.COORDINATES | GeometryArray.COLOR_4 ); line.setCapability( GeometryArray.ALLOW_COLOR_WRITE );
/** * @deprecated replaced with cloneNodeComponent(boolean forceDuplicate) */ @Override public NodeComponent cloneNodeComponent() { LineArrayRetained rt = (LineArrayRetained) retained; int texSetCount = rt.getTexCoordSetCount(); int[] texMap = null; int vertexAttrCount = rt.getVertexAttrCount(); int[] vertexAttrSizes = null; if (texSetCount > 0) { texMap = new int[rt.getTexCoordSetMapLength()]; rt.getTexCoordSetMap(texMap); } if (vertexAttrCount > 0) { vertexAttrSizes = new int[vertexAttrCount]; rt.getVertexAttrSizes(vertexAttrSizes); } LineArray l = new LineArray(rt.getVertexCount(), rt.getVertexFormat(), texSetCount, texMap, vertexAttrCount, vertexAttrSizes); l.duplicateNodeComponent(this); return l; }
new LineArray(coords.length, GeometryArray.COORDINATES | GeometryArray.COLOR_3); ga.setCoordinates(0, coords);
int numberOfPoints = 2 * numberOfEdges; LineArray la = new LineArray(numberOfPoints, LineArray.COORDINATES); la.setCoordinate(0, point2point3f(v1.getPoints().get(0))); for (int edgePoint = 0; edgePoint < edge.getSlabs().size();edgePoint++) {
object = new org.scijava.java3d.LineArray(vertexCount, vertexFormat); object.setCoordinates(0, shape.coordsArray);
case GeometryRetained.GEO_TYPE_LINE_SET: this.morphedGeometryArray = new LineArray(geometryArrays[0].validVertexCount, vFormat, texCoordSetCount, texCoordSetMap); break;