载入中...
搜索中...
未找到
eve::voxel_editing 命名空间参考

类

class  VoxelCatalogTarget
 Revisioned project of MagicaVoxel-style sculpted models. 更多...
 
struct  VoxelCoord
 One occupied cell inside a sculpted model. 更多...
 
struct  VoxelModelValue
 One MagicaVoxel-style object: a bounded occupancy grid. 更多...
 
struct  VoxelPaletteEntryValue
 Stable authored entry in a Voxel cube palette. 更多...
 
struct  VoxelPalettePublishedEntry
 Stable base/variant ID mapping produced by palette publication. 更多...
 
class  VoxelPaletteRuntime
 Candidate-first CubeTypeRegistry publication. 更多...
 
class  VoxelPaletteTarget
 Revisioned Voxel CubeType palette with face-material Inspector. 更多...
 
struct  VoxelPick
 DDA pick against a sculpted model. 更多...
 
struct  VoxelSocket
 One face socket: matching tag plus compatible polarity. 更多...
 
class  VoxelWorldTarget
 Non-owning authoring adapter from a live voxel world to the volume protocol. 更多...
 

类型定义

using CapabilityId = editing::CapabilityId
 
using DiagnosticSeverity = editing::DiagnosticSeverity
 
using DomainOperation = editing::DomainOperation
 
using EditRegion = editing::EditRegion
 
using EditorDiagnostic = editing::Diagnostic
 
using EditorStatus = editing::Status
 
using EditorValue = editing::Value
 
using IDomainOperationTarget = editing::IDomainOperationTarget
 
using IDomainOperationTargetStaging = editing::IDomainOperationTargetStaging
 
using IEditableTarget = editing::IEditableTarget
 
using IEditingSnapshotProvider = editing::IEditingSnapshotProvider
 
using IPropertyProvider = editing::IPropertyProvider
 
using ObjectId = editing::ObjectId
 
using PropertyDescriptor = editing::PropertyDescriptor
 
using PropertyFlag = editing::PropertyFlag
 
using PropertyPath = editing::PropertyPath
 
using PropertyReadResult = editing::PropertyReadResult
 
using PropertyReadState = editing::PropertyReadState
 
using PropertySchema = editing::PropertySchema
 
using PropertySetMode = editing::PropertySetMode
 
using PropertyType = editing::PropertyType
 
using Revision = editing::Revision
 
using RuleId = editing::RuleId
 
using SelectionSnapshot = editing::SelectionSnapshot
 
using TargetDescriptor = editing::TargetDescriptor
 
using TargetId = editing::TargetId
 

枚举

enum class  VoxelSocketKind { None , Symmetric , Male , Female }
 Polarity of one authored join socket. 更多...
 
enum class  VoxelCellFill { Empty , Partial , Filled }
 Derived occupancy of a sculpted object. 更多...
 

函数

VoxelSocketKind voxelSocketKindFromName (std::string_view name)
 Parse a socket kind name.
 
const char * voxelSocketKindName (VoxelSocketKind kind)
 Stable serialized name for a socket kind. @ownership Observed static string; callers must not free it. @lifetime Valid for the process lifetime. @thread Any.
 
bool canJoinVoxelSockets (const VoxelSocket &a, const VoxelSocket &b)
 True when two facing sockets may join.
 
int voxelOppositeFace (int face)
 Opposite FaceDir index in PosX/NegX/PosY/NegY/PosZ/NegZ order.
 
bool isVoxelModelOccupied (const VoxelModelValue &model, int x, int y, int z)
 True when model contains an occupied cell at (x,y,z).
 
VoxelCellFill voxelClassifyModelFill (const VoxelModelValue &model)
 Classify a sculpted model as empty, partial, or a solid cube.
 
VoxelPick pickVoxelModel (const VoxelModelValue &model, float ox, float oy, float oz, float dx, float dy, float dz, float maxDistance)
 Raycast occupied cells with MagicaVoxel-style previous-cell attach.
 
editing::Result< void > registerEditingCommands (editing::IEditingCommandRegistry &registry)
 Register voxel-catalog planned commands with a generic editing host.
 
std::unique_ptr< VoxelWorldTarget > createVoxelWorldTarget (std::string id, voxel::VoxelWorld *world)
 Create a voxel-world adapter.
 

变量

constexpr int kVoxelModelMaxSize = 32
 Inclusive maximum MagicaVoxel-like object edge (cells).
 
constexpr int kVoxelModelMaxOccupied = 4096
 Occupied-cell budget for one sculpted object.
 

类型定义说明

◆ CapabilityId

◆ DiagnosticSeverity

◆ DomainOperation

◆ EditorDiagnostic

◆ EditorStatus

◆ EditorValue

◆ EditRegion

◆ IDomainOperationTarget

◆ IDomainOperationTargetStaging

◆ IEditableTarget

◆ IEditingSnapshotProvider

◆ IPropertyProvider

◆ ObjectId

◆ PropertyDescriptor

◆ PropertyFlag

◆ PropertyPath

◆ PropertyReadResult

◆ PropertyReadState

◆ PropertySchema

◆ PropertySetMode

◆ PropertyType

◆ Revision

◆ RuleId

在文件 VoxelCatalog.h 第 45 行定义.

◆ SelectionSnapshot

◆ TargetDescriptor

◆ TargetId

枚举类型说明

◆ VoxelCellFill

Derived occupancy of a sculpted object.

枚举值
Empty 
Partial 
Filled 

在文件 VoxelCatalog.h 第 59 行定义.

◆ VoxelSocketKind

Polarity of one authored join socket.

枚举值
None 
Symmetric 
Male 
Female 

在文件 VoxelCatalog.h 第 56 行定义.

函数说明

◆ canJoinVoxelSockets()

EVENGINE_API_ORCHESTRATION bool eve::voxel_editing::canJoinVoxelSockets ( const VoxelSocket &  a,
const VoxelSocket &  b 
)

True when two facing sockets may join.

在文件 VoxelCatalog.cpp 第 196 行定义.

引用了 a, b , 以及 canJoinVoxelSockets().

被这些函数引用 canJoinVoxelSockets() , 以及 eve::voxel_editing::VoxelCatalogTarget::hullJoinPartners().

◆ createVoxelWorldTarget()

EVENGINE_API_ORCHESTRATION std::unique_ptr< VoxelWorldTarget > eve::voxel_editing::createVoxelWorldTarget ( std::string  id,
voxel::VoxelWorld *  world 
)

Create a voxel-world adapter.

参数
idStable target identity.
worldBorrowed voxel world that must outlive the adapter.
返回
Independently owned adapter.

在文件 VoxelWorldTarget.cpp 第 30 行定义.

引用了 world.

被这些函数引用 eve::voxelworld_target::VoxelWorldTargetModule::newTarget().

◆ isVoxelModelOccupied()

bool eve::voxel_editing::isVoxelModelOccupied ( const VoxelModelValue &  model,
int  x,
int  y,
int  z 
)

True when model contains an occupied cell at (x,y,z).

在文件 VoxelCatalog.cpp 第 210 行定义.

引用了 isVoxelModelOccupied(), model , 以及 v.

被这些函数引用 isVoxelModelOccupied() , 以及 pickVoxelModel().

◆ pickVoxelModel()

EVENGINE_API_ORCHESTRATION VoxelPick eve::voxel_editing::pickVoxelModel ( const VoxelModelValue &  model,
float  ox,
float  oy,
float  oz,
float  dx,
float  dy,
float  dz,
float  maxDistance 
)

◆ registerEditingCommands()

EVENGINE_API_ORCHESTRATION editing::Result< void > eve::voxel_editing::registerEditingCommands ( editing::IEditingCommandRegistry &  registry)

Register voxel-catalog planned commands with a generic editing host.

在文件 VoxelEditingCommands.cpp 第 87 行定义.

引用了 id, eve::voxel_editing::VoxelModelValue::id, model, name, request , 以及 target.

被这些函数引用 eve::voxel_editor::VoxelEditorModule::VoxelEditorModule().

◆ voxelClassifyModelFill()

EVENGINE_API_ORCHESTRATION VoxelCellFill eve::voxel_editing::voxelClassifyModelFill ( const VoxelModelValue &  model)

Classify a sculpted model as empty, partial, or a solid cube.

在文件 VoxelCatalog.cpp 第 215 行定义.

引用了 model, volume , 以及 voxelClassifyModelFill().

被这些函数引用 eve::voxel_editor::VoxelCatalogEditor::modelFill() , 以及 voxelClassifyModelFill().

◆ voxelOppositeFace()

int eve::voxel_editing::voxelOppositeFace ( int  face)

Opposite FaceDir index in PosX/NegX/PosY/NegY/PosZ/NegZ order.

在文件 VoxelCatalog.cpp 第 204 行定义.

引用了 voxelOppositeFace().

被这些函数引用 eve::voxel_editing::VoxelCatalogTarget::hullJoinPartners() , 以及 voxelOppositeFace().

◆ voxelSocketKindFromName()

VoxelSocketKind eve::voxel_editing::voxelSocketKindFromName ( std::string_view  name)

Parse a socket kind name.

返回
Kind, or None when the name is empty/unknown.

在文件 VoxelCatalog.cpp 第 175 行定义.

引用了 name , 以及 voxelSocketKindFromName().

被这些函数引用 eve::voxel_editing::VoxelCatalogTarget::makeSet() , 以及 voxelSocketKindFromName().

◆ voxelSocketKindName()

EVENGINE_API_ORCHESTRATION const char * eve::voxel_editing::voxelSocketKindName ( VoxelSocketKind  kind)

Stable serialized name for a socket kind. @ownership Observed static string; callers must not free it. @lifetime Valid for the process lifetime. @thread Any.

在文件 VoxelCatalog.cpp 第 182 行定义.

引用了 kind , 以及 voxelSocketKindName().

被这些函数引用 eve::voxel_editing::VoxelCatalogTarget::makeSet(), eve::voxel_editing::VoxelCatalogTarget::read(), eve::voxel_editor::VoxelCatalogEditor::selectedSocketKind() , 以及 voxelSocketKindName().

变量说明

◆ kVoxelModelMaxOccupied

constexpr int eve::voxel_editing::kVoxelModelMaxOccupied = 4096
inlineconstexpr

Occupied-cell budget for one sculpted object.

在文件 VoxelCatalog.h 第 53 行定义.

被这些函数引用 eve::voxel_editing::VoxelCatalogTarget::validate().

◆ kVoxelModelMaxSize

constexpr int eve::voxel_editing::kVoxelModelMaxSize = 32
inlineconstexpr

Inclusive maximum MagicaVoxel-like object edge (cells).

在文件 VoxelCatalog.h 第 51 行定义.