Freestyle Python API improvements - part 4.
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Sat, 16 Feb 2013 14:21:40 +0000 (14:21 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Sat, 16 Feb 2013 14:21:40 +0000 (14:21 +0000)
commitb35a893249bed1a70f40b86615531d7d75fe12f3
treeb3e8bbbad81873f6270f4dd00d35bc3a0526f3af
parentaa9c01f384d38a8e75bfd25bbdadba3fe2246e5b
Freestyle Python API improvements - part 4.

Major API updates were made as in part 3 to address code review comments.
This revision focuses on Python wrappers of C++ iterators.

* Most getter/setter methods were reimplemented as attributes using PyGetSetDef.

* The naming of methods and attributes was fixed to follow the naming conventions
of the Blender Python API (i.e., lower case + underscores for methods and attributes,
and CamelCase for classes).  The only irregular naming change is the following, to
better indicate the functionality:

- ChainingIterator: getVertex --> next_vertex

* In addition, some code clean-up was done in both C++ and Python.  Also duplicated
definitions of predicate classes were removed.
17 files changed:
release/scripts/freestyle/style_modules/ChainingIterators.py
release/scripts/freestyle/style_modules/Functions0D.py
release/scripts/freestyle/style_modules/PredicatesU0D.py
release/scripts/freestyle/style_modules/PredicatesU1D.py
release/scripts/freestyle/style_modules/parameter_editor.py
release/scripts/freestyle/style_modules/sequentialsplit_sketchy.py
release/scripts/freestyle/style_modules/shaders.py
release/scripts/freestyle/style_modules/uniformpruning_zsort.py
source/blender/freestyle/intern/python/BPy_Iterator.cpp
source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp
source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp
source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
source/blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.cpp
source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp
source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp