RotateTool(3U)
π« RotateTool(3U) π«
okay bestie, this one lives in the InterViews Reference Manual and it's literally the little tool that spins your components around. no cap. it's called RotateTool and it's part of the Unidraw fam π«Ά
β¨ NAME β¨
RotateTool β a tool for rotating components π
πΈ SYNOPSIS πΈ
#include <Unidraw/Tools/rotate.h>
π¦ DESCRIPTION π¦
RotateTool lets the user rotate components by direct manipulation. that's the whole vibe. you grab, you spin, you slay β¨
π PUBLIC OPERATIONS π
RotateTool(ControlInfo* = nil)β create a brand newRotateTool. default arg isnil, so you can just make one and go πvirtual Manipulator* CreateManipulator(Viewer*, Event&, Transformer*)virtual void InterpretManipulator(Manipulator*)β here's the tea on how these two behave together, because the logic is lowkey specific and you need all of it:
CreateManipulator detects whether the user clicked on a component. so, like, the possibilities:
- not clicked on a component? it clears the editor's selection and returns a
nilmanipulator. bye π - clicked on a component that wasn't previously selected? then
CreateManipulatorclears the editor's selection, selects the component the user hit, and delegates manipulator creation and interpretation to it. - the component hit was the only selected component? it again delegates manipulator creation and interpretation to the component β but this time the selection is unaltered. don't touch, it's fine π
- the user clicks on one of many selected components? then
CreateManipulatordelegates manipulator creation and interpretation to the hit component without altering the selection. periodt.
ngl bestie, the whole game here is: hit detection, then delegate. the selection only changes in cases 1 and 2. memorize that and you're iconic π§
π₯ SEE ALSO π₯
Tool(3U)
and that's the whole page, fr fr π go forth and rotate responsibly π
Unidraw Β· 24 January 1991 β that's the source, the version, and the date, all wrapped up in a little bow for u πΈπ
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms