/** * Resets the current pointer collection, notifying the filters, and optionally resetting the * current set of filtering constraints (extents). * * @param pc new pointer collection to be displayed and presented for filtering * @param resetFilteringConstraints boolean flag, if true, then set all filtering constaints * (extents) to match the extremes of the data in the pointer collection */ public void setPointerCollection(PointerCollectionGroup pcg, boolean resetFilteringConstraints) { if (pcg == null) return; mCurrPC = pcg; fdm.newPointerCollection(mCurrPC); if (resetFilteringConstraints) { filterConstraintsMgr.resetFilterConstraints( new FilterConstraints( NdEditFormulas.GetPrettyRange(mCurrPC.getMinMaxLat(), -90.0, 90.0), NdEditFormulas.GetPrettyRange(mCurrPC.getMinMaxLon(), -180.0, 180.0), NdEditFormulas.GetPrettyRange(mCurrPC.getMinMaxDepth()), NdEditFormulas.GetPrettyRange(mCurrPC.getMinMaxTime()), null, null)); } }