Replacement for ON_MappingChannel that actually carries the ON_TextureMapping around with it instead of storing it in a document table - meaning that it can be passed off to non-document threads and still access the data correctly.
More...
#include <IRhRdkCustomRenderMeshes.h>
Replacement for ON_MappingChannel that actually carries the ON_TextureMapping around with it instead of storing it in a document table - meaning that it can be passed off to non-document threads and still access the data correctly.
◆ ~IMappingChannel()
virtual RhRdk::CustomRenderMeshes::IRenderMeshes::IMappingChannel::~IMappingChannel |
( |
| ) |
|
|
inlinevirtual |
◆ Id()
virtual int RhRdk::CustomRenderMeshes::IRenderMeshes::IMappingChannel::Id |
( |
void |
| ) |
const |
|
pure virtual |
◆ LocalXform()
virtual const ON_Xform& RhRdk::CustomRenderMeshes::IRenderMeshes::IMappingChannel::LocalXform |
( |
void |
| ) |
const |
|
pure virtual |
The local mapping transform for this particular object - corresponds to ON_MappingChannel::m_object_xform The default value of m_object_xform is the identity. When an object that uses this mapping is transformed by "T", m_object_xform is updated using the formula m_object_xform = T*m_object_xform. If texture coordinates are lost and need to be recalculated and m_object_xform is not the identity, then m_object_xform should be passed to ON_TextureMapping::Evaluate() as the mesh_xform parameter. When validating mapping coordinates, m_object_xform itself be passed to HasMatchingTextureCoordinates() as the object_transform parameter.
- Returns
- A transform
◆ MakeCopy()
virtual std::shared_ptr<IMappingChannel> RhRdk::CustomRenderMeshes::IRenderMeshes::IMappingChannel::MakeCopy |
( |
void |
| ) |
const |
|
pure virtual |
Deep copy
- Returns
- A copy of the channel
◆ Mapping()
virtual const ON_TextureMapping& RhRdk::CustomRenderMeshes::IRenderMeshes::IMappingChannel::Mapping |
( |
void |
| ) |
const |
|
pure virtual |
The full mapping object that would usually be stored in the document mapping table. See ON_TextureMapping
- Returns
- The texture mapping
◆ New()
Create a new mapping channel
- Parameters
-
- Returns
◆ Transform()
virtual void RhRdk::CustomRenderMeshes::IRenderMeshes::IMappingChannel::Transform |
( |
const ON_Xform & |
xform | ) |
|
|
pure virtual |
Transforms the mapping channel
- Parameters
-