QcPreviewHook Struct
Test hook –preview: fixes what every character preview shows, for reproducible screenshots (one per animation, side, zoom and gaze). More...
| Header: | #include <clientcore/preview/QcPreviewHook.h> |
Public Functions
| bool | isEmpty() const |
Public Variables
| std::optional<QcPreviewPose::Animation> | animation |
| std::optional<std::pair<double, double>> | gaze |
| std::optional<QcPreviewCamera::Side> | side |
| std::optional<double> | time |
| std::optional<double> | turn |
| std::optional<double> | zoom |
Static Public Members
| QcResult<QcPreviewHook> | parse(const QString &text) |
Detailed Description
Given as "key=value" pairs separated by commas: animation=stand|walk|mine, side=front|back, turn=<degrees from the front>, zoom=<0..1>, gaze=<x>:<y> (the pointer in the view, -1..1 from the centre, y up), time=<seconds of the animation, which then stands still>.
Member Function Documentation
bool QcPreviewHook::isEmpty() const
Returns whether the hook fixes nothing.
[static] QcResult<QcPreviewHook> QcPreviewHook::parse(const QString &text)
Returns the hook given by text; an unknown key or a value out of range is an error naming it.
Member Variable Documentation
std::optional<QcPreviewPose::Animation> QcPreviewHook::animation
Fixed animation.
std::optional<std::pair<double, double>> QcPreviewHook::gaze
Fixed pointer in the view (x, y in -1..1 from the centre, y up).
std::optional<QcPreviewCamera::Side> QcPreviewHook::side
Fixed side.
std::optional<double> QcPreviewHook::time
Fixed time of the animation in seconds.
std::optional<double> QcPreviewHook::turn
Fixed turn in degrees from the front.
std::optional<double> QcPreviewHook::zoom
Fixed zoom (0..1).