LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
dthor

Class Hierarchy: Additional Method of Modifying Class Inheritance

Status: New

The Class Hierarchy window is a great tool to see the relationships between classes. It would be even better if you could use it to change those relationships.

 

I imagine something identical to the way we program with G: connecting wires and moving around icons. A user should be able to drag a class icon around in this window and wire relationships as they see fit.

 

21133i7D399BB1CC32A52F

 

1. Notice an additional button in the Hierarchy window. This is what's used to draw the relationships.

2. By moving an item out of the row (or column if using the "Horizontal Layout") that it's in, the relationship wire disconnects.

3. Using the wiring tool, a user can reconnect the relationship at a different level. Now the red one I've moved is a grandchild of Green.

4. If the user tries to make an invalid relationship (multiple parents, children higher than parent, etc.), then the wire shows broken. The Class Hierarchy window cannot be closed until it's fixed.

 

 

Discuss! I'd love some feedback on this idea. Good? Bad? Better method available?

 

11 Comments
Braggel
Member

How about a right-click --> create child which would create a class that inherits from the one you right-clicked on. It would also create templates of functions that need to be implemented including the right connection pane etc...