ON_3dmObjectAttributes uses ON_MaterialRef to record which rendering material and mappings a rendering plug-in wants to use. This allows different rendering plug-ins to have different materials on the same object. The values of ON_3dmObjectAttributes.m_material_index and ON_3dmObjectAttributes.m_matrial_source reflect the settings of the renderer that is currently active.
More...
#include <opennurbs_mapchan.h>
ON_3dmObjectAttributes uses ON_MaterialRef to record which rendering material and mappings a rendering plug-in wants to use. This allows different rendering plug-ins to have different materials on the same object. The values of ON_3dmObjectAttributes.m_material_index and ON_3dmObjectAttributes.m_matrial_source reflect the settings of the renderer that is currently active.
◆ ON_MappingRef()
ON_MappingRef::ON_MappingRef |
( |
| ) |
|
◆ AddMappingChannel()
bool ON_MappingRef::AddMappingChannel |
( |
int |
mapping_channel_id, |
|
|
const ON_UUID & |
mapping_id |
|
) |
| |
- Parameters
-
- Returns
- True if the mapping channel was added or a pefect match already existed. False if a mapping channel with a different mapping_id already exists for this plug-in and channel.
◆ ChangeMappingChannel()
bool ON_MappingRef::ChangeMappingChannel |
( |
int |
old_mapping_channel_id, |
|
|
int |
new_mapping_channel_id |
|
) |
| |
- Parameters
-
old_mapping_channel_id | [in] |
new_mapping_channel_id | [in] |
- Returns
- True if a matching mapping channel was found and changed.
◆ Compare()
◆ Default()
void ON_MappingRef::Default |
( |
| ) |
|
◆ DeleteMappingChannel() [1/2]
bool ON_MappingRef::DeleteMappingChannel |
( |
int |
mapping_channel_id | ) |
|
- Parameters
-
- Returns
- True if a matching mapping channel was deleted.
◆ DeleteMappingChannel() [2/2]
bool ON_MappingRef::DeleteMappingChannel |
( |
const ON_UUID & |
mapping_id | ) |
|
◆ IsValid()
bool ON_MappingRef::IsValid |
( |
ON_TextLog * |
text_log | ) |
const |
◆ MappingChannel() [1/2]
const ON_MappingChannel* ON_MappingRef::MappingChannel |
( |
int |
mapping_channel_id | ) |
const |
- Parameters
-
- Returns
- A pointer to the plug-in's mapping channel, if there is one. Otherwise nullptr is returned.
◆ MappingChannel() [2/2]
◆ Read()
◆ Transform()
bool ON_MappingRef::Transform |
( |
const ON_Xform & |
xform | ) |
|
◆ Write()
◆ m_mapping_channels
◆ m_plugin_id