Script-friendly collection of attributed 3D samples. 更多...
#include <PointSet.h>
Public 成员函数 | |
| int | getCount () const |
| Returns the count. | |
| bool | empty () const |
| Empty. | |
| void | clear () |
| Clears . | |
| void | reserve (std::size_t count) |
| Reserve point storage without changing point or attribute row counts. | |
| int | appendPoint (ProcgenPoint point) |
| Append a point with an empty attribute row and return its row index. | |
| Result< int > | appendPointFrom (const PointSet &source, std::size_t sourceIndex) |
| Append a point and its attributes from another set. | |
| Result< void > | clearPointAttributes (std::size_t index) |
| Clear all metadata values on an existing point while retaining the set schema. | |
| int | add (float x, float y, float z) |
| void | setPosition (int index, float x, float y, float z) |
| Sets the position. | |
| float | getX (int index) const |
| Returns the x. | |
| float | getY (int index) const |
| Returns the y. | |
| float | getZ (int index) const |
| Returns the z. | |
| void | setNormal (int index, float x, float y, float z) |
| Sets the normal. | |
| float | getNormalX (int index) const |
| Returns the normal x. | |
| float | getNormalY (int index) const |
| Returns the normal y. | |
| float | getNormalZ (int index) const |
| Returns the normal z. | |
| void | setYaw (int index, float yaw) |
| Sets the yaw. | |
| float | getYaw (int index) const |
| Returns the yaw. | |
| void | setRotation (int index, float pitch, float yaw, float roll) |
| Set the point's local Euler rotation in degrees. | |
| float | getPitch (int index) const |
| Return the point's local pitch in degrees. | |
| float | getRoll (int index) const |
| Return the point's local roll in degrees. | |
| void | setScale (int index, float x, float y, float z) |
| Sets the scale. | |
| float | getScaleX (int index) const |
| Returns the scale x. | |
| float | getScaleY (int index) const |
| Returns the scale y. | |
| float | getScaleZ (int index) const |
| Returns the scale z. | |
| void | setBounds (int index, float minX, float minY, float minZ, float maxX, float maxY, float maxZ) |
| Set local-space point bounds before scale and rotation are applied. | |
| float | getBoundsMinX (int index) const |
| Return the local-space minimum X bound. | |
| float | getBoundsMinY (int index) const |
| Return the local-space minimum Y bound. | |
| float | getBoundsMinZ (int index) const |
| Return the local-space minimum Z bound. | |
| float | getBoundsMaxX (int index) const |
| Return the local-space maximum X bound. | |
| float | getBoundsMaxY (int index) const |
| Return the local-space maximum Y bound. | |
| float | getBoundsMaxZ (int index) const |
| Return the local-space maximum Z bound. | |
| void | setColor (int index, float red, float green, float blue, float alpha) |
| Set the normalized linear RGBA point color. | |
| float | getColorR (int index) const |
| Return the point's linear red channel. | |
| float | getColorG (int index) const |
| Return the point's linear green channel. | |
| float | getColorB (int index) const |
| Return the point's linear blue channel. | |
| float | getColorA (int index) const |
| Return the point's linear alpha channel. | |
| void | setSteepness (int index, float steepness) |
| Set normalized surface steepness metadata in the inclusive range [0, 1]. | |
| float | getSteepness (int index) const |
| Return normalized point steepness metadata. | |
| void | setDensity (int index, float density) |
| Sets the density. | |
| float | getDensity (int index) const |
| Returns the density. | |
| void | setPointSeed (int index, uint32_t seed) |
| Sets the point seed. | |
| uint32_t | getPointSeed (int index) const |
| Returns the point seed. | |
| std::uint64_t | getPointId (int index) const |
| Return the stable point identity, or zero when it has not been assigned. | |
| Result< void > | trySetPointId (int index, std::uint64_t id) |
| Assign a unique non-zero point identity without mutating on failure. | |
| Result< void > | assignPointIds (std::uint64_t namespaceId) |
| Fill zero identities deterministically and reject pre-existing duplicates. | |
| Result< void > | trySetFloatAttribute (int index, const std::string &name, float value) |
| Canonical checked float metadata write. | |
| void | setFloatAttribute (int index, const std::string &name, float value) |
| Compatibility-only unchecked script setter; canonical code uses trySetFloatAttribute. | |
| float | getFloatAttribute (int index, const std::string &name, float fallback) const |
| Returns the float attribute. | |
| bool | hasFloatAttribute (int index, const std::string &name) const |
| True when float attribute. | |
| Result< void > | trySetIntAttribute (int index, const std::string &name, std::int64_t value) |
| Canonical checked signed integer metadata write. | |
| void | setIntAttribute (int index, const std::string &name, std::int64_t value) |
| Compatibility-only unchecked script setter; canonical code uses trySetIntAttribute. | |
| std::int64_t | getIntAttribute (int index, const std::string &name, std::int64_t fallback) const |
| Read signed integer metadata or return the caller-provided default when absent. | |
| bool | hasIntAttribute (int index, const std::string &name) const |
| Test whether signed integer metadata exists. | |
| Result< void > | trySetBoolAttribute (int index, const std::string &name, bool value) |
| Canonical checked Boolean metadata write. | |
| void | setBoolAttribute (int index, const std::string &name, bool value) |
| Compatibility-only unchecked script setter; canonical code uses trySetBoolAttribute. | |
| bool | getBoolAttribute (int index, const std::string &name, bool fallback) const |
| Read boolean metadata or return the caller-provided default when absent. | |
| bool | hasBoolAttribute (int index, const std::string &name) const |
| Test whether boolean metadata exists. | |
| Result< void > | trySetVectorAttribute (int index, const std::string &name, float x, float y, float z) |
| Canonical checked vector metadata write. | |
| void | setVectorAttribute (int index, const std::string &name, float x, float y, float z) |
| Compatibility-only unchecked script setter; canonical code uses trySetVectorAttribute. | |
| float | getVectorAttributeX (int index, const std::string &name, float fallback) const |
| Read the X component of vector metadata or the caller-provided default. | |
| float | getVectorAttributeY (int index, const std::string &name, float fallback) const |
| Read the Y component of vector metadata or the caller-provided default. | |
| float | getVectorAttributeZ (int index, const std::string &name, float fallback) const |
| Read the Z component of vector metadata or the caller-provided default. | |
| bool | hasVectorAttribute (int index, const std::string &name) const |
| Test whether vector metadata exists. | |
| Result< void > | trySetStringAttribute (int index, const std::string &name, const std::string &value) |
| Canonical checked string metadata write. | |
| void | setStringAttribute (int index, const std::string &name, const std::string &value) |
| Compatibility-only unchecked script setter; canonical code uses trySetStringAttribute. | |
| std::string | getStringAttribute (int index, const std::string &name, const std::string &fallback) const |
| Returns the string attribute. | |
| bool | hasStringAttribute (int index, const std::string &name) const |
| True when string attribute. | |
| std::string | getAttributeType (int index, const std::string &name) const |
| Return float, int, bool, vector, string, or empty when the attribute is absent. | |
| const std::vector< ProcgenPoint > & | points () const |
| Borrow immutable point rows; structural ownership remains with this set. | |
| ProcgenPoint & | mutablePoint (std::size_t index) |
| Mutably access one existing point without changing row structure. | |
| const AttributeTable & | attributes () const noexcept |
| Borrow the authoritative schema-bearing attribute table. | |
| const AttributeTable & | dataAttributes () const noexcept |
| Borrow the single-row @Data domain attribute table (graph/set metadata). Row 0 is the authoritative Data domain; empty until the first Data write. | |
| AttributeTable & | mutableDataAttributes () noexcept |
| Mutably access the @Data domain table; callers must keep rowCount 0 or 1. | |
| Result< void > | tryRenameAttribute (const std::string &from, const std::string &to) |
| Rename one metadata column on this set. | |
| Result< void > | tryDeleteAttribute (const std::string &name) |
| Delete one metadata column on this set. | |
| Result< void > | tryCopyAttribute (const std::string &from, const std::string &to) |
| Copy one metadata column onto another name on this set. | |
详细描述
Script-friendly collection of attributed 3D samples.
Operations exposed by Procgen return new PointSet instances instead of mutating their input, so named intermediate values remain inspectable after a hot reload and can safely be reused by more than one pipeline branch.
在文件 PointSet.h 第 59 行定义.
成员函数说明
◆ add()
| int eve::procgen::PointSet::add | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
在文件 PointSet.cpp 第 97 行定义.
引用了 appendPoint(), point, x, eve::procgen::ProcgenPoint::x, y , 以及 z.
被这些函数引用 eve::procgen::road::detail::bakeTrafficControlPoints() , 以及 eve::procgen::LSystem::toPointSet().
◆ appendPoint()
| int eve::procgen::PointSet::appendPoint | ( | ProcgenPoint | point | ) |
Append a point with an empty attribute row and return its row index.
在文件 PointSet.cpp 第 62 行定义.
引用了 eve::procgen::AttributeTable::appendRow(), EV_ASSERT , 以及 point.
被这些函数引用 add(), eve::procgen::copyPointsToTargets() , 以及 eve::procgen::RuntimeGeneration::deserializeCell().
◆ appendPointFrom()
| Result< int > eve::procgen::PointSet::appendPointFrom | ( | const PointSet & | source, |
| std::size_t | sourceIndex | ||
| ) |
Append a point and its attributes from another set.
- 返回
- New row index, or a schema/range failure without partial mutation.
在文件 PointSet.cpp 第 69 行定义.
引用了 eve::procgen::AttributeTable::appendRowFrom(), eve::Diagnostic::error(), EV_ASSERT, eve::Result< T >::failure(), eve::InvalidArgument, eve::procgen::AttributeTable::resize(), source , 以及 eve::Result< T >::success().
被这些函数引用 eve::procgen::applyPointDelta(), eve::procgen::applyTerrainTreesMultiTile(), eve::procgen::TerrainWorldWorkspace::clearSpawns(), eve::procgen::diffPointSets() , 以及 eve::procgen::BuildLayerStack::executeRegion().
◆ assignPointIds()
| Result< void > eve::procgen::PointSet::assignPointIds | ( | std::uint64_t | namespaceId | ) |
Fill zero identities deterministically and reject pre-existing duplicates.
在文件 PointSet.cpp 第 310 行定义.
引用了 eve::Conflict, eve::procgen::derivePointId(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, occupied, point , 以及 eve::Result< T >::success().
被这些函数引用 eve::procgen::RuntimeGeneration::migrateCellPointIds().
◆ attributes()
|
inlinenoexcept |
Borrow the authoritative schema-bearing attribute table.
在文件 PointSet.h 第 216 行定义.
被这些函数引用 eve::procgen::copyPointAttribute(), eve::procgen::copyPointsToTargets(), eve::procgen::diffPointSets(), eve::procgen::filterPointBoolAttribute(), eve::procgen::filterPointFloatAttribute(), eve::procgen::filterPointIntAttribute() , 以及 eve::procgen::filterPointStringAttribute().
◆ clear()
| void eve::procgen::PointSet::clear | ( | ) |
◆ clearPointAttributes()
| Result< void > eve::procgen::PointSet::clearPointAttributes | ( | std::size_t | index | ) |
Clear all metadata values on an existing point while retaining the set schema.
在文件 PointSet.cpp 第 85 行定义.
引用了 eve::procgen::AttributeTable::clearRow(), eve::Diagnostic::error(), eve::Result< T >::failure(), index , 以及 eve::InvalidArgument.
◆ dataAttributes()
|
inlinenoexcept |
Borrow the single-row @Data domain attribute table (graph/set metadata). Row 0 is the authoritative Data domain; empty until the first Data write.
在文件 PointSet.h 第 221 行定义.
◆ empty()
| bool eve::procgen::PointSet::empty | ( | ) | const |
Empty.
在文件 PointSet.cpp 第 49 行定义.
被这些函数引用 eve::procgen::generateRoadNetworkArtifact(), eve::procgen::mathPointIntAttribute(), eve::procgen::mathPointVectorAttribute(), eve::procgen::noisePointFloatAttribute(), eve::procgen::partitionPointAttribute() , 以及 eve::procgen_editing::PcgPointGraphDomain::preview().
◆ getAttributeType()
| std::string eve::procgen::PointSet::getAttributeType | ( | int | index, |
| const std::string & | name | ||
| ) | const |
Return float, int, bool, vector, string, or empty when the attribute is absent.
在文件 PointSet.cpp 第 453 行定义.
引用了 eve::procgen::AttributeTable::has(), index, name, eve::procgen::procgenAttributeTypeName(), type , 以及 eve::procgen::AttributeTable::typeOf().
◆ getBoolAttribute()
| bool eve::procgen::PointSet::getBoolAttribute | ( | int | index, |
| const std::string & | name, | ||
| bool | fallback | ||
| ) | const |
Read boolean metadata or return the caller-provided default when absent.
在文件 PointSet.cpp 第 382 行定义.
引用了 eve::procgen::AttributeTable::getBool(), index, name , 以及 value.
◆ getBoundsMaxX()
| float eve::procgen::PointSet::getBoundsMaxX | ( | int | index | ) | const |
◆ getBoundsMaxY()
| float eve::procgen::PointSet::getBoundsMaxY | ( | int | index | ) | const |
◆ getBoundsMaxZ()
| float eve::procgen::PointSet::getBoundsMaxZ | ( | int | index | ) | const |
◆ getBoundsMinX()
| float eve::procgen::PointSet::getBoundsMinX | ( | int | index | ) | const |
◆ getBoundsMinY()
| float eve::procgen::PointSet::getBoundsMinY | ( | int | index | ) | const |
◆ getBoundsMinZ()
| float eve::procgen::PointSet::getBoundsMinZ | ( | int | index | ) | const |
◆ getColorA()
| float eve::procgen::PointSet::getColorA | ( | int | index | ) | const |
◆ getColorB()
| float eve::procgen::PointSet::getColorB | ( | int | index | ) | const |
◆ getColorG()
| float eve::procgen::PointSet::getColorG | ( | int | index | ) | const |
◆ getColorR()
| float eve::procgen::PointSet::getColorR | ( | int | index | ) | const |
◆ getCount()
| int eve::procgen::PointSet::getCount | ( | ) | const |
Returns the count.
在文件 PointSet.cpp 第 48 行定义.
被这些函数引用 eve::procgen::road::detail::bakeTrafficControlPoints(), eve::procgen::comparePointFloatAttribute(), eve::procgen::RuntimeGeneration::completeGenerationJob(), eve::procgen::copyPointAttribute(), eve::procgen::RuntimeGeneration::deserializeCell(), eve::procgen::ShapeGrammar::generate(), eve::procgen::BiomeRules::generate(), eve::procgen::mathPointFloatAttribute(), eve::procgen::mathPointIntAttribute(), eve::procgen::mathPointVectorAttribute(), eve::procgen::noisePointFloatAttribute(), eve::procgen::partitionPointAttribute(), eve::procgen::SpatialData::polygon(), eve::procgen::sampleSpatialOntoChannel(), eve::procgen::selectPointFloatAttribute(), eve::procgen::setPointBoolAttribute(), eve::procgen::setPointIntAttribute(), eve::procgen::setPointVectorAttribute(), eve::procgen::SpatialData::spline() , 以及 eve::procgen::transferPointAttribute().
◆ getDensity()
| float eve::procgen::PointSet::getDensity | ( | int | index | ) | const |
◆ getFloatAttribute()
| float eve::procgen::PointSet::getFloatAttribute | ( | int | index, |
| const std::string & | name, | ||
| float | fallback | ||
| ) | const |
Returns the float attribute.
在文件 PointSet.cpp 第 342 行定义.
引用了 eve::procgen::AttributeTable::getFloat(), index, name , 以及 value.
◆ getIntAttribute()
| std::int64_t eve::procgen::PointSet::getIntAttribute | ( | int | index, |
| const std::string & | name, | ||
| std::int64_t | fallback | ||
| ) | const |
Read signed integer metadata or return the caller-provided default when absent.
在文件 PointSet.cpp 第 362 行定义.
引用了 eve::procgen::AttributeTable::getInt(), index, name , 以及 value.
被这些函数引用 eve::procgen::mathPointIntAttribute() , 以及 eve::procgen::partitionPointAttribute().
◆ getNormalX()
| float eve::procgen::PointSet::getNormalX | ( | int | index | ) | const |
◆ getNormalY()
| float eve::procgen::PointSet::getNormalY | ( | int | index | ) | const |
◆ getNormalZ()
| float eve::procgen::PointSet::getNormalZ | ( | int | index | ) | const |
◆ getPitch()
| float eve::procgen::PointSet::getPitch | ( | int | index | ) | const |
◆ getPointId()
| std::uint64_t eve::procgen::PointSet::getPointId | ( | int | index | ) | const |
Return the stable point identity, or zero when it has not been assigned.
在文件 PointSet.cpp 第 289 行定义.
◆ getPointSeed()
| uint32_t eve::procgen::PointSet::getPointSeed | ( | int | index | ) | const |
◆ getRoll()
| float eve::procgen::PointSet::getRoll | ( | int | index | ) | const |
◆ getScaleX()
| float eve::procgen::PointSet::getScaleX | ( | int | index | ) | const |
◆ getScaleY()
| float eve::procgen::PointSet::getScaleY | ( | int | index | ) | const |
◆ getScaleZ()
| float eve::procgen::PointSet::getScaleZ | ( | int | index | ) | const |
◆ getSteepness()
| float eve::procgen::PointSet::getSteepness | ( | int | index | ) | const |
◆ getStringAttribute()
| std::string eve::procgen::PointSet::getStringAttribute | ( | int | index, |
| const std::string & | name, | ||
| const std::string & | fallback | ||
| ) | const |
Returns the string attribute.
在文件 PointSet.cpp 第 432 行定义.
引用了 eve::procgen::AttributeTable::getString(), index, name , 以及 value.
◆ getVectorAttributeX()
| float eve::procgen::PointSet::getVectorAttributeX | ( | int | index, |
| const std::string & | name, | ||
| float | fallback | ||
| ) | const |
Read the X component of vector metadata or the caller-provided default.
在文件 PointSet.cpp 第 402 行定义.
引用了 eve::procgen::AttributeTable::getVector(), index, name , 以及 value.
◆ getVectorAttributeY()
| float eve::procgen::PointSet::getVectorAttributeY | ( | int | index, |
| const std::string & | name, | ||
| float | fallback | ||
| ) | const |
Read the Y component of vector metadata or the caller-provided default.
在文件 PointSet.cpp 第 407 行定义.
引用了 eve::procgen::AttributeTable::getVector(), index, name , 以及 value.
◆ getVectorAttributeZ()
| float eve::procgen::PointSet::getVectorAttributeZ | ( | int | index, |
| const std::string & | name, | ||
| float | fallback | ||
| ) | const |
Read the Z component of vector metadata or the caller-provided default.
在文件 PointSet.cpp 第 412 行定义.
引用了 eve::procgen::AttributeTable::getVector(), index, name , 以及 value.
◆ getX()
| float eve::procgen::PointSet::getX | ( | int | index | ) | const |
Returns the x.
在文件 PointSet.cpp 第 121 行定义.
◆ getY()
| float eve::procgen::PointSet::getY | ( | int | index | ) | const |
Returns the y.
在文件 PointSet.cpp 第 125 行定义.
◆ getYaw()
| float eve::procgen::PointSet::getYaw | ( | int | index | ) | const |
◆ getZ()
| float eve::procgen::PointSet::getZ | ( | int | index | ) | const |
Returns the z.
在文件 PointSet.cpp 第 129 行定义.
◆ hasBoolAttribute()
| bool eve::procgen::PointSet::hasBoolAttribute | ( | int | index, |
| const std::string & | name | ||
| ) | const |
Test whether boolean metadata exists.
在文件 PointSet.cpp 第 387 行定义.
引用了 eve::procgen::AttributeTable::getBool(), index , 以及 name.
◆ hasFloatAttribute()
| bool eve::procgen::PointSet::hasFloatAttribute | ( | int | index, |
| const std::string & | name | ||
| ) | const |
True when float attribute.
在文件 PointSet.cpp 第 347 行定义.
引用了 eve::procgen::AttributeTable::getFloat(), index , 以及 name.
◆ hasIntAttribute()
| bool eve::procgen::PointSet::hasIntAttribute | ( | int | index, |
| const std::string & | name | ||
| ) | const |
Test whether signed integer metadata exists.
在文件 PointSet.cpp 第 367 行定义.
引用了 eve::procgen::AttributeTable::getInt(), index , 以及 name.
◆ hasStringAttribute()
| bool eve::procgen::PointSet::hasStringAttribute | ( | int | index, |
| const std::string & | name | ||
| ) | const |
True when string attribute.
在文件 PointSet.cpp 第 437 行定义.
引用了 eve::procgen::AttributeTable::getString(), index , 以及 name.
◆ hasVectorAttribute()
| bool eve::procgen::PointSet::hasVectorAttribute | ( | int | index, |
| const std::string & | name | ||
| ) | const |
Test whether vector metadata exists.
在文件 PointSet.cpp 第 417 行定义.
引用了 eve::procgen::AttributeTable::getVector(), index , 以及 name.
◆ mutableDataAttributes()
|
inlinenoexcept |
Mutably access the @Data domain table; callers must keep rowCount 0 or 1.
在文件 PointSet.h 第 223 行定义.
◆ mutablePoint()
| ProcgenPoint & eve::procgen::PointSet::mutablePoint | ( | std::size_t | index | ) |
Mutably access one existing point without changing row structure.
在文件 PointSet.cpp 第 92 行定义.
引用了 EV_PARAM_CHECK , 以及 index.
被这些函数引用 eve::procgen::densityFromNormal(), eve::procgen::modifyPointBounds(), eve::procgen::SpatialData::project(), eve::procgen::projectPointsToHeightmap(), eve::procgen::remapPointDensity() , 以及 eve::procgen::transformPointSet3D().
◆ points()
|
inline |
Borrow immutable point rows; structural ownership remains with this set.
在文件 PointSet.h 第 212 行定义.
被这些函数引用 eve::procgen::applyPointDelta(), eve::procgen::assignWeightedMeshAttribute(), eve::procgen::SpatialData::contains(), eve::procgen::copyPointsToTargets(), eve::procgen::densityFromNormal(), eve::procgen::diffPointSets(), eve::procgen::SpatialData::filter(), eve::procgen::filterPointBox(), eve::procgen::filterPointsByPolygon(), eve::procgen::filterPointsBySplineDistance(), eve::procgen::filterPointSlope(), eve::procgen::BiomeRules::generate(), eve::procgen::modifyPointBounds(), eve::procgen::noisePointFloatAttribute(), eve::procgen::Procgen::publishCellInstanceDelta(), eve::procgen::remapPointDensity(), eve::procgen::samplePolylinePoints() , 以及 eve::procgen::selfPrunePoints().
◆ reserve()
| void eve::procgen::PointSet::reserve | ( | std::size_t | count | ) |
Reserve point storage without changing point or attribute row counts.
在文件 PointSet.cpp 第 60 行定义.
引用了 count.
被这些函数引用 eve::procgen::applyPointDelta(), eve::procgen::applyTerrainTreesMultiTile(), eve::procgen::ObjectBuildLayer::build(), eve::procgen::TerrainWorldWorkspace::clearSpawns(), eve::procgen::copyPointsToTargets(), eve::procgen::differencePointSets(), eve::procgen::excludePointsByGridMask(), eve::procgen::BuildLayerStack::executeRegion(), eve::procgen::intersectPointSets(), eve::procgen::mergePointSets(), eve::procgen::Procgen::projectToWorldHandle() , 以及 eve::procgen::unionPointSets().
◆ setBoolAttribute()
| void eve::procgen::PointSet::setBoolAttribute | ( | int | index, |
| const std::string & | name, | ||
| bool | value | ||
| ) |
Compatibility-only unchecked script setter; canonical code uses trySetBoolAttribute.
在文件 PointSet.cpp 第 378 行定义.
引用了 eve::Result< void >::ignore(), index, name, trySetBoolAttribute() , 以及 value.
◆ setBounds()
| void eve::procgen::PointSet::setBounds | ( | int | index, |
| float | minX, | ||
| float | minY, | ||
| float | minZ, | ||
| float | maxX, | ||
| float | maxY, | ||
| float | maxZ | ||
| ) |
Set local-space point bounds before scale and rotation are applied.
在文件 PointSet.cpp 第 202 行定义.
◆ setColor()
| void eve::procgen::PointSet::setColor | ( | int | index, |
| float | red, | ||
| float | green, | ||
| float | blue, | ||
| float | alpha | ||
| ) |
◆ setDensity()
| void eve::procgen::PointSet::setDensity | ( | int | index, |
| float | density | ||
| ) |
◆ setFloatAttribute()
| void eve::procgen::PointSet::setFloatAttribute | ( | int | index, |
| const std::string & | name, | ||
| float | value | ||
| ) |
Compatibility-only unchecked script setter; canonical code uses trySetFloatAttribute.
在文件 PointSet.cpp 第 338 行定义.
引用了 eve::Result< void >::ignore(), index, name, trySetFloatAttribute() , 以及 value.
◆ setIntAttribute()
| void eve::procgen::PointSet::setIntAttribute | ( | int | index, |
| const std::string & | name, | ||
| std::int64_t | value | ||
| ) |
Compatibility-only unchecked script setter; canonical code uses trySetIntAttribute.
在文件 PointSet.cpp 第 358 行定义.
引用了 eve::Result< void >::ignore(), index, name, trySetIntAttribute() , 以及 value.
◆ setNormal()
| void eve::procgen::PointSet::setNormal | ( | int | index, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Sets the normal.
在文件 PointSet.cpp 第 134 行定义.
引用了 index, point, x, y , 以及 z.
被这些函数引用 eve::procgen::road::detail::bakeTrafficControlPoints().
◆ setPointSeed()
| void eve::procgen::PointSet::setPointSeed | ( | int | index, |
| uint32_t | seed | ||
| ) |
Sets the point seed.
在文件 PointSet.cpp 第 281 行定义.
被这些函数引用 eve::procgen::road::detail::bakeTrafficControlPoints().
◆ setPosition()
| void eve::procgen::PointSet::setPosition | ( | int | index, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
◆ setRotation()
| void eve::procgen::PointSet::setRotation | ( | int | index, |
| float | pitch, | ||
| float | yaw, | ||
| float | roll | ||
| ) |
◆ setScale()
| void eve::procgen::PointSet::setScale | ( | int | index, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
◆ setSteepness()
| void eve::procgen::PointSet::setSteepness | ( | int | index, |
| float | steepness | ||
| ) |
Set normalized surface steepness metadata in the inclusive range [0, 1].
在文件 PointSet.cpp 第 264 行定义.
◆ setStringAttribute()
| void eve::procgen::PointSet::setStringAttribute | ( | int | index, |
| const std::string & | name, | ||
| const std::string & | value | ||
| ) |
Compatibility-only unchecked script setter; canonical code uses trySetStringAttribute.
在文件 PointSet.cpp 第 428 行定义.
引用了 eve::Result< void >::ignore(), index, name, trySetStringAttribute() , 以及 value.
◆ setVectorAttribute()
| void eve::procgen::PointSet::setVectorAttribute | ( | int | index, |
| const std::string & | name, | ||
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Compatibility-only unchecked script setter; canonical code uses trySetVectorAttribute.
在文件 PointSet.cpp 第 398 行定义.
引用了 eve::Result< void >::ignore(), index, name, trySetVectorAttribute(), x, y , 以及 z.
◆ setYaw()
| void eve::procgen::PointSet::setYaw | ( | int | index, |
| float | yaw | ||
| ) |
Sets the yaw.
在文件 PointSet.cpp 第 155 行定义.
被这些函数引用 eve::procgen::road::detail::bakeTrafficControlPoints().
◆ tryCopyAttribute()
| Result< void > eve::procgen::PointSet::tryCopyAttribute | ( | const std::string & | from, |
| const std::string & | to | ||
| ) |
Copy one metadata column onto another name on this set.
- 返回
- AttributeTable copy diagnostics without mutating on failure.
在文件 PointSet.cpp 第 449 行定义.
引用了 eve::procgen::AttributeTable::copyColumn(), from , 以及 to.
被这些函数引用 eve::procgen::copyPointAttribute().
◆ tryDeleteAttribute()
| Result< void > eve::procgen::PointSet::tryDeleteAttribute | ( | const std::string & | name | ) |
Delete one metadata column on this set.
- 返回
- AttributeTable remove diagnostics without mutating on failure.
在文件 PointSet.cpp 第 445 行定义.
引用了 name , 以及 eve::procgen::AttributeTable::removeColumn().
被这些函数引用 eve::procgen::deletePointAttribute().
◆ tryRenameAttribute()
| Result< void > eve::procgen::PointSet::tryRenameAttribute | ( | const std::string & | from, |
| const std::string & | to | ||
| ) |
Rename one metadata column on this set.
- 返回
- AttributeTable rename diagnostics without mutating on failure.
在文件 PointSet.cpp 第 441 行定义.
引用了 from, eve::procgen::AttributeTable::renameColumn() , 以及 to.
被这些函数引用 eve::procgen::renamePointAttribute().
◆ trySetBoolAttribute()
| Result< void > eve::procgen::PointSet::trySetBoolAttribute | ( | int | index, |
| const std::string & | name, | ||
| bool | value | ||
| ) |
Canonical checked Boolean metadata write.
在文件 PointSet.cpp 第 371 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument, name, eve::procgen::AttributeTable::setBool() , 以及 value.
被这些函数引用 eve::procgen::comparePointFloatAttribute(), eve::procgen::copyPointsToTargets(), eve::procgen::RuntimeGeneration::deserializeCell(), setBoolAttribute(), eve::procgen::setPointBoolAttribute() , 以及 eve::procgen::transferPointAttribute().
◆ trySetFloatAttribute()
| Result< void > eve::procgen::PointSet::trySetFloatAttribute | ( | int | index, |
| const std::string & | name, | ||
| float | value | ||
| ) |
Canonical checked float metadata write.
在文件 PointSet.cpp 第 331 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument, name, eve::procgen::AttributeTable::setFloat() , 以及 value.
被这些函数引用 eve::procgen::road::detail::bakeTrafficControlPoints(), eve::procgen::copyPointsToTargets(), eve::procgen::RuntimeGeneration::deserializeCell(), eve::procgen::noisePointFloatAttribute(), setFloatAttribute() , 以及 eve::procgen::transferPointAttribute().
◆ trySetIntAttribute()
| Result< void > eve::procgen::PointSet::trySetIntAttribute | ( | int | index, |
| const std::string & | name, | ||
| std::int64_t | value | ||
| ) |
Canonical checked signed integer metadata write.
在文件 PointSet.cpp 第 351 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument, name, eve::procgen::AttributeTable::setInt() , 以及 value.
被这些函数引用 eve::procgen::road::detail::bakeTrafficControlPoints(), eve::procgen::copyPointsToTargets(), eve::procgen::RuntimeGeneration::deserializeCell(), eve::procgen::mathPointIntAttribute(), eve::procgen::partitionPointAttribute(), setIntAttribute(), eve::procgen::setPointIntAttribute() , 以及 eve::procgen::transferPointAttribute().
◆ trySetPointId()
| Result< void > eve::procgen::PointSet::trySetPointId | ( | int | index, |
| std::uint64_t | id | ||
| ) |
Assign a unique non-zero point identity without mutating on failure.
在文件 PointSet.cpp 第 294 行定义.
引用了 eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), id, index, eve::InvalidArgument, point , 以及 eve::Result< T >::success().
被这些函数引用 eve::procgen::road::detail::bakeTrafficControlPoints().
◆ trySetStringAttribute()
| Result< void > eve::procgen::PointSet::trySetStringAttribute | ( | int | index, |
| const std::string & | name, | ||
| const std::string & | value | ||
| ) |
Canonical checked string metadata write.
在文件 PointSet.cpp 第 421 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument, name, eve::procgen::AttributeTable::setString() , 以及 value.
被这些函数引用 eve::procgen::assignWeightedMeshAttribute(), eve::procgen::road::detail::bakeTrafficControlPoints(), eve::procgen::copyPointsToTargets(), eve::procgen::RuntimeGeneration::deserializeCell(), setStringAttribute() , 以及 eve::procgen::transferPointAttribute().
◆ trySetVectorAttribute()
| Result< void > eve::procgen::PointSet::trySetVectorAttribute | ( | int | index, |
| const std::string & | name, | ||
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
Canonical checked vector metadata write.
在文件 PointSet.cpp 第 391 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument, name, eve::procgen::AttributeTable::setVector(), x, y , 以及 z.
被这些函数引用 eve::procgen::road::detail::bakeTrafficControlPoints(), eve::procgen::copyPointsToTargets(), eve::procgen::RuntimeGeneration::deserializeCell(), eve::procgen::mathPointVectorAttribute(), eve::procgen::setPointVectorAttribute(), setVectorAttribute() , 以及 eve::procgen::transferPointAttribute().
该类的文档由以下文件生成:
- src/modules/procgen/PointSet.h
- src/modules/procgen/PointSet.cpp