I simply started from the TreeModel in
http://qt.nokia.com/doc/4.6/itemviews-simpletreemodel.html
I have a QTreeitem which contains a pointer to the parent QTreeItem and a list
of children and a osg::Node pointer to the actual scene node.
This slightly duplicates the structure of the osg::scene
If the tree control you're referring to is like most 2D UI tree
controls, then each "node" can have only one "parent". This is not the
case in OSG, nodes can have multiple parents. So you'll need to figure
out a way to represent this.
Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix
HI
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
class BuildTreeNodeVisitor : public osg::NodeVisitor
{
public:
BuildTreeNodeVisitor( QTreeWid
Hi,
I am not a QT expert but has done this in the past with MFC. You simply
create nodevisitior that will traverse the scene and create your tree items
Nick
http://www.linkedin.com/in/tnick
On Fri, Dec 18, 2009 at 11:32 PM, Jason Bellone wrote:
> Greetings,
>
> I would like to create some qt
Greetings,
I would like to create some qt-based scene edit components beginning with a
scenegraph explorer (a tree widget which lists the scenegraph objects). Can
anyone provide some advice for how to create a tree data model of an existing
scenegraph for use in a QTreeView?
P.S. I'm moving fr
5 matches
Mail list logo