MCPcopy Create free account
hub / github.com/Kitware/VTK / GetVTKClasses

Function GetVTKClasses

Common/Core/Testing/Python/TestEmptyInput.py:132–146  ·  view source on GitHub ↗

:return: a set of all the VTK classes.

()

Source from the content-addressed store, hash-verified

130 return self.__ErrorMessage
131
132def 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
148def GetVTKClassGroups(vtkClasses, subStr):
149 ''&#x27;

Callers 1

mainFunction · 0.70

Calls 5

compileMethod · 0.80
setFunction · 0.50
matchMethod · 0.45
addMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected