|
|
@ -30,12 +30,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace WorldEditor
|
|
|
|
namespace WorldEditor
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class WorldEditNode;
|
|
|
|
class WorldEditNode;
|
|
|
|
class RootPrimitiveNode;
|
|
|
|
class RootPrimitiveNode;
|
|
|
|
class LandscapeNode;
|
|
|
|
class LandscapeNode;
|
|
|
|
class PrimitiveNode;
|
|
|
|
class PrimitiveNode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const int GRAPHICS_DATA_QT2D = 0;
|
|
|
|
|
|
|
|
const int GRAPHICS_DATA_NEL3D = 1;
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
@class Node
|
|
|
|
@class Node
|
|
|
|
@brief
|
|
|
|
@brief
|
|
|
@ -91,6 +93,10 @@ public:
|
|
|
|
/// Return this node's custom data for the key key as a QVariant.
|
|
|
|
/// Return this node's custom data for the key key as a QVariant.
|
|
|
|
QVariant data(int key) const;
|
|
|
|
QVariant data(int key) const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setGraphicsData(int key, void *pointerToData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void *graphicsData(int key) const;
|
|
|
|
|
|
|
|
|
|
|
|
/// Return a type this node.
|
|
|
|
/// Return a type this node.
|
|
|
|
virtual NodeType type() const;
|
|
|
|
virtual NodeType type() const;
|
|
|
|
|
|
|
|
|
|
|
@ -100,6 +106,7 @@ private:
|
|
|
|
Node *m_parent;
|
|
|
|
Node *m_parent;
|
|
|
|
QList<Node *> m_children;
|
|
|
|
QList<Node *> m_children;
|
|
|
|
QHash<int, QVariant> m_data;
|
|
|
|
QHash<int, QVariant> m_data;
|
|
|
|
|
|
|
|
QHash<int, void *> m_graphicsData;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|