/** * Removes the specified view from the list of views. If it's not contained in the list * an exception is thrown * @param which Index of the view which is to be removed */ public void removeView( int which ) { int index = views.indexOf(which); if( index == -1 ) throw new RuntimeException("BUG. Could not find in list of views. which="+which); views.remove(index); }
int viewIdx = sp.views.data[i]; SceneObservations.View ov = observations.views[viewIdx]; int localIdx = ov.point.indexOf(pointIdx); if( localIdx == -1 ) throw new RuntimeException("Point not in view's observation!?");
int pointId = view.getPointId(pointIdx); int viewIdx = structure.points[pointId].views.indexOf(viewId); if( viewIdx < 0 ) throw new RuntimeException("Bug in structure. view has point but point doesn't have view");
int pointidx = observations.views[viewIdx].point.indexOf(i); observations.views[viewIdx].get(pointidx,n);
SceneObservations.View v = observations.getView(structureP.views.data[viewIdx]); int pointIdx = v.point.indexOf(pointId); if( pointIdx < 0 ) throw new RuntimeException("Bad structure. Point not found in view's observation " +
} else { if( node1.connections.indexOf(indexNode2) == -1 ) { node1.connections.add( indexNode2 ); node2.connections.add( i );