Difference between revisions of "API Changes"

From Yade

Line 1: Line 1:
 
This page should track invasive changes in yade interface so that people porting older code have some guidelines. Always link to the changeset at launchpad. Keep the contect reverse-chronological (newest first)
 
This page should track invasive changes in yade interface so that people porting older code have some guidelines. Always link to the changeset at launchpad. Keep the contect reverse-chronological (newest first)
   
== 5.12.2009, [http://bazaar.launchpad.net/~yade-dev/yade/trunk/revision/1853 r1853] ==
+
== 5.12.2009, [http://bazaar.launchpad.net/~yade-dev/yade/trunk/revision/1853 r1853], [http://bazaar.launchpad.net/~yade-dev/yade/trunk/revision/1854 r1854], [http://bazaar.launchpad.net/~yade-dev/yade/trunk/revision/1855 r1855] ==
 
* World → Scene (thanks, Bruno)
 
* World → Scene (thanks, Bruno)
 
* BoundingVolume{Dispatcher,Functor} → Bound{Dispatcher,Functor}
 
* BoundingVolume{Dispatcher,Functor} → Bound{Dispatcher,Functor}
Line 7: Line 7:
 
* ef2_*_Sphere_Dem3DofGeom → Ig2_*_Sphere_Dem3DofGeom
 
* ef2_*_Sphere_Dem3DofGeom → Ig2_*_Sphere_Dem3DofGeom
 
* InteractingGeometry → Shape
 
* InteractingGeometry → Shape
  +
* Body::interactingGeometry → Body::shape (old name kept as deprecated reference)
  +
* Body::boundingVolume → Body::bound (old name kept as deprecated reference)
   
   

Revision as of 01:49, 5 December 2009

This page should track invasive changes in yade interface so that people porting older code have some guidelines. Always link to the changeset at launchpad. Keep the contect reverse-chronological (newest first)

5.12.2009, r1853, r1854, r1855

  • World → Scene (thanks, Bruno)
  • BoundingVolume{Dispatcher,Functor} → Bound{Dispatcher,Functor}
  • ConstitutiveLaw → LawFunctor; ConstitutiveLawDispatcher → LawDispatcher
  • ef2_*_Sphere_Dem3DofGeom → Ig2_*_Sphere_Dem3DofGeom
  • InteractingGeometry → Shape
  • Body::interactingGeometry → Body::shape (old name kept as deprecated reference)
  • Body::boundingVolume → Body::bound (old name kept as deprecated reference)


1.12.2009, r1835 & r1836

  • Rename MetaEngine → Dispatcher, EngineUnit → Functor.
  • Rename related classes as well (InteractionGeometryMetaEngine → InteractionGeometryFunctor &c)
  • Rename MetaBody to World
  • Add Engine::world which always holds pointer to current world. It will (in the future) replace World* being passed in calls to Engines all the time.

1.12.2009, r1832

  • Change prototype of InteractionGeometryMetaEngine::go from
 InteractionGeometryMetaEngine::go(const shared_ptr<InteractingGeometry>&, const shared_ptr<InteractingGeometry>&, const Se3r&, const Se3r&, const shared_ptr<Interaction>&)

to

 InteractionGeometryMetaEngine::go(const shared_ptr<InteractingGeometry>&, const shared_ptr<InteractingGeometry>&, const State&, const State&, const Vector3r& shift2, const shared_ptr<Interaction>&)

where the shift2 parameter is used for interaction over periodic boundary.

21.11.2009, r1806

  • PhysicalParameters were replaced by Material and State classes. Material_and_State_classes shows how to migrate, 'physpar' feature turns compilationof old code on.

17.11.2009, r1789

  • GeometricalModel classes were removed, they are functionally replaced by InteractingGeometry. Files depending on GeometricalModel are compiled only with the 'shape' feature on.
  • Don't compile (remove later) dispatchers & functors depending on GeometricalModel (InteractingGeometryMetaEngine)