:return: a set of all the VTK classes.
()
| 130 | return self.__ErrorMessage |
| 131 | |
| 132 | def GetVTKClasses(): |
| 133 | ''' |
| 134 | :return: a set of all the VTK classes. |
| 135 | ''' |
| 136 | # This pattern will get the name and type of the member in the vtk classes. |
| 137 | pattern = r'\<vtkclass (.*)\.(.*)\>' |
| 138 | regEx = re.compile(pattern) |
| 139 | vtkClasses = inspect.getmembers( |
| 140 | vtkmodules.all, inspect.isclass and not inspect.isabstract) |
| 141 | res = set() |
| 142 | for name, obj in vtkClasses: |
| 143 | result = re.match(regEx, repr(obj)) |
| 144 | if result: |
| 145 | res.add(result.group(2)) |
| 146 | return res |
| 147 | |
| 148 | def GetVTKClassGroups(vtkClasses, subStr): |
| 149 | ''' |