|
Bifrost SDK
Bifrost SDK documentation
|
This class is a RAII guard for a Data geo property. More...
#include <GeoPropertyGuard.h>
Public Member Functions | |
| DataGeoPropertyGuard ()=default | |
| Constructor. More... | |
| operator bool () const noexcept | |
| Returns true if the guard has acquired a geo property. More... | |
| const Amino::Array< T > & | data () const noexcept |
| Returns the data array of the geo property. More... | |
| Amino::Array< T > & | data () noexcept |
| Returns the data array of the geo property. More... | |
| const Amino::String & | target () const noexcept |
| Returns the target of the geo property. More... | |
| Amino::String & | target () noexcept |
| Returns the target of the geo property. More... | |
| const Amino::Array< Amino::String > & | dependsOn () const noexcept |
| Returns the value of the depends_on field in the geo property. More... | |
| Amino::Array< Amino::String > & | dependsOn () noexcept |
| Returns the value of the depends_on field in the geo property. More... | |
| const T & | defaultValue () const noexcept |
| Returns the default value of the geo property. More... | |
| T & | defaultValue () noexcept |
| Returns the default value of the geo property. More... | |
| const Bifrost::Geometry::Common::DataInterpolationMode & | interpolationMode () const noexcept |
| Returns the interpolation_mode field in the geo property. More... | |
| Bifrost::Geometry::Common::DataInterpolationMode & | interpolationMode () noexcept |
| Returns the interpolation_mode field in the geo property. More... | |
Friends | |
| DataGeoPropertyGuard< T > | createDataGeoPropGuard (Bifrost::Object &, Amino::StringView) |
| Create a DataGeoPropertyGuard for the specified geo property. More... | |
This class is a RAII guard for a Data geo property.
| T | The data type of the geo property. |
This class is used to extract, modify and then set back a Data geo property value within a geometry object. This is the preferred method to modify the geo properties of a geometry since extracting the geo property does not increase its reference count, and thus if there are no other references to the value, it will be modified in-place and no copy-on-write will occur. See Amino::Ptr for more details on reference counting.
Do not construct a DataGeoProperty guard directly. Use Bifrost::Geometry::createDataGeoPropGuard instead.
Definition at line 338 of file GeoPropertyGuard.h.
|
default |
Constructor.
|
inlinenoexcept |
Returns the data array of the geo property.
Definition at line 349 of file GeoPropertyGuard.h.
|
inlinenoexcept |
Returns the data array of the geo property.
Definition at line 352 of file GeoPropertyGuard.h.
|
inlinenoexcept |
Returns the default value of the geo property.
Definition at line 370 of file GeoPropertyGuard.h.
|
inlinenoexcept |
Returns the default value of the geo property.
Definition at line 373 of file GeoPropertyGuard.h.
|
inlinenoexcept |
Returns the value of the depends_on field in the geo property.
Definition at line 363 of file GeoPropertyGuard.h.
|
inlinenoexcept |
Returns the value of the depends_on field in the geo property.
Definition at line 366 of file GeoPropertyGuard.h.
|
inlinenoexcept |
Returns the interpolation_mode field in the geo property.
Definition at line 377 of file GeoPropertyGuard.h.
|
inlinenoexcept |
Returns the interpolation_mode field in the geo property.
Definition at line 382 of file GeoPropertyGuard.h.
|
inlineexplicitnoexcept |
Returns true if the guard has acquired a geo property.
Definition at line 345 of file GeoPropertyGuard.h.
|
inlinenoexcept |
Returns the target of the geo property.
Definition at line 356 of file GeoPropertyGuard.h.
|
inlinenoexcept |
Returns the target of the geo property.
Definition at line 359 of file GeoPropertyGuard.h.
|
friend |
Create a DataGeoPropertyGuard for the specified geo property.
| [in,out] | geometry | The input Bifrost geometry object. |
| [in] | propertyName | The name of the property to extract. |
| T | The data type of the geo property. |
DataGeoPropertyGuard RAII class that extracts the geometry property with type T and name propertyName from object and sets the property back when the guard is destructed. If the geo property does not exist in the geometry, the returned guard's boolean cast operator will return false. Definition at line 409 of file GeoPropertyGuard.h.