File: SoNodeKitPath.i

package info (click to toggle)
pivy 0.6.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,216 kB
  • sloc: python: 36,331; cpp: 787; ansic: 733; makefile: 30; sh: 27; objc: 5
file content (16 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%extend SoNodeKitPath {      

/* extend __iter__ to return a new iterator object */
%pythoncode %{
   def __iter__(self):
      for i in range(self.getLength()):
         yield self.getNode(i)
         
   def index(self):
      for i in range(self.getLength()):
         yield self.getIndex(i)
%}

  int __eq__(const SoNodeKitPath &u) { return *self == u; }
  int __nq__(const SoNodeKitPath &u) { return !(*self == u); }
}