#include <opennurbs_rendering.h>
◆ ON_ObjectRenderingAttributes()
ON_ObjectRenderingAttributes::ON_ObjectRenderingAttributes |
( |
| ) |
|
◆ AddMappingChannel()
bool ON_ObjectRenderingAttributes::AddMappingChannel |
( |
const ON_UUID & |
plugin_id, |
|
|
int |
mapping_channel_id, |
|
|
const ON_UUID & |
mapping_id |
|
) |
| |
Parameters: plugin_id - [in] 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.
◆ AddMappingRef()
Parameters: plugin_id - [in] Returns: If a mapping ref exists, it is returned. Otherwise one is added.
◆ AdvancedTexturePreview()
bool ON_ObjectRenderingAttributes::AdvancedTexturePreview |
( |
| ) |
const |
Returns: True if advanced texture preview is enabled.
◆ ChangeMappingChannel()
bool ON_ObjectRenderingAttributes::ChangeMappingChannel |
( |
const ON_UUID & |
plugin_id, |
|
|
int |
old_mapping_channel_id, |
|
|
int |
new_mapping_channel_id |
|
) |
| |
Parameters: plugin_id - [in] 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_ObjectRenderingAttributes::Default |
( |
| ) |
|
◆ DeleteMappingChannel() [1/2]
bool ON_ObjectRenderingAttributes::DeleteMappingChannel |
( |
const ON_UUID & |
plugin_id, |
|
|
const ON_UUID & |
mapping_id |
|
) |
| |
◆ DeleteMappingChannel() [2/2]
bool ON_ObjectRenderingAttributes::DeleteMappingChannel |
( |
const ON_UUID & |
plugin_id, |
|
|
int |
mapping_channel_id |
|
) |
| |
Parameters: plugin_id - [in] mapping_channel_id - [in] mapping_id - [in] ON_TextureMapping id Returns: True if a matching mapping channel was deleted.
◆ DeleteMappingRef()
bool ON_ObjectRenderingAttributes::DeleteMappingRef |
( |
const ON_UUID & |
plugin_id | ) |
|
Parameters: plugin_id - [in] Returns: If a mapping ref exists, it is returned. Otherwise one is added.
◆ EnableAdvancedTexturePreview()
void ON_ObjectRenderingAttributes::EnableAdvancedTexturePreview |
( |
bool |
b | ) |
|
Parameters: bEnable - [in] false - (default) Do not generate bitmap textures that approximate procedural textures. true - generate bitmap textures that approximate procedural textures and use these for quick previews. Returns: True if advanced texture preview is enabled.
◆ IsValid()
bool ON_ObjectRenderingAttributes::IsValid |
( |
ON_TextLog * |
text_log | ) |
const |
◆ MappingChannel() [1/2]
◆ MappingChannel() [2/2]
const ON_MappingChannel* ON_ObjectRenderingAttributes::MappingChannel |
( |
const ON_UUID & |
plugin_id, |
|
|
int |
mapping_channel_id |
|
) |
| const |
Parameters: plugin_id - [in] 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.
◆ MappingRef()
Parameters: plugin_id - [in] Returns: A pointer to the plug-in's mapping reference, if there is one. Otherwise nullptr is returned.
◆ OCSMappingChannelId()
static int ON_ObjectRenderingAttributes::OCSMappingChannelId |
( |
void |
| ) |
|
|
static |
◆ Read()
◆ Transform()
bool ON_ObjectRenderingAttributes::Transform |
( |
const ON_Xform & |
xform | ) |
|
Description: Update mapping channel transformations. Parameters: xform - [in] Transformation applied to parent object. Returns: True is successful. False if there are mapping channels and xform cannot be inverted.
◆ Write()
◆ m_bCastsShadows
bool ON_ObjectRenderingAttributes::m_bCastsShadows |
◆ m_bReceivesShadows
bool ON_ObjectRenderingAttributes::m_bReceivesShadows |
◆ m_mappings