Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::MaterialMappingControl Class Reference

#include <hps.h>

Inheritance diagram for HPS::MaterialMappingControl:
Collaboration diagram for HPS::MaterialMappingControl:

Public Member Functions

 MaterialMappingControl (SegmentKey &in_seg)
 Initializes a control tied to the segment in_seg. More...
 
 MaterialMappingControl (MaterialMappingControl const &in_that)
 Initializes a control tied to the same object as in_that. More...
 
 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. More...
 
MaterialMappingControloperator= (MaterialMappingControl &&in_that)
 The move assignment operator transfers the underlying impl of the rvalue reference to this MaterialMappingControl thereby avoiding a copy. More...
 
 ~MaterialMappingControl ()
 Releases a reference to the database object this control is tied to. More...
 
virtual HPS::Type Type () const
 This function returns the true type of the underlying object. More...
 
HPS::Type ObjectType () const
 
MaterialMappingControloperator= (MaterialMappingControl const &in_that)
 Share the underlying smart-pointer of the MaterialMappingControl source. More...
 
MaterialMappingControlSetAmbientLightUpColor (RGBAColor const &in_rgba_color)
 Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetAmbientLightUpMaterialByIndex (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. More...
 
MaterialMappingControlSetAmbientLightDownColor (RGBAColor const &in_rgba_color)
 Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetAmbientLightDownMaterialByIndex (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. More...
 
MaterialMappingControlSetBackFaceAlpha (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. More...
 
MaterialMappingControlSetBackFaceColor (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. More...
 
MaterialMappingControlSetBackFaceTexture (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. More...
 
MaterialMappingControlSetBackFaceModulatedTexture (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. More...
 
MaterialMappingControlSetBackFaceGloss (float in_value)
 Sets the gloss – general "shininess" – of this geometry type. More...
 
MaterialMappingControlSetBackFaceMaterial (MaterialKit const &in_material)
 Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetBackFaceMaterialByIndex (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. More...
 
MaterialMappingControlSetFrontFaceAlpha (float in_alpha)
 Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. More...
 
MaterialMappingControlSetFrontFaceColor (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. More...
 
MaterialMappingControlSetFrontFaceTexture (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. More...
 
MaterialMappingControlSetFrontFaceModulatedTexture (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. More...
 
MaterialMappingControlSetFrontFaceGloss (float in_value)
 Sets the gloss – general "shininess" – of this geometry type. More...
 
MaterialMappingControlSetFrontFaceMaterial (MaterialKit const &in_material)
 Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetFrontFaceMaterialByIndex (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. More...
 
MaterialMappingControlSetCutEdgeColor (RGBAColor const &in_rgba_color)
 Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetCutEdgeMaterialByIndex (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. More...
 
MaterialMappingControlSetCutFaceAlpha (float in_alpha)
 Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. More...
 
MaterialMappingControlSetCutFaceColor (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. More...
 
MaterialMappingControlSetCutFaceTexture (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. More...
 
MaterialMappingControlSetCutFaceModulatedTexture (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. More...
 
MaterialMappingControlSetCutFaceGloss (float in_value)
 Sets the gloss – general "shininess" – of this geometry type. More...
 
MaterialMappingControlSetCutFaceMaterial (MaterialKit const &in_material)
 Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetCutFaceMaterialByIndex (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. More...
 
MaterialMappingControlSetEdgeAlpha (float in_alpha)
 Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. More...
 
MaterialMappingControlSetEdgeColor (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. More...
 
MaterialMappingControlSetEdgeTexture (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. More...
 
MaterialMappingControlSetEdgeModulatedTexture (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. More...
 
MaterialMappingControlSetEdgeGloss (float in_value)
 Sets the gloss – general "shininess" – of this geometry type. More...
 
MaterialMappingControlSetEdgeMaterial (MaterialKit const &in_material)
 Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetEdgeMaterialByIndex (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. More...
 
MaterialMappingControlSetFaceAlpha (float in_alpha)
 Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. More...
 
MaterialMappingControlSetFaceColor (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. More...
 
MaterialMappingControlSetFaceTexture (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. More...
 
MaterialMappingControlSetFaceModulatedTexture (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. More...
 
MaterialMappingControlSetFaceGloss (float in_value)
 Sets the gloss – general "shininess" – of this geometry type. More...
 
MaterialMappingControlSetFaceMaterial (MaterialKit const &in_material)
 Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetFaceMaterialByIndex (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. More...
 
MaterialMappingControlSetFaceShader (char const *in_shader_name)
 Internal use only - customers should not use. More...
 
MaterialMappingControlSetLightColor (RGBAColor const &in_rgba_color)
 Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetLightMaterialByIndex (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. More...
 
MaterialMappingControlSetLineColor (RGBAColor const &in_rgba_color)
 Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetLineMaterialByIndex (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. More...
 
MaterialMappingControlSetMarkerColor (RGBAColor const &in_rgba_color)
 Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetMarkerMaterialByIndex (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. More...
 
MaterialMappingControlSetTextColor (RGBAColor const &in_rgba_color)
 Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetTextMaterialByIndex (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. More...
 
MaterialMappingControlSetVertexAlpha (float in_alpha)
 Sets an alpha on the diffuse channel using in_alpha, replacing any previous mapping to that channel on this geometry type. More...
 
MaterialMappingControlSetVertexColor (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. More...
 
MaterialMappingControlSetVertexTexture (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. More...
 
MaterialMappingControlSetVertexModulatedTexture (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. More...
 
MaterialMappingControlSetVertexGloss (float in_value)
 Sets the gloss – general "shininess" – of this geometry type. More...
 
MaterialMappingControlSetVertexMaterial (MaterialKit const &in_material)
 Sets a material for all channels on this geometry type, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetVertexMaterialByIndex (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. More...
 
MaterialMappingControlSetVertexShader (char const *in_shader_name)
 Internal use only - customers should not use. More...
 
MaterialMappingControlSetWindowColor (RGBAColor const &in_rgba_color)
 Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetWindowMaterialByIndex (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. More...
 
MaterialMappingControlSetWindowContrastColor (RGBAColor const &in_rgba_color)
 Sets a color using an RGBAColor, replacing any previous mapping to this geometry type. More...
 
MaterialMappingControlSetWindowContrastMaterialByIndex (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. More...
 
MaterialMappingControlSetCutGeometryColor (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. More...
 
MaterialMappingControlSetCutGeometryMaterialByIndex (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. More...
 
MaterialMappingControlSetAmbientLightColor (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. More...
 
MaterialMappingControlSetAmbientLightMaterialByIndex (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. More...
 
MaterialMappingControlUnsetAmbientLightUpColor ()
 Removes the material mapping for this geometry type. More...
 
MaterialMappingControlUnsetAmbientLightDownColor ()
 Removes the material mapping for this geometry type. More...
 
MaterialMappingControlUnsetFrontFaceMaterial ()
 Removes the material mapping for all channels of this geometry type. More...
 
MaterialMappingControlUnsetFrontFaceChannel (Material::Channel in_channel)
 Removes the material mapping for one channel of this geometry type. More...
 
MaterialMappingControlUnsetFrontFaceChannel (Material::Channel in_channel, size_t in_layer)
 Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. More...
 
MaterialMappingControlUnsetBackFaceMaterial ()
 Removes the material mapping for all channels of this geometry type. More...
 
MaterialMappingControlUnsetBackFaceChannel (Material::Channel in_channel)
 Removes the material mapping for one channel of this geometry type. More...
 
MaterialMappingControlUnsetBackFaceChannel (Material::Channel in_channel, size_t in_layer)
 Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. More...
 
MaterialMappingControlUnsetCutEdgeColor ()
 Removes the material mapping for this geometry type. More...
 
MaterialMappingControlUnsetCutFaceMaterial ()
 Removes the material mapping for all channels of this geometry type. More...
 
MaterialMappingControlUnsetCutFaceChannel (Material::Channel in_channel)
 Removes the material mapping for one channel of this geometry type. More...
 
MaterialMappingControlUnsetCutFaceChannel (Material::Channel in_channel, size_t in_layer)
 Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. More...
 
MaterialMappingControlUnsetEdgeMaterial ()
 Removes the material mapping for all channels of this geometry type. More...
 
MaterialMappingControlUnsetEdgeChannel (Material::Channel in_channel)
 Removes the material mapping for one channel of this geometry type. More...
 
MaterialMappingControlUnsetEdgeChannel (Material::Channel in_channel, size_t in_layer)
 Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. More...
 
MaterialMappingControlUnsetFaceMaterial ()
 Removes the material mapping for all channels of this geometry type. More...
 
MaterialMappingControlUnsetFaceChannel (Material::Channel in_channel)
 Removes the material mapping for one channel of this geometry type. More...
 
MaterialMappingControlUnsetFaceChannel (Material::Channel in_channel, size_t in_layer)
 Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. More...
 
MaterialMappingControlUnsetLightColor ()
 Removes the material mapping for this geometry type. More...
 
MaterialMappingControlUnsetLineColor ()
 Removes the material mapping for this geometry type. More...
 
MaterialMappingControlUnsetMarkerColor ()
 Removes the material mapping for this geometry type. More...
 
MaterialMappingControlUnsetTextColor ()
 Removes the material mapping for this geometry type. More...
 
MaterialMappingControlUnsetVertexMaterial ()
 Removes the material mapping for all channels of this geometry type. More...
 
MaterialMappingControlUnsetVertexChannel (Material::Channel in_channel)
 Removes the material mapping for one channel of this geometry type. More...
 
MaterialMappingControlUnsetVertexChannel (Material::Channel in_channel, size_t in_layer)
 Removes the material mapping for one layer of one channel (usually DiffuseTexture) of this geometry type. More...
 
MaterialMappingControlUnsetWindowColor ()
 Removes the material mapping for this geometry type. More...
 
MaterialMappingControlUnsetWindowContrastColor ()
 Removes the material mapping for this geometry type. More...
 
MaterialMappingControlUnsetCutGeometryColor ()
 Removes the material mapping for both cut edges and cut faces. More...
 
MaterialMappingControlUnsetAmbientLightColor ()
 Removes the material mapping for both ambient light up and ambient light down. More...
 
MaterialMappingControlUnsetEverything ()
 Removes all settings from this object. More...
 
bool ShowAmbientLightUpColor (Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const
 Shows the material mapping for this geometry type. More...
 
bool ShowAmbientLightDownColor (Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const
 Shows the material mapping for this geometry type. More...
 
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. More...
 
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. More...
 
bool ShowBackFaceMaterial (Material::Type &out_type, MaterialKit &out_kit, float &out_value) const
 Shows the material mapping for all channels of this geometry type. More...
 
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. More...
 
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. More...
 
bool ShowFrontFaceMaterial (Material::Type &out_type, MaterialKit &out_kit, float &out_value) const
 Shows the material mapping for all channels of this geometry type. More...
 
bool ShowCutEdgeColor (Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const
 Shows the material mapping for this geometry type. More...
 
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. More...
 
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. More...
 
bool ShowCutFaceMaterial (Material::Type &out_type, MaterialKit &out_kit, float &out_value) const
 Shows the material mapping for all channels of this geometry type. More...
 
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. More...
 
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. More...
 
bool ShowEdgeMaterial (Material::Type &out_type, MaterialKit &out_kit, float &out_value) const
 Shows the material mapping for all channels of this geometry type. More...
 
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. More...
 
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. More...
 
bool ShowFaceMaterial (Material::Type &out_type, MaterialKit &out_kit, float &out_value) const
 Shows the material mapping for all channels of this geometry type. More...
 
bool ShowLightColor (Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const
 Shows the material mapping for this geometry type. More...
 
bool ShowLineColor (Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const
 Shows the material mapping for this geometry type. More...
 
bool ShowMarkerColor (Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const
 Shows the material mapping for this geometry type. More...
 
bool ShowTextColor (Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const
 Shows the material mapping for this geometry type. More...
 
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. More...
 
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. More...
 
bool ShowVertexMaterial (Material::Type &out_type, MaterialKit &out_kit, float &out_value) const
 Shows the material mapping for all channels of this geometry type. More...
 
bool ShowWindowColor (Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const
 Shows the material mapping for this geometry type. More...
 
bool ShowWindowContrastColor (Material::Type &out_type, RGBAColor &out_rgba_color, float &out_value) const
 Shows the material mapping for this geometry type. More...
 
virtual bool Empty () const
 Indicates whether this object has any values set on it. More...
 
virtual void Reset ()
 Resets this object to its initial, uninitialized state. More...
 
bool HasType (HPS::Type in_mask) const
 This function indicates whether this Object has the given Type mask. More...
 
intptr_t GetClassID () const
 Returns a unique identifier that is shared by all objects of the same class. More...
 
intptr_t GetInstanceID () const
 Returns an identifier that can be used to identify which instance of a class an object is. More...
 

Static Public Member Functions

template<typename T >
static intptr_t ClassID ()
 Unique identifier for this class. More...
 

Static Public Attributes

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

Private Member Functions

 MaterialMappingControl ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MaterialMappingControl() [1/4]

HPS::MaterialMappingControl::MaterialMappingControl ( SegmentKey in_seg)
explicit

Initializes a control tied to the segment in_seg.

◆ MaterialMappingControl() [2/4]

HPS::MaterialMappingControl::MaterialMappingControl ( MaterialMappingControl const &  in_that)

Initializes a control tied to the same object as in_that.

◆ MaterialMappingControl() [3/4]

HPS::MaterialMappingControl::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_thatAn rvalue reference to a MaterialMappingControl to take the impl from.

◆ ~MaterialMappingControl()

HPS::MaterialMappingControl::~MaterialMappingControl ( )

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

◆ MaterialMappingControl() [4/4]

HPS::MaterialMappingControl::MaterialMappingControl ( )
private

Member Function Documentation

◆ ClassID()

template<typename T >
static intptr_t HPS::Object::ClassID ( )
inlinestaticinherited

Unique identifier for this class.

Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.

◆ Empty()

virtual bool HPS::Object::Empty ( ) const
inlinevirtualinherited

Indicates whether this object has any values set on it.

Returns
true if no values are set on this object, false otherwise.

Reimplemented in HPS::STL::ImportResultsKit, HPS::STL::ImportOptionsKit, HPS::OBJ::ImportResultsKit, HPS::OBJ::ImportOptionsKit, HPS::Hardcopy::File::ExportOptionsKit, HPS::Stream::ExportOptionsKit, HPS::Stream::ImportResultsKit, HPS::Stream::ImportOptionsKit, HPS::PointCloud::ImportOptionsKit, HPS::PointCloud::ImportResultsKit, HPS::UpdateOptionsKit, HPS::HighlightSearchOptionsKit, HPS::HighlightOptionsKit, HPS::SelectionOptionsKit, HPS::SearchOptionsKit, HPS::CutGeometryGatheringOptionsKit, HPS::ShapeKit, HPS::ShaderKit, HPS::Shader::ImportOptionsKit, HPS::ImageKit, HPS::Image::ImportOptionsKit, HPS::Image::ExportOptionsKit, HPS::TextureOptionsKit, HPS::LinePatternKit, HPS::LinePatternParallelKit, HPS::LinePatternOptionsKit, HPS::GlyphKit, HPS::ApplicationWindowOptionsKit, HPS::OffScreenWindowOptionsKit, HPS::StandAloneWindowOptionsKit, HPS::GridKit, HPS::PolygonKit, HPS::MeshKit, HPS::ShellKit, HPS::ShellRelationResultsKit, HPS::ShellRelationOptionsKit, HPS::ShellOptimizationOptionsKit, HPS::TextKit, HPS::EllipticalArcKit, HPS::EllipseKit, HPS::TrimKit, HPS::NURBSSurfaceKit, HPS::NURBSCurveKit, HPS::SpotlightKit, HPS::InfiniteLineKit, HPS::CuttingSectionKit, HPS::CircularWedgeKit, HPS::CircularArcKit, HPS::CircleKit, HPS::SphereKit, HPS::CylinderKit, HPS::DistantLightKit, HPS::MarkerKit, HPS::LineKit, HPS::AttributeLockKit, HPS::FontInfoState, HPS::WindowInfoKit, HPS::DebuggingKit, HPS::SubwindowKit, HPS::ContourLineKit, HPS::VisualEffectsKit, HPS::TransformMaskKit, HPS::PostProcessEffectsKit, HPS::DrawingAttributeKit, HPS::HiddenLineAttributeKit, HPS::PerformanceKit, HPS::NURBSSurfaceAttributeKit, HPS::MaterialKit, HPS::MaterialMappingKit, HPS::MatrixKit, HPS::CurveAttributeKit, HPS::EdgeAttributeKit, HPS::LineAttributeKit, HPS::TextAttributeKit, HPS::CuttingSectionAttributeKit, HPS::CylinderAttributeKit, HPS::LightingAttributeKit, HPS::SphereAttributeKit, HPS::MarkerAttributeKit, HPS::CullingKit, HPS::ColorInterpolationKit, HPS::TransparencyKit, HPS::SelectabilityKit, HPS::CameraKit, HPS::VisibilityKit, HPS::BoundingKit, HPS::SegmentOptimizationOptionsKit, HPS::Publish::ExportOptionsKit, HPS::Publish::TextFieldKit, HPS::Publish::SignatureFieldKit, HPS::Publish::DropDownListKit, HPS::Exchange::TessellationOptionsKit, HPS::Publish::ListBoxKit, HPS::Exchange::ExportSTEPOptionsKit, HPS::Exchange::ExportParasolidOptionsKit, HPS::Publish::RadioButtonKit, HPS::Exchange::ExportIGESOptionsKit, HPS::Exchange::ExportXMLOptionsKit, HPS::Publish::CheckBoxKit, HPS::Exchange::ExportU3DOptionsKit, HPS::Exchange::ExportSTLOptionsKit, HPS::Publish::ButtonKit, HPS::Exchange::ExportPRCOptionsKit, HPS::Publish::LinkKit, HPS::Exchange::ExportJTOptionsKit, HPS::Publish::SlideTableKit, HPS::Exchange::ExportACISOptionsKit, HPS::Publish::TableKit, HPS::Exchange::Export3MFOptionsKit, HPS::Publish::ImageKit, HPS::Publish::TextKit, HPS::Exchange::ModelFileImportOptionsKit, HPS::Publish::ViewKit, HPS::Exchange::TranslationOptionsKit, HPS::Publish::ArtworkKit, HPS::Publish::AnnotationKit, HPS::ComponentPath, HPS::Exchange::ImportOptionsKit, HPS::Parasolid::ExportOptionsKit, HPS::Exchange::NURBSConversionOptionsKit, HPS::Parasolid::LineTessellationKit, HPS::Exchange::Configuration, HPS::Publish::PageKit, HPS::Parasolid::FacetTessellationKit, HPS::Publish::DocumentKit, HPS::Parasolid::ImportOptionsKit, HPS::DWG::ImportOptionsKit, HPS::OOC::ImportOptionsKit, HPS::Sketchup::ImportOptionsKit, and HPS::Sketchup::ImportResultsKit.

◆ GetClassID()

intptr_t HPS::Object::GetClassID ( ) const
inherited

Returns a unique identifier that is shared by all objects of the same class.

Returns
A unique value shared by all objects of the same class.

◆ GetInstanceID()

intptr_t HPS::Object::GetInstanceID ( ) const
inherited

Returns an identifier that can be used to identify which instance of a class an object is.

Different keys and controls will return the same value if they are backed by the same database resource.

Returns
A value unique to an instance of an object and all objects that are backed by the same database resource.

◆ HasType()

bool HPS::Object::HasType ( HPS::Type  in_mask) const
inherited

This function indicates whether this Object has the given Type mask.

Parameters
in_maskThe Type mask to check against this Object.
Returns
true if this Object has the given Type mask, false otherwise.

◆ ObjectType()

HPS::Type HPS::MaterialMappingControl::ObjectType ( ) const
inlinevirtual

Reimplemented from HPS::Control.

◆ operator=() [1/2]

MaterialMappingControl& HPS::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_thatAn rvalue reference to a MaterialMappingControl to take the impl from.
Returns
A reference to this MaterialMappingControl.

◆ operator=() [2/2]

MaterialMappingControl& HPS::MaterialMappingControl::operator= ( MaterialMappingControl const &  in_that)

Share the underlying smart-pointer of the MaterialMappingControl source.

Parameters
in_thatThe MaterialMappingControl source of the assignment.
Returns
A reference to this MaterialMappingControl.

◆ Reset()

◆ SetAmbientLightColor()

MaterialMappingControl& HPS::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_colorAn RGBA color that will be applied to those geometry types. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetAmbientLightDownColor()

MaterialMappingControl& HPS::MaterialMappingControl::SetAmbientLightDownColor ( RGBAColor const &  in_rgba_color)

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

Parameters
in_rgba_colorA color to apply to this geometry type. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetAmbientLightDownMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetAmbientLightMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetAmbientLightUpColor()

MaterialMappingControl& HPS::MaterialMappingControl::SetAmbientLightUpColor ( RGBAColor const &  in_rgba_color)

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

Parameters
in_rgba_colorA color to apply to this geometry type. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetAmbientLightUpMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetBackFaceAlpha()

MaterialMappingControl& HPS::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_alphaA color to apply to the diffuse channel of this geometry type.
Returns
A reference to this object.

◆ SetBackFaceColor()

MaterialMappingControl& HPS::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_colorA color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.
in_channelThe color channel to apply the color to.
Returns
A reference to this object.

◆ SetBackFaceGloss()

MaterialMappingControl& HPS::MaterialMappingControl::SetBackFaceGloss ( float  in_value)

Sets the gloss – general "shininess" – of this geometry type.

Parameters
in_valueA 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.

◆ SetBackFaceMaterial()

MaterialMappingControl& HPS::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_materialA material kit to be applied to all channels on this geometry type.
Returns
A reference to this object.

◆ SetBackFaceMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetBackFaceModulatedTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_modulating_colora color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetBackFaceTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetCutEdgeColor()

MaterialMappingControl& HPS::MaterialMappingControl::SetCutEdgeColor ( RGBAColor const &  in_rgba_color)

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

Parameters
in_rgba_colorA color to apply to this geometry type. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetCutEdgeMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetCutFaceAlpha()

MaterialMappingControl& HPS::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_alphaA color to apply to the diffuse channel of this geometry type.
Returns
A reference to this object.

◆ SetCutFaceColor()

MaterialMappingControl& HPS::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_colorA color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.
in_channelThe color channel to apply the color to.
Returns
A reference to this object.

◆ SetCutFaceGloss()

MaterialMappingControl& HPS::MaterialMappingControl::SetCutFaceGloss ( float  in_value)

Sets the gloss – general "shininess" – of this geometry type.

Parameters
in_valueA 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.

◆ SetCutFaceMaterial()

MaterialMappingControl& HPS::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_materialA material kit to be applied to all channels on this geometry type.
Returns
A reference to this object.

◆ SetCutFaceMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetCutFaceModulatedTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_modulating_colora color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetCutFaceTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetCutGeometryColor()

MaterialMappingControl& HPS::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_colorAn RGBA color that will be applied to those geometry types. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetCutGeometryMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetEdgeAlpha()

MaterialMappingControl& HPS::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_alphaA color to apply to the diffuse channel of this geometry type.
Returns
A reference to this object.

◆ SetEdgeColor()

MaterialMappingControl& HPS::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_colorA color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.
in_channelThe color channel to apply the color to.
Returns
A reference to this object.

◆ SetEdgeGloss()

MaterialMappingControl& HPS::MaterialMappingControl::SetEdgeGloss ( float  in_value)

Sets the gloss – general "shininess" – of this geometry type.

Parameters
in_valueA 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.

◆ SetEdgeMaterial()

MaterialMappingControl& HPS::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_materialA material kit to be applied to all channels on this geometry type.
Returns
A reference to this object.

◆ SetEdgeMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetEdgeModulatedTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_modulating_colora color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetEdgeTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetFaceAlpha()

MaterialMappingControl& HPS::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_alphaA color to apply to the diffuse channel of this geometry type.
Returns
A reference to this object.

◆ SetFaceColor()

MaterialMappingControl& HPS::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_colorA color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.
in_channelThe color channel to apply the color to.
Returns
A reference to this object.

◆ SetFaceGloss()

MaterialMappingControl& HPS::MaterialMappingControl::SetFaceGloss ( float  in_value)

Sets the gloss – general "shininess" – of this geometry type.

Parameters
in_valueA 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.

◆ SetFaceMaterial()

MaterialMappingControl& HPS::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_materialA material kit to be applied to all channels on this geometry type.
Returns
A reference to this object.

◆ SetFaceMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetFaceModulatedTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_modulating_colora color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetFaceShader()

MaterialMappingControl& HPS::MaterialMappingControl::SetFaceShader ( char const *  in_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_shader_nameThe name of a shader, defined in a portfolio that is accessible.
Returns
A reference to this object.

◆ SetFaceTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetFrontFaceAlpha()

MaterialMappingControl& HPS::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_alphaA color to apply to the diffuse channel of this geometry type.
Returns
A reference to this object.

◆ SetFrontFaceColor()

MaterialMappingControl& HPS::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_colorA color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.
in_channelThe color channel to apply the color to.
Returns
A reference to this object.

◆ SetFrontFaceGloss()

MaterialMappingControl& HPS::MaterialMappingControl::SetFrontFaceGloss ( float  in_value)

Sets the gloss – general "shininess" – of this geometry type.

Parameters
in_valueA 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.

◆ SetFrontFaceMaterial()

MaterialMappingControl& HPS::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_materialA material kit to be applied to all channels on this geometry type.
Returns
A reference to this object.

◆ SetFrontFaceMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetFrontFaceModulatedTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_modulating_colora color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetFrontFaceTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetLightColor()

MaterialMappingControl& HPS::MaterialMappingControl::SetLightColor ( RGBAColor const &  in_rgba_color)

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

Parameters
in_rgba_colorA color to apply to this geometry type. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetLightMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetLineColor()

MaterialMappingControl& HPS::MaterialMappingControl::SetLineColor ( RGBAColor const &  in_rgba_color)

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

Parameters
in_rgba_colorA color to apply to this geometry type. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetLineMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetMarkerColor()

MaterialMappingControl& HPS::MaterialMappingControl::SetMarkerColor ( RGBAColor const &  in_rgba_color)

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

Parameters
in_rgba_colorA color to apply to this geometry type. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetMarkerMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetTextColor()

MaterialMappingControl& HPS::MaterialMappingControl::SetTextColor ( RGBAColor const &  in_rgba_color)

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

Parameters
in_rgba_colorA color to apply to this geometry type. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetTextMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetVertexAlpha()

MaterialMappingControl& HPS::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_alphaA color to apply to the diffuse channel of this geometry type.
Returns
A reference to this object.

◆ SetVertexColor()

MaterialMappingControl& HPS::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_colorA color to apply to the specified channel of this geometry type. Currently only the DiffuseColor channel supports alpha, it is ignored otherwise.
in_channelThe color channel to apply the color to.
Returns
A reference to this object.

◆ SetVertexGloss()

MaterialMappingControl& HPS::MaterialMappingControl::SetVertexGloss ( float  in_value)

Sets the gloss – general "shininess" – of this geometry type.

Parameters
in_valueA 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.

◆ SetVertexMaterial()

MaterialMappingControl& HPS::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_materialA material kit to be applied to all channels on this geometry type.
Returns
A reference to this object.

◆ SetVertexMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetVertexModulatedTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_modulating_colora color that is used to tint the texture. Only textures defined with modulation enabled support this. Alpha channel is ignored.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetVertexShader()

MaterialMappingControl& HPS::MaterialMappingControl::SetVertexShader ( char const *  in_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_shader_nameThe name of a shader, defined in a portfolio that is accessible.
Returns
A reference to this object.

◆ SetVertexTexture()

MaterialMappingControl& HPS::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_nameThe name of a texture, defined in a portfolio that is accessible.
in_channelThe texture channel to apply the texture to.
in_layerThe specific layer of in_channel to apply the texture to. Currently only relevant for DiffuseTexture, ignored otherwise.
Returns
A reference to this object.

◆ SetWindowColor()

MaterialMappingControl& HPS::MaterialMappingControl::SetWindowColor ( RGBAColor const &  in_rgba_color)

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

Parameters
in_rgba_colorAn RGBA color that will be applied to this geometry types. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetWindowContrastColor()

MaterialMappingControl& HPS::MaterialMappingControl::SetWindowContrastColor ( RGBAColor const &  in_rgba_color)

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

Parameters
in_rgba_colorAn RGBA color that will be applied to this geometry types. Alpha channel is ignored.
Returns
A reference to this object.

◆ SetWindowContrastMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ SetWindowMaterialByIndex()

MaterialMappingControl& HPS::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_indexAn index into the active material palette.
Returns
A reference to this object.

◆ ShowAmbientLightDownColor()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowAmbientLightUpColor()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowBackFaceChannel() [1/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf 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.

◆ ShowBackFaceChannel() [2/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
in_layerThe specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf 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.

◆ ShowBackFaceMaterial()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_kitIf out_type is FullMaterial, this value contains the material.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowCutEdgeColor()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowCutFaceChannel() [1/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowCutFaceChannel() [2/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
in_layerThe specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowCutFaceMaterial()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_kitIf out_type is FullMaterial, this value contains the material.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowEdgeChannel() [1/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowEdgeChannel() [2/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
in_layerThe specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowEdgeMaterial()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_kitIf out_type is FullMaterial, this value contains the material.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowFaceChannel() [1/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf 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.

◆ ShowFaceChannel() [2/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
in_layerThe specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf 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.

◆ ShowFaceMaterial()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_kitIf out_type is FullMaterial, this value contains the material.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowFrontFaceChannel() [1/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf 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.

◆ ShowFrontFaceChannel() [2/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
in_layerThe specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor or RGBColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf 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.

◆ ShowFrontFaceMaterial()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_kitIf out_type is FullMaterial, this value contains the material.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowLightColor()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowLineColor()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowMarkerColor()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowTextColor()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowVertexChannel() [1/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowVertexChannel() [2/2]

bool HPS::MaterialMappingControl::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_channelThe channel to query.
in_layerThe specific layer of in_channel to query. Currently only relevant for DiffuseTexture, ignored otherwise.
out_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color. If out_type is ModulatedTexture, this value contains the modulating color.
out_texture_nameIf out_type is TextureName or ModulatedTexture, this value contains the name of the texture.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowVertexMaterial()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_kitIf out_type is FullMaterial, this value contains the material.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowWindowColor()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ ShowWindowContrastColor()

bool HPS::MaterialMappingControl::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_typeIndicates the type of material.
out_rgba_colorIf out_type is RGBAColor, this value contains the color.
out_valueIf out_type is MaterialIndex, this value contains the index.
Returns
true if the setting is valid, false otherwise.

◆ Type()

virtual HPS::Type HPS::MaterialMappingControl::Type ( ) const
inlinevirtual

This function returns the true type of the underlying object.

This function is useful for finding the type of smart pointer objects that have been cast to more generic types.

Returns
The true type of the object in question.

Reimplemented from HPS::Control.

◆ UnsetAmbientLightColor()

MaterialMappingControl& HPS::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.

◆ UnsetAmbientLightDownColor()

MaterialMappingControl& HPS::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.

◆ UnsetAmbientLightUpColor()

MaterialMappingControl& HPS::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.

◆ UnsetBackFaceChannel() [1/2]

MaterialMappingControl& HPS::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.

◆ UnsetBackFaceChannel() [2/2]

MaterialMappingControl& HPS::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.

◆ UnsetBackFaceMaterial()

MaterialMappingControl& HPS::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.

◆ UnsetCutEdgeColor()

MaterialMappingControl& HPS::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.

◆ UnsetCutFaceChannel() [1/2]

MaterialMappingControl& HPS::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.

◆ UnsetCutFaceChannel() [2/2]

MaterialMappingControl& HPS::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.

◆ UnsetCutFaceMaterial()

MaterialMappingControl& HPS::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.

◆ UnsetCutGeometryColor()

MaterialMappingControl& HPS::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.

◆ UnsetEdgeChannel() [1/2]

MaterialMappingControl& HPS::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.

◆ UnsetEdgeChannel() [2/2]

MaterialMappingControl& HPS::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.

◆ UnsetEdgeMaterial()

MaterialMappingControl& HPS::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.

◆ UnsetEverything()

MaterialMappingControl& HPS::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.

◆ UnsetFaceChannel() [1/2]

MaterialMappingControl& HPS::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.

◆ UnsetFaceChannel() [2/2]

MaterialMappingControl& HPS::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.

◆ UnsetFaceMaterial()

MaterialMappingControl& HPS::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.

◆ UnsetFrontFaceChannel() [1/2]

MaterialMappingControl& HPS::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.

◆ UnsetFrontFaceChannel() [2/2]

MaterialMappingControl& HPS::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.

◆ UnsetFrontFaceMaterial()

MaterialMappingControl& HPS::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.

◆ UnsetLightColor()

MaterialMappingControl& HPS::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.

◆ UnsetLineColor()

MaterialMappingControl& HPS::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().

Returns
A reference to this object.

◆ UnsetMarkerColor()

MaterialMappingControl& HPS::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.

◆ UnsetTextColor()

MaterialMappingControl& HPS::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.

◆ UnsetVertexChannel() [1/2]

MaterialMappingControl& HPS::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.

◆ UnsetVertexChannel() [2/2]

MaterialMappingControl& HPS::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.

◆ UnsetVertexMaterial()

MaterialMappingControl& HPS::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.

◆ UnsetWindowColor()

MaterialMappingControl& HPS::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.

◆ UnsetWindowContrastColor()

MaterialMappingControl& HPS::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.

Member Data Documentation

◆ staticType

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

The documentation for this class was generated from the following file: