History

Working on post-visit callback.

Andrzej Kapolka committed 12 years ago

Commit 28dbb601 parent 64c3a624 files · +52 −1Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 4 files). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+17−0
@@ -270,6 +270,23 @@ PointBufferAttribute::PointBufferAttribute() : · 269 unmodified lines
270270 SharedPointerAttribute<PointBuffer>("pointBuffer") {
271271 }
272272
273+MetavoxelNode* PointBufferAttribute::createMetavoxelNode(const AttributeValue& value, const MetavoxelNode* original) const {
274+ return new MetavoxelNode(value, original);
275+}
276+
277+bool PointBufferAttribute::merge(void*& parent, void* children[], bool postRead) const {
278+ for (int i = 0; i < MERGE_COUNT; i++) {
279+ if (!decodeInline<PointBufferPointer>(children[i]).isNull()) {
280+ return false;
281+ }
282+ }
283+ return true;
284+}
285+
286+AttributeValue PointBufferAttribute::inherit(const AttributeValue& parentValue) const {
287+ return AttributeValue(parentValue.getAttribute());
288+}
289+
273290 static void enableClipPlane(GLenum plane, float x, float y, float z, float w) {
274291 GLdouble coefficients[] = { x, y, z, w };
275292 glClipPlane(plane, coefficients);