Closed hasii2011 closed 1 year ago
UmlFrames.getUmlObject()
has this code when I fixed issue #522
def getUmlObjects(self) -> UmlObjects:
"""
TODO: Make this a property
Retrieve UML objects from the UML Frame
Returns: The Uml objects on this diagram
"""
umlObjects: UmlObjects = UmlObjects([])
for s in self._diagram.GetShapes():
# This is a duplicate of the UmlObject, since I cannot use NewType
if isinstance(s, (OglClass, OglLink, OglNote, OglText, OglSDMessage, OglSDInstance, OglActor, OglUseCase, OglInterface2)):
umlObjects.append(s)
return umlObjects
done as result of #522
Might need to subclass OglText to something like OglLabel