![]() |
NDEVR
API Documentation
|
A definition of data that is logically stored in the Model hierarchy. More...
Public Types | |
| enum | SpecialParameter { e_undefined , e_design_property , e_geometry_property , e_model_property , e_vertex_property , e_material_property , e_offset , e_rotation , e_scale , e_surface_area , e_volume , e_length , e_grade , e_h_length , e_v_length , e_geo_orientation , e_model_index , e_vertex_index , e_deployment_bottom , e_parent_path , e_metadata , e_transformed_vertex_metadata , e_uv_mode } |
| Enumerates special built-in parameter types that have predefined semantics within the design hierarchy. More... | |
Public Member Functions | |
| DesignParameter () | |
| Default constructor. | |
| DesignParameter (const StringView &column_name, uint04 vertex_index_a, uint04 vertex_index_b) | |
| Constructs a parameter referencing vertex data by column name and two vertex indices. | |
| DesignParameter (const StringView &name) | |
| Constructs a parameter from a raw column name string. | |
| DesignParameter (Material::UVMode mode) | |
| Constructs a parameter representing a UV texture mapping mode. | |
| DesignParameter (NDPG property, uint04 sub_section=Constant< uint04 >::Invalid) | |
| Constructs a parameter from a geometry property. | |
| DesignParameter (NDPM property, uint04 sub_section=Constant< uint04 >::Invalid) | |
| Constructs a parameter from a material property. | |
| DesignParameter (NDPN property, uint04 sub_section=Constant< uint04 >::Invalid) | |
| Constructs a parameter from a model property. | |
| DesignParameter (NDPO property, uint04 sub_section=Constant< uint04 >::Invalid) | |
| Constructs a parameter from a design object property. | |
| DesignParameter (SpecialParameter property, const StringView &data_label) | |
| Constructs a parameter from a special parameter type with a data label. | |
| DesignParameter (SpecialParameter property, const StringView &data_label, uint04 sub_section) | |
| Constructs a parameter from a special parameter type with a data label and sub-section. | |
| DesignParameter (SpecialParameter property, uint04 sub_section=Constant< uint04 >::Invalid) | |
| Constructs a parameter from a special parameter type. | |
| DesignParameter (VertexProperty property, uint04 sub_section=Constant< uint04 >::Invalid) | |
| Constructs a parameter from a vertex property. | |
| TypeInfo | defaultType () const |
| Returns the default type information for the data represented by this parameter. | |
| ConstPointer< Unit > | defaultUnit () const |
| Returns the default unit of measurement for this parameter. | |
| TranslatedString | displayName () const |
| Returns the user-facing display name for this parameter. | |
| bool | isIgnored () const |
| Checks whether this parameter should be ignored during processing. | |
| bool | operator!= (const DesignParameter ¶ms) const |
| Inequality comparison operator. | |
| bool | operator< (const DesignParameter ¶ms) const |
| Less-than comparison operator for ordering. | |
| bool | operator== (const DesignParameter ¶ms) const |
| Equality comparison operator. | |
| bool | operator> (const DesignParameter ¶ms) const |
| Greater-than comparison operator for ordering. | |
| void | setCustomDisplayName (const TranslatedString &custom_display_name) |
| Sets a custom user-facing display name for this parameter. | |
| StringAllocatingView | stringID () const |
| Returns a string identifier that uniquely represents this parameter. | |
Public Attributes | |
| StringAllocatingView | column_name |
| The column or property name used to identify this parameter in storage. | |
| TranslatedString | custom_display_name |
| An optional user-facing display name override. | |
| String | default_value |
| The default value for this parameter as a string. | |
| uint04 | dim_a = Constant<uint04>::Invalid |
| First dimension index (e.g., component or sub-section). Invalid if unused. | |
| uint04 | dim_b = Constant<uint04>::Invalid |
| Second dimension index. Invalid if unused. | |
| SpecialParameter | type |
| The special parameter type classification. | |
| ConstPointer< Unit > | unit |
| The unit of measurement associated with this parameter. | |
Protected Member Functions | |
| void | autoSetSpecialParameter () |
| Automatically determines and sets the SpecialParameter type based on the current column name and dimension values. | |
A definition of data that is logically stored in the Model hierarchy.
Data could be a property of a Model, Geometry, Vertex, Shape, or Material.
Definition at line 48 of file DesignParameter.h.
Enumerates special built-in parameter types that have predefined semantics within the design hierarchy.
| Enumerator | |
|---|---|
| e_undefined | No specific parameter type assigned. |
| e_design_property | A generic design-level property. |
| e_geometry_property | A property belonging to a Geometry object. |
| e_model_property | A property belonging to a Model object. |
| e_vertex_property | A property belonging to a Vertex. |
| e_material_property | A property belonging to a Material. |
| e_offset | Spatial offset (translation) of a model. |
| e_rotation | Rotation of a model. |
| e_scale | Scale factor of a model. |
| e_surface_area | Computed surface area. |
| e_volume | Computed volume. |
| e_length | Computed total length. |
| e_grade | Computed grade (slope ratio). |
| e_h_length | Computed horizontal length component. |
| e_v_length | Computed vertical length component. |
| e_geo_orientation | Geographic orientation of a model. |
| e_model_index | Index of the model within the hierarchy. |
| e_vertex_index | Index of a vertex within geometry. |
| e_deployment_bottom | Bottom elevation of a deployment. |
| e_parent_path | Path string describing the parent chain. |
| e_metadata | Arbitrary metadata attached to an object. |
| e_transformed_vertex_metadata | Vertex metadata that has been transformed into world space. |
| e_uv_mode | UV texture mapping mode. |
Definition at line 55 of file DesignParameter.h.
| DesignParameter::DesignParameter | ( | ) |
Default constructor.
Creates an undefined parameter.
Referenced by operator!=(), operator<(), operator==(), and operator>().
|
explicit |
Constructs a parameter from a design object property.
| [in] | property | The design object property identifier. |
| [in] | sub_section | Optional sub-section index within the property. |
|
explicit |
Constructs a parameter from a geometry property.
| [in] | property | The geometry property identifier. |
| [in] | sub_section | Optional sub-section index within the property. |
|
explicit |
Constructs a parameter from a material property.
| [in] | property | The material property identifier. |
| [in] | sub_section | Optional sub-section index within the property. |
|
explicit |
Constructs a parameter from a model property.
| [in] | property | The model property identifier. |
| [in] | sub_section | Optional sub-section index within the property. |
|
explicit |
Constructs a parameter from a vertex property.
| [in] | property | The vertex property identifier. |
| [in] | sub_section | Optional sub-section index within the property. |
|
explicit |
Constructs a parameter from a special parameter type.
| [in] | property | The special parameter type. |
| [in] | sub_section | Optional sub-section index within the property. |
| DesignParameter::DesignParameter | ( | SpecialParameter | property, |
| const StringView & | data_label ) |
Constructs a parameter from a special parameter type with a data label.
| [in] | property | The special parameter type. |
| [in] | data_label | The string label identifying the data column. |
| DesignParameter::DesignParameter | ( | SpecialParameter | property, |
| const StringView & | data_label, | ||
| uint04 | sub_section ) |
Constructs a parameter from a special parameter type with a data label and sub-section.
| [in] | property | The special parameter type. |
| [in] | data_label | The string label identifying the data column. |
| [in] | sub_section | The sub-section index within the property. |
| DesignParameter::DesignParameter | ( | Material::UVMode | mode | ) |
Constructs a parameter representing a UV texture mapping mode.
| [in] | mode | The UV mapping mode to represent. |
|
explicit |
Constructs a parameter from a raw column name string.
| [in] | name | The column name identifying the parameter. |
| DesignParameter::DesignParameter | ( | const StringView & | column_name, |
| uint04 | vertex_index_a, | ||
| uint04 | vertex_index_b ) |
Constructs a parameter referencing vertex data by column name and two vertex indices.
| [in] | column_name | The column name identifying the data. |
| [in] | vertex_index_a | The first vertex dimension index. |
| [in] | vertex_index_b | The second vertex dimension index. |
References column_name.
| TypeInfo DesignParameter::defaultType | ( | ) | const |
Returns the default type information for the data represented by this parameter.
| ConstPointer< Unit > DesignParameter::defaultUnit | ( | ) | const |
Returns the default unit of measurement for this parameter.
| TranslatedString DesignParameter::displayName | ( | ) | const |
Returns the user-facing display name for this parameter.
| bool DesignParameter::isIgnored | ( | ) | const |
Checks whether this parameter should be ignored during processing.
| bool DesignParameter::operator!= | ( | const DesignParameter & | params | ) | const |
Inequality comparison operator.
| [in] | params | The other DesignParameter to compare against. |
References DesignParameter().
| bool DesignParameter::operator< | ( | const DesignParameter & | params | ) | const |
Less-than comparison operator for ordering.
| [in] | params | The other DesignParameter to compare against. |
References DesignParameter().
| bool DesignParameter::operator== | ( | const DesignParameter & | params | ) | const |
Equality comparison operator.
| [in] | params | The other DesignParameter to compare against. |
References DesignParameter().
| bool DesignParameter::operator> | ( | const DesignParameter & | params | ) | const |
Greater-than comparison operator for ordering.
| [in] | params | The other DesignParameter to compare against. |
References DesignParameter().
| void DesignParameter::setCustomDisplayName | ( | const TranslatedString & | custom_display_name | ) |
Sets a custom user-facing display name for this parameter.
| [in] | custom_display_name | The translated display name to use. |
References custom_display_name.
| StringAllocatingView DesignParameter::stringID | ( | ) | const |
Returns a string identifier that uniquely represents this parameter.