|SphereShapes HashCode implementation too general for MultiEditors [message #708151]
||Tue, 02 August 2011 14:09
Registered: July 2009
I have a 3D-editor which displays SphereFigureShapes. These Shapes gets their color from a value stored in the editors input file.
That editor can be nested in an Multi3DEditor, where all the SphereShapes from the 3DEditors are shown. So they should have a different color, depending on the input-file of the particular 3DEditor.
The problem is, that every Shape has the same color. This is caused by the way the HashCode method is implemented in the org.eclipse.draw3d.shapes.SphereShape.class:
The SphereKey depends on the parameters precision and outline. Which are the same for every editor in my case.
public SphereKey(int i_precision, boolean i_outline)
Can you imagine a better implementation of the hashCode method above in order to solve my problem?
Is this something I should add to the gef3D issue tracker?
[Updated on: Tue, 02 August 2011 14:29]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02499 seconds