ReshapeTool(3U)

πŸ’– ReshapeTool β€” from the InterViews Reference Manual, bestie πŸ’–

Okay so real talk, this is the page for ReshapeTool from the InterViews gang, manual section 3U. Let's get into it 🫢


✨ NAME ✨

ReshapeTool β€” it's the tool for reshaping, or like, otherwise altering components' structures. Structural glow-ups only, no cap πŸ’…


🌸 SYNOPSIS 🌸

#include <Unidraw/Tools/reshape.h>

That's it, that's the whole vibe check.


πŸ¦‹ DESCRIPTION πŸ¦‹

ReshapeTool is the one that lets the user do component-specific structural changes by direct manipulation. So instead of typing stuff in, you're literally grabbing the thing and reshaping it with your own two hands. Main character energy fr fr πŸ”₯


πŸ‘‘ PUBLIC OPERATIONS πŸ‘‘

  • ReshapeTool(ControlInfo* = nil) β€” makes a brand new ConnectTool. Yes bestie, it really does say ConnectTool right there in the source page, that's not me being chaotic, that's just what it says πŸ’€
  • virtual Manipulator* CreateManipulator(Viewer*, Event&, Transformer*)
  • virtual void InterpretManipulator(Manipulator*) β€” so here's the tea πŸ“: CreateManipulator peeks at whether the user clicked on a component. If they did not, it hands you back a nil manipulator, nothing, nada, go home. But if a component did get hit? Then CreateManipulator clears the editor's selection, selects that component, and then delegates both the manipulator creation and the interpretation to that component. It's giving "not me doing the work, the component does the work, I just make the intro" 😭✨

🌈 SEE ALSO 🌈

  • Tool(3U) β€” go read that one too, bestie, it's the whole family 🧚

And that's the page!! This whole thing comes from Unidraw, dated 24 January 1991 β€” yes, a vintage, an icon, a legend πŸ‘‘πŸ’– Thanks for reading, mwah πŸ’