Blender Git Commit Log

Git Commits -> Revision d1b82d1

Revision d1b82d1 by Maxime Curioni (master)
July 23, 2008, 10:19 (GMT)
soc-2008-mxcurioni: added Iterator class, base class for all iterators in Freestyle (on the C++ side). Created the equivalent in Python BPy_Iterator with the simple interface:
- getExactTypeName()
- increment()
- decrement()
- isBegin()
- isEnd()

Contrary to previously stated, I am reverting back to implementing iterators in the (Python) API, for different reasons:
- it will make testing quicker to achieve, as I won't have to recode a big chunk of the original Python files
- it will be a base for API refactoring
- it won't prevent the use a list-based approach later (it is simple to get it from the Iterator)

Commit Details:

Full Hash: d1b82d1f15a04a7c2383f0689ceede94971f4b81
SVN Revision: 15710
Parent Commit: a9789d9
Lines Changed: +8067, -8920

4 Added Paths:

/source/blender/freestyle/intern/python/BPy_Iterator.cpp (+176, -0) (View)
/source/blender/freestyle/intern/python/BPy_Iterator.h (+35, -0) (View)
/source/blender/freestyle/intern/system/Iterator.cpp (+1, -0) (View)
/source/blender/freestyle/intern/system/Iterator.h (+38, -0) (View)

9 Modified Paths:

/source/blender/freestyle/intern/python/BPy_Freestyle.cpp (+2, -0) (Diff)
/source/blender/freestyle/intern/stroke/ChainingIterators.h (+7, -5) (Diff)
/source/blender/freestyle/intern/swig/ModuleWrapper.cpp (+7771, -8884) (Diff)
/source/blender/freestyle/intern/swig/ModuleWrapper.h (+18, -18) (Diff)
/source/blender/freestyle/intern/view_map/Interface0D.h (+4, -1) (Diff)
/source/blender/freestyle/intern/view_map/ViewMapAdvancedIterators.h (+1, -1) (Diff)
/source/blender/freestyle/intern/view_map/ViewMapIterators.h (+7, -5) (Diff)
/source/blender/freestyle/python/Freestyle.py (+6, -6) (Diff)
/source/blender/freestyle/SConscript (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021