mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:58:59 +02:00
Trivial additions related to attributes.
This commit is contained in:
parent
039a2410b7
commit
e0138257f4
2 changed files with 8 additions and 2 deletions
|
@ -8,4 +8,7 @@
|
||||||
|
|
||||||
#include "MetavoxelData.h"
|
#include "MetavoxelData.h"
|
||||||
|
|
||||||
|
void MetavoxelData::visitVoxels(const QVector<AttributeID>& attributes, VoxelVisitor* visitor) {
|
||||||
|
// map attributes to layers, indices
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
#include "AttributeRegistry.h"
|
#include "AttributeRegistry.h"
|
||||||
|
|
||||||
|
class MetavoxelLayer;
|
||||||
class MetavoxelNode;
|
class MetavoxelNode;
|
||||||
class VoxelVisitor;
|
class VoxelVisitor;
|
||||||
|
|
||||||
|
@ -27,7 +28,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
QVector<MetavoxelLayer> _layers;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A single layer of metavoxel data (a tree containing nodes of the same type).
|
/// A single layer of metavoxel data (a tree containing nodes of the same type).
|
||||||
|
@ -36,6 +37,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
QVector<AttributeID> _attributes;
|
||||||
QScopedPointer<MetavoxelNode> _root;
|
QScopedPointer<MetavoxelNode> _root;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -49,6 +51,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
void* _attributeValues;
|
||||||
QScopedPointer<MetavoxelNode> _children[CHILD_COUNT];
|
QScopedPointer<MetavoxelNode> _children[CHILD_COUNT];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue