yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05268
Inheritance and dispatching?
Hi,
Say I have a Gl1_A functor for shapeA.
I derive shapeB : shapeA.
The rendering dispatch will be able to display shape B without the need
of implementing a Gl1_B, that is very convenient in most cases (for
instance, currently, Aabb functor for cylinders works with
ChainedCylinders as well).
But what if I want to force a different functor for B? I just tried
deriving Gl1_B : Gl1_A, but it seems Gl1_A will always be used to
display B, witout looking down the inheritance tree. Is there a simple
workaround?
Bruno
Follow ups