cvhciKIT / sloth

Sloth is a tool for labeling image and video data for computer vision research.
Other
608 stars 199 forks source link

relation between items and Inserters #162

Open sascha-monville opened 6 years ago

sascha-monville commented 6 years ago

I cannot figure out how and where a link between items and inserters is established. Im trying to set up a skeleton annotation which should consist of several PointItem's. The SequenceInserter looked great in the beginning but doesnt allow me to edit Point. Afaik this belongs to the implementation of the treeviews model, right? Even though it uses the PointItemInserter it is, however not possible to move the Point which doesnt look like a PointItem to me at all. When trying to set up the Points (QGraphicsEllipseItem) on my own there are several strange behaivors of sloth. First: i get orphaned QGraphicsEllipseItem sometimes and Second: when a PointItemInserter created QGraphicsEllipseItem is placed near by a self created QGraphicsEllipseItem the self created has some kind of reference to it. When i move the PointInserter Item its fine. but when moving the other QGraphicsEllipseItem the PointInserter Item is moved too. (sounds complicated, i know.. sry)

I guess im not constructing the PointItemInserter in the right place or manner, but im no longer sure if there is any chance to create an XYInserter which consists of serveral editable Points... Any ideas?

Edit: The PointItemInserter places an object with some kind of onPositionChanged support -> updates values in the left panel. But my own Inserter which invokes a PointInserter to create a Point does not update the values.