Hi,
It is because it's parent is inactive. Inactivating a node stops
rendering for that entire subgraph.
It sounds like you need to rearrange your graph to get what you want
(make sure geometries are leaf-nodes), or activate the child and all
nodes on the path back to root, if that is applicable.
Regards,
/Marcus
Kitty Tang wrote:
Hi,
Now comes another question. When I set inactive of a Node, then all the
children are inactive. Then when I need one of the child active,
setActive(TRUE), it doenst work. Is that because this child node is not
directly attached to the root scence node or is it because of it parent
is inactive? How can I solve this problem?
Many thanks
Kitty
Hello Kitty,
I am working on a project which runtime load in a model with tree
control generation.So I want to control tree view to control graph
rendering, which means when i deselect a tree node, some part of
model should disappear or hide in the graph. And select action is
doing vice versa. I think just simply erase the node is stupid
somehow and its hard to add back with original structure. Is
RenderAction can control wich part of graph is rendered or not ?
setActive(bool) is what you are looking for.
what
is the "isVisible(Node *node)" function working for? how can i
control the visibility of those nodes in the graph? And what is the
connection between Node * and NodePtr?
I'll leave that to others.
Regards
Matthias
--
+---------------------+----------------------------+
| VREC GmbH | |
| Matthias Stiller | |
| Robert-Bosch-Str. 7 | tel: +49 6151 4921034 |
| 64293 Darmstadt | web: http://www.vrec.de |
| Germany | mail: [EMAIL PROTECTED] |
+---------------------+----------------------------+
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users