#include <opennurbs_mapchan.h>
Class ON_MaterialRef
Description: 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_material_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: mapping_channel_id - [in] mapping_id - [in] ON_TextureMapping id Returns: True if the mapping channel was added or a perfect 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 |
( |
const ON_UUID & |
mapping_id | ) |
|
◆ DeleteMappingChannel() [2/2]
bool ON_MappingRef::DeleteMappingChannel |
( |
int |
mapping_channel_id | ) |
|
Parameters: mapping_channel_id - [in] mapping_id - [in] ON_TextureMapping id Returns: True if a matching mapping channel was deleted.
◆ IsValid()
bool ON_MappingRef::IsValid |
( |
ON_TextLog * |
text_log | ) |
const |
◆ MappingChannel() [1/2]
◆ MappingChannel() [2/2]
const ON_MappingChannel* ON_MappingRef::MappingChannel |
( |
int |
mapping_channel_id | ) |
const |
Parameters: mapping_channel_id - [in] mapping_id - [in] ON_TextureMapping id Returns: A pointer to the plug-in's mapping channel, if there is one. Otherwise nullptr is returned.
◆ Read()
◆ Transform()
bool ON_MappingRef::Transform |
( |
const ON_Xform & |
xform | ) |
|
◆ Write()
◆ m_mapping_channels
◆ m_plugin_id
Identifies a rendering plugin.