|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::bind_pan_zoom_preset | ( | const std::shared_ptr< Core::Window > & | window, |
| const std::shared_ptr< Buffers::RenderProcessor > & | processor, | ||
| const Kinesis::PanZoom2DConfig & | config = {}, |
||
| const Kinesis::PanZoom2DKeyMap & | key_map = {}, |
||
| const std::string & | name = "default" |
||
| ) |
Bind the 2D pan/zoom controller to a window and render processor.
Drag pans the view; scroll zooms by scaling the orthographic half-height. View matrix is always identity; only the orthographic projection changes.
| window | Window supplying input events |
| processor | RenderProcessor that receives the ViewTransform source |
| config | Pan/zoom tuning parameters |
| key_map | Input assignments; defaults to MMB drag |
| name | Unique prefix for registered events; must be unique per window |
Definition at line 244 of file ViewportPreset.cpp.
References MayaFlux::Kinesis::apply_pan_zoom_pan(), MayaFlux::Kinesis::apply_pan_zoom_scroll(), MayaFlux::Kinesis::compute_pan_zoom_view_transform(), MayaFlux::Kinesis::PanZoom2DKeyMap::drag_button, MayaFlux::Kinesis::make_pan_zoom_state(), on_mouse_move(), on_mouse_pressed(), on_mouse_released(), and on_scroll().
Referenced by bind_pan_zoom_preset(), and bind_viewport_preset().
Here is the call graph for this function:
Here is the caller graph for this function: