Example #1
0
 /**
  * set or merge a Set into animationSampling, as long as Set is neither FloatSet nor DoubleSet,
  * and this call is for a Field domain
  *
  * @param set Set to merge
  * @param domain flag indicating if this call is for Field domain
  * @throws VisADException a VisAD error occurred
  */
 void setAnimationSampling(Set set, boolean domain) throws VisADException {
   if (set instanceof DoubleSet || set instanceof FloatSet) return;
   if (domain) {
     if (animationSampling == null) {
       animationSampling = set;
     } else {
       animationSampling = animationSampling.merge1DSets(set);
     }
   }
 }