/** * removes a track from this animation * @param track the track to remove */ public void removeTrack(Track track) { tracks.remove(track); if (track instanceof ClonableTrack) { ((ClonableTrack) track).cleanUp(); } }
/** * * @param spat * @return */ public Animation cloneForSpatial(Spatial spat) { try { Animation result = (Animation) super.clone(); result.tracks = new SafeArrayList<Track>(Track.class); for (Track track : tracks) { if (track instanceof ClonableTrack) { result.tracks.add(((ClonableTrack) track).cloneForSpatial(spat)); } else { result.tracks.add(track); } } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }
/** * removes a track from this animation * @param track the track to remove */ public void removeTrack(Track track) { tracks.remove(track); if (track instanceof ClonableTrack) { ((ClonableTrack) track).cleanUp(); } }
/** * * @param spat * @return */ public Animation cloneForSpatial(Spatial spat) { try { Animation result = (Animation) super.clone(); result.tracks = new SafeArrayList<Track>(Track.class); for (Track track : tracks) { if (track instanceof ClonableTrack) { result.tracks.add(((ClonableTrack) track).cloneForSpatial(spat)); } else { result.tracks.add(track); } } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }
/** * removes a track from this animation * @param track the track to remove */ public void removeTrack(Track track) { tracks.remove(track); if (track instanceof ClonableTrack) { ((ClonableTrack) track).cleanUp(); } }
/** * * @param spat * @return */ public Animation cloneForSpatial(Spatial spat) { try { Animation result = (Animation) super.clone(); result.tracks = new SafeArrayList<Track>(Track.class); for (Track track : tracks) { if (track instanceof ClonableTrack) { result.tracks.add(((ClonableTrack) track).cloneForSpatial(spat)); } else { result.tracks.add(track); } } return result; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }