Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::Draggable3DOrientation Class Reference

Draggable 3D orientation — arcball rotation from mouse drag. More...

#include <animator_set.hpp>

Public Member Functions

void begin_drag (float x, float y)
 Begin a drag at the given 2D screen position (normalized -1 to 1).
void update_drag (float x, float y)
 Update during drag.
void end_drag ()
 End the drag.
const Quaternion & orientation () const
 Current orientation quaternion.
void reset ()
 Reset to identity (also cancels any active drag).

Detailed Description

Draggable 3D orientation — arcball rotation from mouse drag.

Member Function Documentation

◆ begin_drag()

void pulp::view::Draggable3DOrientation::begin_drag ( float x,
float y )
inline

Begin a drag at the given 2D screen position (normalized -1 to 1).

◆ end_drag()

void pulp::view::Draggable3DOrientation::end_drag ( )
inline

End the drag.

◆ orientation()

const Quaternion & pulp::view::Draggable3DOrientation::orientation ( ) const
inline

Current orientation quaternion.

◆ reset()

void pulp::view::Draggable3DOrientation::reset ( )
inline

Reset to identity (also cancels any active drag).

◆ update_drag()

void pulp::view::Draggable3DOrientation::update_drag ( float x,
float y )
inline

Update during drag.


The documentation for this class was generated from the following file: