VertexElements() { vertexCount = 0; normals = new TFloatArrayList(); vertices = new TFloatArrayList(); tex = new TFloatArrayList(); color = new TFloatArrayList(); indices = new TIntArrayList(); flags = new TIntArrayList(); } }
public TLongArrayList getNodeIds() { if (nodeIds == null) { return new TLongArrayList(0); } return nodeIds; }
private static TIntArrayList withPositions(final Vector3i position) { final TIntArrayList positions = new TIntArrayList(); positions.add(position.x); positions.add(position.y); positions.add(position.z); return positions; }
public TIntArrayList getY() { if(y == null) { y = new TIntArrayList(); } return y; }
@Override public void put(int[] idx) { for(int i=0;i<idx.length;i++){ if(idx[i]!=-1) data.add(idx[i]); } }
/** * get a single start time in position * * @param position position to get value from * @return a single start time */ public int getStartTime(int position) { return startTimes.get(position); }
public void addNode(long id) { if (nodeIds == null) { nodeIds = new TLongArrayList(); } nodeIds.add(id); }
public long getFirstNodeId() { if (nodeIds == null) { return -1; } return nodeIds.get(0); }
/** {@inheritDoc} */ public boolean remove( double value ) { for ( int index = 0; index < _pos; index++ ) { if ( value == _data[index] ) { remove( index, 1 ); return true; } } return false; }
/** * get all end times as independent list * * @return all end times */ public TIntArrayList getEndTimes() { return new TIntArrayList(endTimes); }
@Override public void put(int i) { data.add(i); } @Override
/** * get a single end time in position * * @param position position to get value from * @return a single end time */ public int getEndTime(int position) { return endTimes.get(position); }
public TIntArrayList getX() { if (x == null) { x = new TIntArrayList(); } return x; }
/** * get all start times as independent list * * @return all start times */ public TIntArrayList getStartTimes() { return new TIntArrayList(startTimes); }