oa::NodeCanvas
NodeCanvas class in the OA Ui public surface.
Public Methods
oa::Result<NodeCanvasGrid> oa::NodeCanvas::grid(oa::F32 inMinimumScreenSpacing = 8.0F, oa::F32 inBaseWorldStep = 10.0F, oa::U32 inMajorEvery = 10U, oa::U32 inSuperMajorEvery = 100U)Public Data Members
kZoomMaxconst oa::F32statickZoomMinconst oa::F32staticConstructor & Destructor Documentation
Public Method Documentation
Animate pan/zoom to fit all nodes. call every frame until isAnimating().
Parameters
inBoundsconst WorldAabb &—
inPaddingPixelsoa::F32Default: 32.0F
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Parameters
inMinimumScreenSpacingoa::F32Default: 8.0F
inBaseWorldStepoa::F32Default: 10.0F
inMajorEveryoa::U32Default: 10U
inSuperMajorEveryoa::U32Default: 100U
Returns
oa::Result<NodeCanvasGrid>The declared return value.
No public source comment is attached to this declaration.
Parameters
inScreenoa::vlm::Vec2—
inItemsoa::Span<const NodeCanvasHitItem>—
Returns
oa::Result<oa::Optional<NodeCanvasHit>>The declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Parameters
inDeltaScreenoa::vlm::Vec2—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Parameters
inScreenoa::vlm::Vec2—
Returns
oa::vlm::Vec2The declared return value.
── input: update pan/zoom from raw deltas ────────────────────────────────
Parameters
inStateconst NodeCanvasState &—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Parameters
inWoa::F32—
inHoa::F32—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
const NodeCanvasState &The declared return value.
No public source comment is attached to this declaration.
Parameters
inDeltaMsoa::F32—
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
WorldAabbThe declared return value.
── Coordinate transforms ─────────────────────────────────────────────────
Parameters
inWorldoa::vlm::Vec2—
Returns
oa::vlm::Vec2The declared return value.
zoom centered on inFocusScreen (screen pixel).
Parameters
inFactoroa::F32—
inFocusScreenoa::vlm::Vec2—
Returns
oa::StatusThe declared return value.