public BBQueryContext(cpBB bb1, cpShapeFilter filter1, cpSpaceBBQueryFunc func1) { // TODO: Complete member initialization this.bb = bb1; this.filter = filter1; this.func = func1; }
public void BBQuery(cpBB bb, cpShapeFilter filter, cpSpaceBBQueryFunc func, object data) { BBQueryContext context = new BBQueryContext(bb, filter, func); Lock(); { this.staticShapes.Query(context, bb, (o1, o2, s, o3) => BBQueryFunc((BBQueryContext)o1, o2 as cpShape, s, o3) , data); this.dynamicShapes.Query(context, bb, (o1, o2, s, o3) => BBQueryFunc((BBQueryContext)o1, o2 as cpShape, s, o3) , data); } Unlock(true); }