![]() |
NDEVR
API Documentation
|
Provides typed access to NDPN model properties via get/set on DesignInfo. More...
Static Public Member Functions | |
| static constexpr TableColumn * | column (const DesignInfo *object, NDPN property) |
| Returns the TableColumn pointer for a given NDPN property. | |
| template<NDPN t_property> | |
| static decltype(auto) | Get (const DesignInfo *object) |
| Retrieves a model property at compile time with optimized direct member access. | |
| template<NDPN t_property, class t_valutype> | |
| static decltype(auto) | Get (const DesignInfo *object) |
| Retrieves a model property value at compile time by template property enum. | |
| template<class t_valutype> | |
| static decltype(auto) | Get (const DesignInfo *object, NDPN property) |
| Retrieves a model property value at runtime by property enum and requested type. | |
| static uint04 | index (const DesignInfo *object, NDPN property) |
| Retrieves the row index for a given property on the specified design object. | |
| static bool | IsSame (const DesignInfo *object, NDPN property, const StringView &value) |
| Checks whether the stored property value matches a given string. | |
| template<NDPN t_property, class t_valutype> | |
| static void | Set (DesignInfo *object, const t_valutype &value) |
| Sets a model property value at compile time with optimized direct member access. | |
| template<class t_valutype> | |
| static void | Set (DesignInfo *object, NDPN property, const t_valutype &value) |
| Sets a model property value at runtime by property enum. | |
Provides typed access to NDPN model properties via get/set on DesignInfo.
Offers both runtime (NDPN parameter) and compile-time (template NDPN parameter) property access. Compile-time versions use optimized direct member access for frequently used properties.
|
inlinestaticconstexpr |
Returns the TableColumn pointer for a given NDPN property.
| [in] | object | The design info object. |
| [in] | property | The property whose column to retrieve. |
|
inlinestatic |
Retrieves a model property at compile time with optimized direct member access.
For frequently accessed properties, bypasses generic column lookup and reads directly from DesignObjectBase member arrays via reinterpret_cast for performance.
| [in] | object | The design info object to read from. |
Definition at line 226 of file Model.h.
References DesignObjectBase::child_base_ptr, child_base_ptr, PropertyInterface< t_property_enum >::column(), DesignObjectBase::complete_transform, complete_transform, DesignObjectBase::geometry_base_ptr, geometry_base_ptr, TableColumn::get(), DesignObjectBase::global_bounds, global_bounds, DesignObjectBase::global_selection_bounds, global_selection_bounds, DesignObjectBase::inherited_flags, inherited_flags, DesignInfo::m_base, DesignInfo::m_design_index, DesignObjectBase::material_base_ptr, material_base_ptr, DesignObjectBase::model_type, DesignObjectBase::parent_base_ptr, parent_base_ptr, DesignObjectBase::personal_inherited_flags, personal_inherited_flags, type, DesignObjectBase::visible_box, and visible_box.
|
inlinestatic |
Retrieves a model property value at compile time by template property enum.
| [in] | object | The design info object to read from. |
Definition at line 143 of file Model.h.
References PropertyInterface< t_property_enum >::column(), and TableColumn::get().
|
inlinestatic |
Retrieves a model property value at runtime by property enum and requested type.
| [in] | object | The design info object to read from. |
| [in] | property | The NDPN property to retrieve. |
Definition at line 133 of file Model.h.
References PropertyInterface< t_property_enum >::column(), and TableColumn::get().
|
inlinestatic |
Retrieves the row index for a given property on the specified design object.
| [in] | object | The design object to query. |
| [in] | property | The property enum value. |
Definition at line 144 of file DesignProperties.h.
|
inlinestatic |
Checks whether the stored property value matches a given string.
| [in] | object | The design info object. |
| [in] | property | The property to compare. |
| [in] | value | The string value to compare against. |
Definition at line 213 of file Model.h.
References PropertyInterface< t_property_enum >::column(), TableColumn::isSame(), and DesignInfo::m_design_index.
|
inlinestatic |
Sets a model property value at compile time with optimized direct member access.
For frequently accessed properties (type, visible_box, global_bounds, transforms, pointers, inherited flags), this bypasses the generic column lookup and writes directly to the DesignObjectBase member arrays for better performance.
| [in] | object | The design info object to write to. |
| [in] | value | The value to assign. |
Definition at line 168 of file Model.h.
References DesignObjectBase::child_base_ptr, child_base_ptr, PropertyInterface< t_property_enum >::column(), DesignObjectBase::complete_transform, complete_transform, DesignObjectBase::geometry_base_ptr, geometry_base_ptr, DesignObjectBase::global_bounds, global_bounds, DesignObjectBase::global_selection_bounds, global_selection_bounds, DesignObjectBase::inherited_flags, inherited_flags, DesignInfo::m_base, DesignInfo::m_design_index, DesignObjectBase::material_base_ptr, material_base_ptr, DesignObjectBase::model_type, DesignObjectBase::parent_base_ptr, parent_base_ptr, DesignObjectBase::personal_inherited_flags, personal_inherited_flags, rcast(), TableColumn::set(), type, DesignObjectBase::visible_box, and visible_box.
|
inlinestatic |
Sets a model property value at runtime by property enum.
| [in] | object | The design info object to write to. |
| [in] | property | The NDPN property to set. |
| [in] | value | The value to assign. |
Definition at line 154 of file Model.h.
References PropertyInterface< t_property_enum >::column(), DesignInfo::m_design_index, and TableColumn::set().