build/include/grl/flatbuffer/grl/flatbuffer/VrepControlPoint.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 VrepControlPoint extends Table {
12  public static VrepControlPoint getRootAsVrepControlPoint(ByteBuffer _bb) { return getRootAsVrepControlPoint(_bb, new VrepControlPoint()); }
13  public static VrepControlPoint getRootAsVrepControlPoint(ByteBuffer _bb, VrepControlPoint obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public VrepControlPoint __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public Vector3d position() { return position(new Vector3d()); }
17  public Vector3d position(Vector3d obj) { int o = __offset(4); return o != 0 ? obj.__init(o + bb_pos, bb) : null; }
18  public EulerXYZd rotation() { return rotation(new EulerXYZd()); }
19  public EulerXYZd rotation(EulerXYZd obj) { int o = __offset(6); return o != 0 ? obj.__init(o + bb_pos, bb) : null; }
20  public double relativeVelocity() { int o = __offset(8); return o != 0 ? bb.getDouble(o + bb_pos) : 1.0; }
21  public int bezierPointCount() { int o = __offset(10); return o != 0 ? bb.getInt(o + bb_pos) : 1; }
22  public double interpolationFactor1() { int o = __offset(12); return o != 0 ? bb.getDouble(o + bb_pos) : 0.5; }
23  public double interpolationFactor2() { int o = __offset(14); return o != 0 ? bb.getDouble(o + bb_pos) : 0.5; }
24  public double virtualDistance() { int o = __offset(16); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; }
25  public int auxiliaryFlags() { int o = __offset(18); return o != 0 ? bb.getInt(o + bb_pos) : 0; }
26  public double auxiliaryChannel1() { int o = __offset(20); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; }
27  public double auxiliaryChannel2() { int o = __offset(22); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; }
28  public double auxiliaryChannel3() { int o = __offset(24); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; }
29  public double auxiliaryChannel4() { int o = __offset(26); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; }
30 
31  public static void startVrepControlPoint(FlatBufferBuilder builder) { builder.startObject(12); }
32  public static void addPosition(FlatBufferBuilder builder, int positionOffset) { builder.addStruct(0, positionOffset, 0); }
33  public static void addRotation(FlatBufferBuilder builder, int rotationOffset) { builder.addStruct(1, rotationOffset, 0); }
34  public static void addRelativeVelocity(FlatBufferBuilder builder, double relativeVelocity) { builder.addDouble(2, relativeVelocity, 1.0); }
35  public static void addBezierPointCount(FlatBufferBuilder builder, int bezierPointCount) { builder.addInt(3, bezierPointCount, 1); }
36  public static void addInterpolationFactor1(FlatBufferBuilder builder, double interpolationFactor1) { builder.addDouble(4, interpolationFactor1, 0.5); }
37  public static void addInterpolationFactor2(FlatBufferBuilder builder, double interpolationFactor2) { builder.addDouble(5, interpolationFactor2, 0.5); }
38  public static void addVirtualDistance(FlatBufferBuilder builder, double virtualDistance) { builder.addDouble(6, virtualDistance, 0.0); }
39  public static void addAuxiliaryFlags(FlatBufferBuilder builder, int auxiliaryFlags) { builder.addInt(7, auxiliaryFlags, 0); }
40  public static void addAuxiliaryChannel1(FlatBufferBuilder builder, double auxiliaryChannel1) { builder.addDouble(8, auxiliaryChannel1, 0.0); }
41  public static void addAuxiliaryChannel2(FlatBufferBuilder builder, double auxiliaryChannel2) { builder.addDouble(9, auxiliaryChannel2, 0.0); }
42  public static void addAuxiliaryChannel3(FlatBufferBuilder builder, double auxiliaryChannel3) { builder.addDouble(10, auxiliaryChannel3, 0.0); }
43  public static void addAuxiliaryChannel4(FlatBufferBuilder builder, double auxiliaryChannel4) { builder.addDouble(11, auxiliaryChannel4, 0.0); }
44  public static int endVrepControlPoint(FlatBufferBuilder builder) {
45  int o = builder.endObject();
46  return o;
47  }
48  public static void finishVrepControlPointBuffer(FlatBufferBuilder builder, int offset) { builder.finish(offset); }
49 };
50 
static void addAuxiliaryFlags(FlatBufferBuilder builder, int auxiliaryFlags)
static VrepControlPoint getRootAsVrepControlPoint(ByteBuffer _bb, VrepControlPoint obj)
static void addPosition(FlatBufferBuilder builder, int positionOffset)
static void addRelativeVelocity(FlatBufferBuilder builder, double relativeVelocity)
static void addVirtualDistance(FlatBufferBuilder builder, double virtualDistance)
static void addRotation(FlatBufferBuilder builder, int rotationOffset)
static void addInterpolationFactor2(FlatBufferBuilder builder, double interpolationFactor2)
static void addAuxiliaryChannel4(FlatBufferBuilder builder, double auxiliaryChannel4)
static void addAuxiliaryChannel1(FlatBufferBuilder builder, double auxiliaryChannel1)
static void addAuxiliaryChannel2(FlatBufferBuilder builder, double auxiliaryChannel2)
static void finishVrepControlPointBuffer(FlatBufferBuilder builder, int offset)
static void addBezierPointCount(FlatBufferBuilder builder, int bezierPointCount)
static void addInterpolationFactor1(FlatBufferBuilder builder, double interpolationFactor1)
static void addAuxiliaryChannel3(FlatBufferBuilder builder, double auxiliaryChannel3)