summaryrefslogtreecommitdiff
path: root/graphics/libx3dtk/files/patch-src-X3DMFNodeFunctor.inl
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-11-18 00:15:24 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-11-18 00:15:24 +0000
commit475c319554ec0a89dded8c10f521621ca7dd7ff1 (patch)
treee482c872a263c631a15c14be6aea04ada9b3bde3 /graphics/libx3dtk/files/patch-src-X3DMFNodeFunctor.inl
parentAdd ICBM coordinates. Depending upon whether you trust Google Maps' (diff)
X3DToolKit is a portable LGPL free C++ toolkit for loading, displaying and
processing X3D models PR: ports/88184 Submitted by: German Tischler <tanis@gaspode.franken.de>
Notes
Notes: svn path=/head/; revision=148692
Diffstat (limited to 'graphics/libx3dtk/files/patch-src-X3DMFNodeFunctor.inl')
-rw-r--r--graphics/libx3dtk/files/patch-src-X3DMFNodeFunctor.inl60
1 files changed, 60 insertions, 0 deletions
diff --git a/graphics/libx3dtk/files/patch-src-X3DMFNodeFunctor.inl b/graphics/libx3dtk/files/patch-src-X3DMFNodeFunctor.inl
new file mode 100644
index 000000000000..8262681bc668
--- /dev/null
+++ b/graphics/libx3dtk/files/patch-src-X3DMFNodeFunctor.inl
@@ -0,0 +1,60 @@
+*** src/kernel/abstractNode/X3DMFNodeFunctor.inl.orig Sat Oct 29 13:12:06 2005
+--- src/kernel/abstractNode/X3DMFNodeFunctor.inl Sat Oct 29 13:13:23 2005
+***************
+*** 1,3 ****
+--- 1,4 ----
++ #include "X3DAbstractNodeForward.h"
+ #include <typeinfo>
+
+ namespace X3DTK {
+***************
+*** 20,26 ****
+ if (dynamic_cast<V *>(C) != 0)
+ {
+ (static_cast<T *>(N)->*_nodes).push_back(C);
+! X3DAbstractNode::addParentToChild(N, C);
+ return true;
+ }
+
+--- 21,27 ----
+ if (dynamic_cast<V *>(C) != 0)
+ {
+ (static_cast<T *>(N)->*_nodes).push_back(C);
+! X3DAbstractNode_addParentToChild(N, C);
+ return true;
+ }
+
+***************
+*** 35,41 ****
+
+ if (res != nodes.end())
+ {
+! X3DAbstractNode::removeParentFromChild(N, C);
+ nodes.erase(res);
+ return true;
+ }
+--- 36,42 ----
+
+ if (res != nodes.end())
+ {
+! X3DAbstractNode_removeParentFromChild(N, C);
+ nodes.erase(res);
+ return true;
+ }
+***************
+*** 51,57 ****
+ MFNode &nodes = (static_cast<T *>(N)->*_nodes);
+
+ for (MFNode::const_iterator it = nodes.begin(); it != nodes.end(); ++it)
+! X3DAbstractNode::removeParentFromChild(N, *it);
+
+ nodes.clear();
+ }
+--- 52,58 ----
+ MFNode &nodes = (static_cast<T *>(N)->*_nodes);
+
+ for (MFNode::const_iterator it = nodes.begin(); it != nodes.end(); ++it)
+! X3DAbstractNode_removeParentFromChild(N, *it);
+
+ nodes.clear();
+ }