Skip to main content



      Home
Home » Archived » GEF3D » Signature of IFigure3D.render(..) and other similar methods changed
Signature of IFigure3D.render(..) and other similar methods changed [message #2348] Mon, 13 April 2009 08:20
Eclipse UserFriend
Hi all,

this posting is only interesting for you if you have used GEF3D before
April 12th and do an update (to revision 69 or newer):

as already mailed to the GEF3D developer mailing list, I have changed
the signature of IFigure3D.render(..).
(This was necessary due to a problem with Java singletons used by
plugins declared as plugin-singletons.)

This change affects all render and postrender methods, that is

IFigure3D.render()
IFigure3D.postrender()
and
TransparentObject.renderTransparent()
TransparentObject.getTransparencyDepth()

All these methods now have a parameter RenderContext. Before the
change, your code will probably have looked like this:

@Override
public void postrender() {
RenderContext renderContext = RenderContext.getContext();
...
}

Since RenderContext is no singleton anymore, the static method
RenderContext.getContext() has been removed. Instead, the render
context is passed as parameter, so you will have to change your code to:

@Override
public void postrender(RenderContext renderContext) {
...
}

It's pretty simple, isn't it ;-) If you need the render context outside
that method, you may call the newly introduced method
IFigure3D.getRenderContext(), but I do not recommend that, since we are
maybe going to remove that method. The render context is usually only
needed inside the render methods and then it is passed as parameter now.

I'm sorry for any inconvenience!

Cheers

Jens
Previous Topic:Signature of IFigure3D.render(..) and other similar methods changed
Next Topic:Matching source bundle for 3.4.2 draw2d?
Goto Forum:
  


Current Time: Tue Jul 01 14:48:23 EDT 2025

Powered by FUDForum. Page generated in 0.30371 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top