|
openNURBS SDK Help
6.0
|
#include <opennurbs_mapchan.h>
Public Member Functions | |
| ON_MappingRef () | |
| bool | AddMappingChannel (int mapping_channel_id, const ON_UUID &mapping_id) |
| bool | ChangeMappingChannel (int old_mapping_channel_id, int new_mapping_channel_id) |
| int | Compare (const ON_MappingRef &other) const |
| void | Default () |
| bool | DeleteMappingChannel (int mapping_channel_id) |
| bool | DeleteMappingChannel (const ON_UUID &mapping_id) |
| bool | IsValid (ON_TextLog *text_log) const |
| const ON_MappingChannel * | MappingChannel (int mapping_channel_id) const |
| const ON_MappingChannel * | MappingChannel (const ON_UUID &mapping_id) const |
| bool | Read (ON_BinaryArchive &archive) |
| bool | Transform (const ON_Xform &xform) |
| bool | Write (ON_BinaryArchive &archive) const |
Public Attributes | |
| ON_SimpleArray< ON_MappingChannel > | m_mapping_channels |
| ON_UUID | m_plugin_id |
| Identifies a rendering plugin. More... | |
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_matrial_source reflect the settings of the renderer that is currently active.
| ON_MappingRef::ON_MappingRef | ( | ) |
| 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 pefect match already existed. False if a mapping channel with a different mapping_id already exists for this plug-in and channel.
| 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.
| int ON_MappingRef::Compare | ( | const ON_MappingRef & | other | ) | const |
| void ON_MappingRef::Default | ( | ) |
| 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.
| bool ON_MappingRef::DeleteMappingChannel | ( | const ON_UUID & | mapping_id | ) |
| bool ON_MappingRef::IsValid | ( | ON_TextLog * | text_log | ) | const |
| 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.
| const ON_MappingChannel* ON_MappingRef::MappingChannel | ( | const ON_UUID & | mapping_id | ) | const |
| bool ON_MappingRef::Read | ( | ON_BinaryArchive & | archive | ) |
| bool ON_MappingRef::Transform | ( | const ON_Xform & | xform | ) |
| bool ON_MappingRef::Write | ( | ON_BinaryArchive & | archive | ) | const |
| ON_SimpleArray<ON_MappingChannel> ON_MappingRef::m_mapping_channels |
Use AddMappingChannel() if you want to add an element to this array.
Every mapping channel in this array must have a distinct value of ON_MappingChannel.m_mapping_channel_id
| ON_UUID ON_MappingRef::m_plugin_id |
Identifies a rendering plugin.
1.8.13