MaterialMappingControl

class HPS::MaterialMappingControl : public HPS::Control

The HPS::MaterialMappingControl class is a smart pointer that is tied to a database object. This object allows you to manipulate materials at the segment level. Examples of materials include texture, color, and gloss, among other things. Materials can be applied to geometry faces, edges, vertices, and text. Light color can also be set using this control. Materials can be applied at the segment, entity, or subentity level. In all MaterialMappingControl functions that take an RGBAColor, the alpha channel is ignored.

This table lists default values for the various segment attributes accessible from HPS::MaterialMappingControl.

Public Functions

MaterialMappingControl(MaterialMappingControl &&in_that)

The move constructor creates a MaterialMappingControl by transferring the underlying impl of the rvalue reference to this MaterialMappingControl thereby avoiding a copy and allocation.

Parameters

in_that – An rvalue reference to a MaterialMappingControl to take the impl from.

MaterialMappingControl(MaterialMappingControl const &in_that)

Initializes a control tied to the same object as in_that.

explicit MaterialMappingControl(SegmentKey &in_seg)

Initializes a control tied to the segment in_seg.

inline virtual HPS::Type ObjectType() const

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Returns

The declared type of the object in question, which may differ from the true, underlying type.

MaterialMappingControl &operator=(MaterialMappingControl &&in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this MaterialMappingControl thereby avoiding a copy.

Parameters

in_that – An rvalue reference to a MaterialMappingControl to take the impl from.

Returns

A reference to this MaterialMappingControl.

MaterialMappingControl &operator=(MaterialMappingControl const &in_that)

Share the underlying smart-pointer of the MaterialMappingControl source.

Parameters

in_that – The MaterialMappingControl source of the assignment.

Returns

A reference to this MaterialMappingControl.

MaterialMappingControl &SetAmbientLightColor(RGBAColor const &in_rgba_color)

Sets a color on both ambient and ambient down using an RGBAColor, replacing any previous mapping to those geometry types.

Parameters

in_rgba_color – An RGBA color that will be applied to those geometry types. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetAmbientLightDownColor(RGBAColor const &in_rgba_color)

Sets a color using an RGBAColor, replacing any previous mapping to this geometry type.

Parameters

in_rgba_color – A color to apply to this geometry type. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetAmbientLightDownMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type. Because this geometry only supports a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetAmbientLightMaterialByIndex(float in_material_index)

Sets a color on both ambient and ambient down by using in_material_index to index into the active material palette, replacing any previous mapping to those geometry types. Because these geometry types only support a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetAmbientLightUpColor(RGBAColor const &in_rgba_color)

Sets a color using an RGBAColor, replacing any previous mapping to this geometry type.

Parameters

in_rgba_color – A color to apply to this geometry type. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetAmbientLightUpMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type. Because this geometry only supports a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetBackFaceAlpha(float in_alpha)

Sets an alpha on the diffuse channel using in_alpha on the back face, replacing any previous mapping to that channel on this geometry type. If diffuse channel doesn’t exist, white is used as the default value on diffuse channel with alpha value of in_alpha

Parameters

in_alpha – A color to apply to the diffuse channel of this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetBackFaceColor(RGBAColor const &in_rgba_color, Material::Color::Channel in_channel = Material::Color::Channel::DiffuseColor)

Sets a color on a particular channel using an RGBAColor on the back face, replacing any previous mapping to that channel on this geometry type.

Parameters
  • in_rgba_color – A color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.

  • in_channel – The color channel to apply the color to.

Returns

A reference to this object.

MaterialMappingControl &SetBackFaceGloss(float in_value)

Sets the gloss general “shininess” of this geometry type.

Parameters

in_value – A gloss value is always positive, and most surfaces have a gloss in the range from 1.0 to 30.0.

Returns

A reference to this object.

MaterialMappingControl &SetBackFaceMaterial(MaterialKit const &in_material)

Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type.

Parameters

in_material – A material kit to be applied to all channels on this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetBackFaceMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetBackFaceModulatedTexture(char const *in_texture_name, RGBAColor const &in_modulating_color, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture on a particular channel, replacing any previous mapping to that channel on this geometry type. The texture will be modulated by the specified color. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_modulating_color – a color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetBackFaceTexture(char const *in_texture_name, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture in_texture_name on the channel in_channel on the back face, replacing any previous mapping to that channel on this geometry type. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetCutEdgeColor(RGBAColor const &in_rgba_color)

Sets a color using an RGBAColor, replacing any previous mapping to this geometry type.

Parameters

in_rgba_color – A color to apply to this geometry type. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetCutEdgeMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type. Because this geometry only supports a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetCutFaceAlpha(float in_alpha)

Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. If diffuse channel doesn’t exist, white is used as the default value on diffuse channel with alpha value of in_alpha

Parameters

in_alpha – A color to apply to the diffuse channel of this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetCutFaceColor(RGBAColor const &in_rgba_color, Material::Color::Channel in_channel = Material::Color::Channel::DiffuseColor)

Sets a color on a particular channel using an RGBAColor, replacing any previous mapping to that channel on this geometry type.

Parameters
  • in_rgba_color – A color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.

  • in_channel – The color channel to apply the color to.

Returns

A reference to this object.

MaterialMappingControl &SetCutFaceGloss(float in_value)

Sets the gloss general “shininess” of this geometry type.

Parameters

in_value – A gloss value is always positive, and most surfaces have a gloss in the range from 1.0 to 30.0.

Returns

A reference to this object.

MaterialMappingControl &SetCutFaceMaterial(MaterialKit const &in_material)

Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type.

Parameters

in_material – A material kit to be applied to all channels on this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetCutFaceMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetCutFaceModulatedTexture(char const *in_texture_name, RGBAColor const &in_modulating_color, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture on a particular channel, replacing any previous mapping to that channel on this geometry type. The texture will be modulated by the specified color. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_modulating_color – a color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetCutFaceTexture(char const *in_texture_name, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture in_texture_name on the channel in_channel, replacing any previous mapping to that channel on this geometry type. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetCutGeometryColor(RGBAColor const &in_rgba_color)

Sets a color on both cut edges and cut faces using an RGBAColor, replacing any previous mapping to those geometry types.

Parameters

in_rgba_color – An RGBA color that will be applied to those geometry types. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetCutGeometryMaterialByIndex(float in_color_index)

Sets a color on both cut edges and cut faces by using in_material_index to index into the active material palette, replacing any previous mapping to those geometry types.

Parameters

in_color_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetEdgeAlpha(float in_alpha)

Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. If diffuse channel doesn’t exist, white is used as the default value on diffuse channel with alpha value of in_alpha

Parameters

in_alpha – A color to apply to the diffuse channel of this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetEdgeColor(RGBAColor const &in_rgba_color, Material::Color::Channel in_channel = Material::Color::Channel::DiffuseColor)

Sets a color on a particular channel using an RGBAColor, replacing any previous mapping to that channel on this geometry type.

Parameters
  • in_rgba_color – A color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.

  • in_channel – The color channel to apply the color to.

Returns

A reference to this object.

MaterialMappingControl &SetEdgeGloss(float in_value)

Sets the gloss general “shininess” of this geometry type.

Parameters

in_value – A gloss value is always positive, and most surfaces have a gloss in the range from 1.0 to 30.0.

Returns

A reference to this object.

MaterialMappingControl &SetEdgeMaterial(MaterialKit const &in_material)

Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type.

Parameters

in_material – A material kit to be applied to all channels on this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetEdgeMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetEdgeModulatedTexture(char const *in_texture_name, RGBAColor const &in_modulating_color, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture on a particular channel, replacing any previous mapping to that channel on this geometry type. The texture will be modulated by the specified color. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_modulating_color – a color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetEdgeTexture(char const *in_texture_name, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture in_texture_name on the channel in_channel, replacing any previous mapping to that channel on this geometry type. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetFaceAlpha(float in_alpha)

Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. This function sets the alpha for both the front and back faces. If diffuse channel doesn’t exist, white is used as the default value on diffuse channel with alpha value of in_alpha

Parameters

in_alpha – A color to apply to the diffuse channel of this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetFaceColor(RGBAColor const &in_rgba_color, Material::Color::Channel in_channel = Material::Color::Channel::DiffuseColor)

Sets a color on a particular channel using an RGBAColor, replacing any previous mapping to that channel on this geometry type. This function sets the color for both the front and back faces.

Parameters
  • in_rgba_color – A color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.

  • in_channel – The color channel to apply the color to.

Returns

A reference to this object.

MaterialMappingControl &SetFaceGloss(float in_value)

Sets the gloss general “shininess” of this geometry type.

Parameters

in_value – A gloss value is always positive, and most surfaces have a gloss in the range from 1.0 to 30.0.

Returns

A reference to this object.

MaterialMappingControl &SetFaceLegacyShader(char const *in_legacy_shader_name)

Internal use only - customers should not use. Applies a shader by name, replacing any previous mapping to the DiffuseTexture channel on this geometry type.

Parameters

in_legacy_shader_name – The name of a shader, defined in a portfolio that is accessible.

Returns

A reference to this object.

MaterialMappingControl &SetFaceMaterial(MaterialKit const &in_material)

Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type.

Parameters

in_material – A material kit to be applied to all channels on this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetFaceMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetFaceModulatedTexture(char const *in_texture_name, RGBAColor const &in_modulating_color, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture on a particular channel, replacing any previous mapping to that channel on this geometry type. The texture will be modulated by the specified color. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_modulating_color – a color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetFaceTexture(char const *in_texture_name, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture in_texture_name on the channel in_channel, replacing any previous mapping to that channel on this geometry type. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetFrontFaceAlpha(float in_alpha)

Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. If diffuse channel doesn’t exist, white is used as the default value on diffuse channel with alpha value of in_alpha

Parameters

in_alpha – A color to apply to the diffuse channel of this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetFrontFaceColor(RGBAColor const &in_rgba_color, Material::Color::Channel in_channel = Material::Color::Channel::DiffuseColor)

Sets a color on a particular channel using an RGBAColor, replacing any previous mapping to that channel on this geometry type.

Parameters
  • in_rgba_color – A color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.

  • in_channel – The color channel to apply the color to.

Returns

A reference to this object.

MaterialMappingControl &SetFrontFaceGloss(float in_value)

Sets the gloss general “shininess” of this geometry type.

Parameters

in_value – A gloss value is always positive, and most surfaces have a gloss in the range from 1.0 to 30.0.

Returns

A reference to this object.

MaterialMappingControl &SetFrontFaceMaterial(MaterialKit const &in_material)

Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type.

Parameters

in_material – A material kit to be applied to all channels on this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetFrontFaceMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetFrontFaceModulatedTexture(char const *in_texture_name, RGBAColor const &in_modulating_color, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture on a particular channel, replacing any previous mapping to that channel on this geometry type. The texture will be modulated by the specified color. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_modulating_color – a color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetFrontFaceTexture(char const *in_texture_name, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture in_texture_name on the channel in_channel, replacing any previous mapping to that channel on this geometry type. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetGeometryColor(RGBAColor const &in_rgba_color)

Sets a color on all basic geometry types (faces, edges, lines, markers, vertices, text) using an RGBAColor, replacing any previous mapping to those geometry types.

Parameters

in_rgba_color – An RGBA color that will be applied to all basic geometry types. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetLightColor(RGBAColor const &in_rgba_color)

Sets a color using an RGBAColor, replacing any previous mapping to this geometry type.

Parameters

in_rgba_color – A color to apply to this geometry type. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetLightMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type. Because this geometry only supports a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetLineAlpha(float in_alpha)

Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type.

Parameters

in_alpha – A color to apply to the diffuse channel of this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetLineColor(RGBAColor const &in_rgba_color)

Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. Note that this function implicitly sets an alpha value for lines if an RGBColor is passed in. The alpha value can be modified either by calling this function again, or by calling SetLineAlpha.

Parameters

in_rgba_color – A color to apply to this geometry type. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetLineMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type. Because this geometry only supports a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetMarkerColor(RGBAColor const &in_rgba_color)

Sets a color using an RGBAColor, replacing any previous mapping to this geometry type.

Parameters

in_rgba_color – A color to apply to this geometry type. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetMarkerMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type. Because this geometry only supports a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetTextColor(RGBAColor const &in_rgba_color)

Sets a color using an RGBAColor, replacing any previous mapping to this geometry type.

Parameters

in_rgba_color – A color to apply to this geometry type. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetTextMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type. Because this geometry only supports a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetVertexAlpha(float in_alpha)

Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. If diffuse channel doesn’t exist, white is used as the default value on diffuse channel with alpha value of in_alpha

Parameters

in_alpha – A color to apply to the diffuse channel of this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetVertexColor(RGBAColor const &in_rgba_color, Material::Color::Channel in_channel = Material::Color::Channel::DiffuseColor)

Sets a color on a particular channel using an RGBAColor, replacing any previous mapping to that channel on this geometry type.

Parameters
  • in_rgba_color – A color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.

  • in_channel – The color channel to apply the color to.

Returns

A reference to this object.

MaterialMappingControl &SetVertexGloss(float in_value)

Sets the gloss general “shininess” of this geometry type.

Parameters

in_value – A gloss value is always positive, and most surfaces have a gloss in the range from 1.0 to 30.0.

Returns

A reference to this object.

MaterialMappingControl &SetVertexLegacyShader(char const *in_legacy_shader_name)

Internal use only - customers should not use. Applies a shader by name, replacing any previous mapping to the DiffuseTexture channel on this geometry type.

Parameters

in_legacy_shader_name – The name of a shader, defined in a portfolio that is accessible.

Returns

A reference to this object.

MaterialMappingControl &SetVertexMaterial(MaterialKit const &in_material)

Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type.

Parameters

in_material – A material kit to be applied to all channels on this geometry type.

Returns

A reference to this object.

MaterialMappingControl &SetVertexMaterialByIndex(float in_material_index)

Sets a material by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetVertexModulatedTexture(char const *in_texture_name, RGBAColor const &in_modulating_color, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture on a particular channel, replacing any previous mapping to that channel on this geometry type. The texture will be modulated by the specified color. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_modulating_color – a color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetVertexTexture(char const *in_texture_name, Material::Texture::Channel in_channel = Material::Texture::Channel::DiffuseTexture, size_t in_layer = 0)

Sets a texture in_texture_name on the channel in_channel, replacing any previous mapping to that channel on this geometry type. The DiffuseTexture channel additionally supports mapping textures to multiple layers with higher layers appearing on top of lower layers.

Parameters
  • in_texture_name – The name of a texture, defined in a portfolio that is accessible.

  • in_channel – The texture channel to apply the texture to.

  • in_layer – The specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.

Returns

A reference to this object.

MaterialMappingControl &SetWindowColor(RGBAColor const &in_rgba_color)

Sets a color using an RGBAColor, replacing any previous mapping to this geometry type.

Parameters

in_rgba_color – An RGBA color that will be applied to this geometry types. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetWindowContrastColor(RGBAColor const &in_rgba_color)

Sets a color using an RGBAColor, replacing any previous mapping to this geometry type.

Parameters

in_rgba_color – An RGBA color that will be applied to this geometry types. Alpha channel is ignored.

Returns

A reference to this object.

MaterialMappingControl &SetWindowContrastMaterialByIndex(float in_material_index)

Sets a color by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type. Because this geometry only supports a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

MaterialMappingControl &SetWindowMaterialByIndex(float in_material_index)

Sets a color by using in_material_index to index into the active material palette, replacing any previous mapping to this geometry type. Because this geometry only supports a simple color, only the diffuse channel of the material will be used.

Parameters

in_material_index – An index into the active material palette.

Returns

A reference to this object.

bool ShowAmbientLightDownColor(Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const

Shows the material mapping for this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowAmbientLightUpColor(Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const

Shows the material mapping for this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowBackFaceChannel(Material::Channel in_channel, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index. If out_type is DiffuseChannelAlpha, this value contains the alpha value. If out_type is GlossValue, this value contains the gloss value.

Returns

true if the setting is valid, false otherwise.

bool ShowBackFaceChannel(Material::Channel in_channel, size_t in_layer, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • in_layer – The specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index. If out_type is DiffuseChannelAlpha, this value contains the alpha value. If out_type is GlossValue, this value contains the gloss value.

Returns

true if the setting is valid, false otherwise.

bool ShowBackFaceMaterial(Material::Type &out_type, MaterialKit &out_kit, float &out_value) const

Shows the material mapping for all channels of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_kit – If out_type is FullMaterial, this value contains the material.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowCutEdgeColor(Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const

Shows the material mapping for this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowCutFaceChannel(Material::Channel in_channel, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowCutFaceChannel(Material::Channel in_channel, size_t in_layer, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • in_layer – The specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowCutFaceMaterial(Material::Type &out_type, MaterialKit &out_kit, float &out_value) const

Shows the material mapping for all channels of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_kit – If out_type is FullMaterial, this value contains the material.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowEdgeChannel(Material::Channel in_channel, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowEdgeChannel(Material::Channel in_channel, size_t in_layer, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • in_layer – The specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowEdgeMaterial(Material::Type &out_type, MaterialKit &out_kit, float &out_value) const

Shows the material mapping for all channels of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_kit – If out_type is FullMaterial, this value contains the material.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowFaceChannel(Material::Channel in_channel, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index. If out_type is DiffuseChannelAlpha, this value contains the alpha value. If out_type is GlossValue, this value contains the gloss value.

Returns

true if the setting is valid, false otherwise.

bool ShowFaceChannel(Material::Channel in_channel, size_t in_layer, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • in_layer – The specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index. If out_type is DiffuseChannelAlpha, this value contains the alpha value. If out_type is GlossValue, this value contains the gloss value.

Returns

true if the setting is valid, false otherwise.

bool ShowFaceMaterial(Material::Type &out_type, MaterialKit &out_kit, float &out_value) const

Shows the material mapping for all channels of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_kit – If out_type is FullMaterial, this value contains the material.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowFrontFaceChannel(Material::Channel in_channel, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index. If out_type is DiffuseChannelAlpha, this value contains the alpha value. If out_type is GlossValue, this value contains the gloss value.

Returns

true if the setting is valid, false otherwise.

bool ShowFrontFaceChannel(Material::Channel in_channel, size_t in_layer, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • in_layer – The specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index. If out_type is DiffuseChannelAlpha, this value contains the alpha value. If out_type is GlossValue, this value contains the gloss value.

Returns

true if the setting is valid, false otherwise.

bool ShowFrontFaceMaterial(Material::Type &out_type, MaterialKit &out_kit, float &out_value) const

Shows the material mapping for all channels of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_kit – If out_type is FullMaterial, this value contains the material.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowLightColor(Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const

Shows the material mapping for this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowLineAlpha(float &out_alpha) const

Shows the alpha setting for lines.

Parameters

out_alpha – The alpha value for lines.

Returns

true if the setting is valid, false otherwise.

bool ShowLineColor(Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const

Shows the material mapping for this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowMarkerColor(Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const

Shows the material mapping for this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowTextColor(Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const

Shows the material mapping for this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowVertexChannel(Material::Channel in_channel, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowVertexChannel(Material::Channel in_channel, size_t in_layer, Material::Type &out_type, RGBAColor &out_rgba_color, UTF8 &out_texture_name, float &out_value) const

Shows the material mapping for the channel in_channel and layer in_layer of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • in_channel – The channel to query.

  • in_layer – The specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.

  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.

  • out_texture_name – If out_type is TextureName or ModulatedTexture, this value contains the name of the texture.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowVertexMaterial(Material::Type &out_type, MaterialKit &out_kit, float &out_value) const

Shows the material mapping for all channels of this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_kit – If out_type is FullMaterial, this value contains the material.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowWindowColor(Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const

Shows the material mapping for this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

bool ShowWindowContrastColor(Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const

Shows the material mapping for this geometry type. The out_type parameter indicates which of the other arguments is valid.

Parameters
  • out_type – Indicates the type of material.

  • out_rgba_color – If out_type is RGBAColor, this value contains the color.

  • out_value – If out_type is MaterialIndex, this value contains the index.

Returns

true if the setting is valid, false otherwise.

MaterialMappingControl &UnsetAmbientLightColor()

Removes the material mapping for both ambient light up and ambient light down. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetAmbientLightDownColor()

Removes the material mapping for this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetAmbientLightUpColor()

Removes the material mapping for this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetBackFaceChannel(Material::Channel in_channel)

Removes the material mapping for one channel of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetBackFaceChannel(Material::Channel in_channel, size_t in_layer)

Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetBackFaceMaterial()

Removes the material mapping for all channels of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetCutEdgeColor()

Removes the material mapping for this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetCutFaceChannel(Material::Channel in_channel)

Removes the material mapping for one channel of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetCutFaceChannel(Material::Channel in_channel, size_t in_layer)

Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetCutFaceMaterial()

Removes the material mapping for all channels of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetCutGeometryColor()

Removes the material mapping for both cut edges and cut faces. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetEdgeChannel(Material::Channel in_channel)

Removes the material mapping for one channel of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetEdgeChannel(Material::Channel in_channel, size_t in_layer)

Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetEdgeMaterial()

Removes the material mapping for all channels of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetEverything()

Removes all settings from this object. If the control is attached to a WindowKey this function restores the default settings of this control as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetFaceChannel(Material::Channel in_channel)

Removes the material mapping for one channel of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetFaceChannel(Material::Channel in_channel, size_t in_layer)

Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetFaceMaterial()

Removes the material mapping for all channels of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetFrontFaceChannel(Material::Channel in_channel)

Removes the material mapping for one channel of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetFrontFaceChannel(Material::Channel in_channel, size_t in_layer)

Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetFrontFaceMaterial()

Removes the material mapping for all channels of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetLightColor()

Removes the material mapping for this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetLineAlpha()

Removes the line alpha setting. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetLineColor()

Removes the material mapping for this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault(). Note that this function also unsets alpha values specified for lines through SetLineAlpha on this control.

Returns

A reference to this object.

MaterialMappingControl &UnsetMarkerColor()

Removes the material mapping for this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetTextColor()

Removes the material mapping for this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetVertexChannel(Material::Channel in_channel)

Removes the material mapping for one channel of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetVertexChannel(Material::Channel in_channel, size_t in_layer)

Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetVertexMaterial()

Removes the material mapping for all channels of this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetWindowColor()

Removes the material mapping for this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

MaterialMappingControl &UnsetWindowContrastColor()

Removes the material mapping for this geometry type. If the control is attached to a WindowKey this function restores the default value of this setting as specified by MaterialMappingKit::GetDefault().

Returns

A reference to this object.

~MaterialMappingControl()

Releases a reference to the database object this control is tied to.

Public Static Attributes

static const HPS::Type staticType = HPS::Type::MaterialMappingControl