#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
-
- 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.
◆ AddMappingRef()
- Parameters
-
- Returns
- If a mapping ref exists, it is returned. Otherwise one is added.
◆ AdvancedTexturePreview()
| bool ON_ObjectRenderingAttributes::AdvancedTexturePreview |
( |
| ) |
const |
- Returns
- True if advancded 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, |
|
|
int |
mapping_channel_id |
|
) |
| |
- Parameters
-
- Returns
- True if a matching mapping channel was deleted.
◆ DeleteMappingChannel() [2/2]
| bool ON_ObjectRenderingAttributes::DeleteMappingChannel |
( |
const ON_UUID & |
plugin_id, |
|
|
const ON_UUID & |
mapping_id |
|
) |
| |
◆ DeleteMappingRef()
| bool ON_ObjectRenderingAttributes::DeleteMappingRef |
( |
const ON_UUID & |
plugin_id | ) |
|
- Parameters
-
- 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 advancded texture preview is enabled.
◆ IsValid()
| bool ON_ObjectRenderingAttributes::IsValid |
( |
ON_TextLog * |
text_log | ) |
const |
◆ MappingChannel() [1/2]
| const ON_MappingChannel* ON_ObjectRenderingAttributes::MappingChannel |
( |
const ON_UUID & |
plugin_id, |
|
|
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]
◆ MappingRef()
- Parameters
-
- Returns
- A pointer to the plug-in's mapping reference, if there is one. Otherwise nullptr is returned.
◆ Read()
◆ Transform()
| bool ON_ObjectRenderingAttributes::Transform |
( |
const ON_Xform & |
xform | ) |
|
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