From e0138257f4c04f0a18bcecad618fe0f007a55979 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Mon, 9 Dec 2013 10:49:35 -0800 Subject: [PATCH] Trivial additions related to attributes. --- libraries/metavoxels/src/MetavoxelData.cpp | 5 ++++- libraries/metavoxels/src/MetavoxelData.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libraries/metavoxels/src/MetavoxelData.cpp b/libraries/metavoxels/src/MetavoxelData.cpp index 33effb45b8..5f1d6c5d56 100644 --- a/libraries/metavoxels/src/MetavoxelData.cpp +++ b/libraries/metavoxels/src/MetavoxelData.cpp @@ -8,4 +8,7 @@ #include "MetavoxelData.h" - +void MetavoxelData::visitVoxels(const QVector& attributes, VoxelVisitor* visitor) { + // map attributes to layers, indices + +} diff --git a/libraries/metavoxels/src/MetavoxelData.h b/libraries/metavoxels/src/MetavoxelData.h index f7b472358a..0b04cd0f86 100644 --- a/libraries/metavoxels/src/MetavoxelData.h +++ b/libraries/metavoxels/src/MetavoxelData.h @@ -14,6 +14,7 @@ #include "AttributeRegistry.h" +class MetavoxelLayer; class MetavoxelNode; class VoxelVisitor; @@ -27,7 +28,7 @@ public: private: - + QVector _layers; }; /// A single layer of metavoxel data (a tree containing nodes of the same type). @@ -36,6 +37,7 @@ public: private: + QVector _attributes; QScopedPointer _root; }; @@ -49,6 +51,7 @@ public: private: + void* _attributeValues; QScopedPointer _children[CHILD_COUNT]; };