载入中...
搜索中...
未找到
eve::camera::CinemaDirector类 参考

Story-scene cinema director that push/pops overview shots and film moves on a CameraController. 更多...

#include <CinemaDirector.h>

Public 成员函数

Result< void > bind (CameraController *controller)
 Bind the gameplay camera controller this director will temporarily override. @ownership Borrowed; the caller retains ownership of the controller. @lifetime Must outlive this director while the story stack is non-empty.
 
Result< void > defineOverview (const std::string &name, float eyeX, float eyeY, float eyeZ, float targetX, float targetY, float targetZ, float fov)
 Register or replace a named establishing / overview shot.
 
Result< void > pushOverview (const std::string &name, float blendTime)
 Push an overview shot onto the story stack, blending from the live pose. @cost One framing capture (first push) plus a cinematic view switch.
 
Result< void > dolly (float distance, float duration)
 Dolly the eye along the look axis (positive toward subject). @cost Constant setup; amortized across update frames for duration seconds.
 
Result< void > crane (float deltaY, float duration)
 Raise or lower the eye while keeping the look target fixed. @cost Constant setup; amortized across update frames for duration seconds.
 
Result< void > orbitReveal (float degrees, float duration)
 Orbit the eye around the current look target by a finite yaw arc. @cost Constant setup; amortized across update frames for duration seconds.
 
Result< void > pop (float blendTime)
 Pop the top story shot and restore the previous overview or gameplay framing. @cost One framing restore or cinematic switch.
 
Result< void > update (float dt)
 Advance the active film move; call before CameraController::update. @cost Constant per frame while a move is playing.
 
bool isActive () const noexcept
 True while at least one story shot is on the stack.
 
int depth () const noexcept
 Number of stacked story shots.
 
bool isMovePlaying () const noexcept
 True while a dolly/crane/orbitReveal is in progress.
 
std::string getActiveOverview () const
 Name of the top overview, or empty when inactive.
 

详细描述

Story-scene cinema director that push/pops overview shots and film moves on a CameraController.

Gameplay framing stays owned by CameraController. While the stack is non-empty the director pauses the priority-rig director, drives cinematic views, and restores the captured framing on the final pop.

在文件 CinemaDirector.h 第 24 行定义.

成员函数说明

◆ bind()

Result< void > eve::camera::CinemaDirector::bind ( CameraController *  controller)

Bind the gameplay camera controller this director will temporarily override. @ownership Borrowed; the caller retains ownership of the controller. @lifetime Must outlive this director while the story stack is non-empty.

在文件 CinemaDirector.cpp 第 29 行定义.

引用了 isActive() , 以及 eve::Result< T >::success().

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ crane()

Result< void > eve::camera::CinemaDirector::crane ( float  deltaY,
float  duration 
)

Raise or lower the eye while keeping the look target fixed. @cost Constant setup; amortized across update frames for duration seconds.

在文件 CinemaDirector.cpp 第 191 行定义.

引用了 duration.

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ defineOverview()

Result< void > eve::camera::CinemaDirector::defineOverview ( const std::string &  name,
float  eyeX,
float  eyeY,
float  eyeZ,
float  targetX,
float  targetY,
float  targetZ,
float  fov 
)

Register or replace a named establishing / overview shot.

在文件 CinemaDirector.cpp 第 37 行定义.

引用了 eye, name, eve::Result< T >::success(), target , 以及 targetX.

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ depth()

int eve::camera::CinemaDirector::depth ( ) const
inlinenoexcept

Number of stacked story shots.

在文件 CinemaDirector.h 第 68 行定义.

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ dolly()

Result< void > eve::camera::CinemaDirector::dolly ( float  distance,
float  duration 
)

Dolly the eye along the look axis (positive toward subject). @cost Constant setup; amortized across update frames for duration seconds.

在文件 CinemaDirector.cpp 第 187 行定义.

引用了 distance , 以及 duration.

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ getActiveOverview()

std::string eve::camera::CinemaDirector::getActiveOverview ( ) const

Name of the top overview, or empty when inactive.

在文件 CinemaDirector.cpp 第 260 行定义.

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ isActive()

bool eve::camera::CinemaDirector::isActive ( ) const
inlinenoexcept

True while at least one story shot is on the stack.

在文件 CinemaDirector.h 第 66 行定义.

被这些函数引用 bind() , 以及 eve::camera::exposeCinemaDirectorBindings().

◆ isMovePlaying()

bool eve::camera::CinemaDirector::isMovePlaying ( ) const
inlinenoexcept

True while a dolly/crane/orbitReveal is in progress.

在文件 CinemaDirector.h 第 70 行定义.

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ orbitReveal()

Result< void > eve::camera::CinemaDirector::orbitReveal ( float  degrees,
float  duration 
)

Orbit the eye around the current look target by a finite yaw arc. @cost Constant setup; amortized across update frames for duration seconds.

在文件 CinemaDirector.cpp 第 195 行定义.

引用了 degrees , 以及 duration.

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ pop()

Result< void > eve::camera::CinemaDirector::pop ( float  blendTime)

Pop the top story shot and restore the previous overview or gameplay framing. @cost One framing restore or cinematic switch.

在文件 CinemaDirector.cpp 第 199 行定义.

引用了 previous, eve::camera::CameraController::restoreFraming(), eve::Result< T >::success() , 以及 top.

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ pushOverview()

Result< void > eve::camera::CinemaDirector::pushOverview ( const std::string &  name,
float  blendTime 
)

Push an overview shot onto the story stack, blending from the live pose. @cost One framing capture (first push) plus a cinematic view switch.

在文件 CinemaDirector.cpp 第 110 行定义.

引用了 eve::camera::CameraController::captureFraming(), eve::camera::CameraController::isTimelinePlaying(), name, eve::camera::CameraController::pauseTimeline(), eve::camera::CameraController::setDirectorEnabled() , 以及 eve::camera::CameraController::stopSequence().

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().

◆ update()

Result< void > eve::camera::CinemaDirector::update ( float  dt)

Advance the active film move; call before CameraController::update. @cost Constant per frame while a move is playing.

在文件 CinemaDirector.cpp 第 227 行定义.

引用了 dt, eye, eve::Result< T >::success(), t , 以及 target.

被这些函数引用 eve::camera::exposeCinemaDirectorBindings().


该类的文档由以下文件生成: