载入中...
搜索中...
未找到
eve::asset_graphics::PrefabBoundsCatalog类 参考final

Owning CPU bounds catalogue; no retained prefab, reader or GPU pointers. @thread Generation-owner affine. Build before registering; prevent mutation during queries. @lifetime Composition host owns capability registration and unregisters before destroying this object. 更多...

#include <PrefabBoundsCatalog.h>

类 eve::asset_graphics::PrefabBoundsCatalog 继承关系图:
eve::IProcgenAssetBounds

Public 成员函数

Result< void > add (const EvpackStaticPrefab &prefab)
 Admit one loaded prefab snapshot, including its verified package build identity.
 
Result< std::array< float, 6 > > localBounds (const AssetRef &asset, const PersistentId &build, PrefabRootPose rootPose=PrefabRootPose::Authored) const override
 Resolve prefab-local min XYZ/max XYZ at an exact admitted package build identity.
 
- Public 成员函数 继承自 eve::IProcgenAssetBounds
virtual ~IProcgenAssetBounds ()=default
 Destroy the interface; registration lifetime remains owned by the composition host.
 

额外继承的成员函数

- 静态 Public 属性 继承自 eve::IProcgenAssetBounds
static constexpr const char * capabilityName = "IProcgenAssetBounds"
 

详细描述

Owning CPU bounds catalogue; no retained prefab, reader or GPU pointers. @thread Generation-owner affine. Build before registering; prevent mutation during queries. @lifetime Composition host owns capability registration and unregisters before destroying this object.

在文件 PrefabBoundsCatalog.h 第 12 行定义.

成员函数说明

◆ add()

Result< void > eve::asset_graphics::PrefabBoundsCatalog::add ( const EvpackStaticPrefab &  prefab)

Admit one loaded prefab snapshot, including its verified package build identity.

参数
prefabBorrowed only during this call; identities and CPU bounds are copied, no GPU pointers retained.
返回
Success or duplicate-version/missing/budget failure without replacing existing entries. @cost Cheap logarithmic insertion after expensive prefab loading, at most 4096 asset/build versions.
备注
Reimport admits another immutable version; historical references keep their exact bounds.

在文件 PrefabBoundsCatalog.cpp 第 4 行定义.

引用了 bounds, eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, key, placement, eve::PreconditionViolation, prefab, eve::ReplaceTranslationRotation , 以及 eve::Result< T >::success().

◆ localBounds()

Result< std::array< float, 6 > > eve::asset_graphics::PrefabBoundsCatalog::localBounds ( const AssetRef &  asset,
const PersistentId &  build,
PrefabRootPose  rootPose = PrefabRootPose::Authored 
) const
overridevirtual

Resolve prefab-local min XYZ/max XYZ at an exact admitted package build identity.

参数
assetCanonical asset:// UUID, borrowed only during this call.
buildCanonical package build UUID; stale builds must fail.
rootPosePlacement convention shared with renderer preparation; unknown modes must fail.
返回
Owning finite ordered bounds or a structured missing/stale failure. @thread Caller generation thread; owner prevents concurrent catalogue mutation. @reentrant No retained inputs, callbacks or locks; provider must outlive the synchronous bake. @cost Cheap catalogue lookup amortized after explicit loading; never invoked per render frame.

实现了 eve::IProcgenAssetBounds.

在文件 PrefabBoundsCatalog.cpp 第 22 行定义.

引用了 eve::Authored, build, eve::Conflict, eve::Diagnostic::error(), found, eve::AssetRef::id(), eve::InvalidArgument, eve::NotFound , 以及 eve::ReplaceTranslationRotation.


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