build/include/grl/flatbuffer/grl/flatbuffer/VrepPath.java
Go to the documentation of this file.
1 // automatically generated, do not modify
2 
3 package grl.flatbuffer;
4 
5 import java.nio.*;
6 import java.lang.*;
7 import java.util.*;
8 import com.google.flatbuffers.*;
9 
10 @SuppressWarnings("unused")
11 public final class VrepPath extends Table {
12  public static VrepPath getRootAsVrepPath(ByteBuffer _bb) { return getRootAsVrepPath(_bb, new VrepPath()); }
13  public static VrepPath getRootAsVrepPath(ByteBuffer _bb, VrepPath obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public VrepPath __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public VrepControlPoint controlPoints(int j) { return controlPoints(new VrepControlPoint(), j); }
17  public VrepControlPoint controlPoints(VrepControlPoint obj, int j) { int o = __offset(4); return o != 0 ? obj.__init(__indirect(__vector(o) + j * 4), bb) : null; }
18  public int controlPointsLength() { int o = __offset(4); return o != 0 ? __vector_len(o) : 0; }
19 
20  public static int createVrepPath(FlatBufferBuilder builder,
21  int controlPoints) {
22  builder.startObject(1);
23  VrepPath.addControlPoints(builder, controlPoints);
24  return VrepPath.endVrepPath(builder);
25  }
26 
27  public static void startVrepPath(FlatBufferBuilder builder) { builder.startObject(1); }
28  public static void addControlPoints(FlatBufferBuilder builder, int controlPointsOffset) { builder.addOffset(0, controlPointsOffset, 0); }
29  public static int createControlPointsVector(FlatBufferBuilder builder, int[] data) { builder.startVector(4, data.length, 4); for (int i = data.length - 1; i >= 0; i--) builder.addOffset(data[i]); return builder.endVector(); }
30  public static void startControlPointsVector(FlatBufferBuilder builder, int numElems) { builder.startVector(4, numElems, 4); }
31  public static int endVrepPath(FlatBufferBuilder builder) {
32  int o = builder.endObject();
33  return o;
34  }
35  public static void finishVrepPathBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); }
36 };
37 
static void finishVrepPathBuffer(FlatBufferBuilder builder, int offset)
static void startControlPointsVector(FlatBufferBuilder builder, int numElems)
static VrepPath getRootAsVrepPath(ByteBuffer _bb, VrepPath obj)
static int createVrepPath(FlatBufferBuilder builder, int controlPoints)
static int createControlPointsVector(FlatBufferBuilder builder, int[] data)
static void addControlPoints(FlatBufferBuilder builder, int controlPointsOffset)
VrepControlPoint controlPoints(VrepControlPoint obj, int j)