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
270 SharedPointerAttribute<PointBuffer>("pointBuffer") {270 SharedPointerAttribute<PointBuffer>("pointBuffer") {
271}271}
272 272
273MetavoxelNode* PointBufferAttribute::createMetavoxelNode(const AttributeValue& value, const MetavoxelNode* original) const {
274 return new MetavoxelNode(value, original);
275}
276
277bool 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
286AttributeValue PointBufferAttribute::inherit(const AttributeValue& parentValue) const {
287 return AttributeValue(parentValue.getAttribute());
288}
289
273static void enableClipPlane(GLenum plane, float x, float y, float z, float w) {290static void enableClipPlane(GLenum plane, float x, float y, float z, float w) {
274 GLdouble coefficients[] = { x, y, z, w };291 GLdouble coefficients[] = { x, y, z, w };
275 glClipPlane(plane, coefficients);292 glClipPlane(plane, coefficients);