Wrapper support for factory methods
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Currently, the wrapper generators only recognize a hard-coded list of factory methods that return new VTK objects, such as "New()" and "NewInstance()". The wrapper generators need to know which methods are factory methods, so that reference counts are maintained correctly - otherwise, the generated wrappers automatically increment the reference count of all returned VTK objects, leading to reference leaks for objects returned by factory methods.
This bug exists to keep track of such factory methods, so they can be updated appropriately, either by adding them to the hard-coded list, or by adding appropriate hints once a hinting mechanism is available.