Hello Simon,
Simon Haegler wrote:
> osgHello
>
> i'm working with 1.x cvs and i have nodes which contain a NodePtr attachment.
> in
> certain situations i need to render the nodes pointed to by the attachment
> instead of the containing node.
do these nodes all have a specific type of NodeCore, i.e. all have
Billboard cores ? In that case you could register a different function
with the RenderAction for that type of NodeCore.
> is it the best way to derive from RenderAction? which method do i need to
> override?
The behaviour of the RenderAction is mostly inside the callbacks for the
different NodeCore types (look in the NodeCores directory, the
registration with the RenderAction usually happens inside initMethod).
If you can not find a way to make use of the NodeCore type dispatch, I
think you have no choice but to override Action::apply() and reimplement
the behavior of Action::recurse (to which apply basically forwards) with
your custom additions.
Hope it helps,
Carsten
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users