Murl::Graph::IAttributeContainer Interface Referenceabstract

The IAttributeContainer property interface. More...

#include "murl_graph_i_attribute_container.h"

Inheritance diagram for Murl::Graph::IAttributeContainer:

Public Member Functions

virtual SInt32 AddAttribute (IEnums::AttributeItem item, IEnums::AttributeType type, UInt32 &byteOffset)=0
 Add a predefined vertex attribute. More...
 
virtual SInt32 AddAttribute (const String &name, IEnums::AttributeType type, UInt32 &byteOffset)=0
 Add a user-defined vertex attribute. More...
 
virtual SInt32 GetAttributeIndex (IEnums::AttributeItem item) const =0
 Query the location of a predefined attribute in the container. More...
 
virtual SInt32 GetAttributeIndex (const String &name) const =0
 Query the location of a user-defined attribute in the container. More...
 
virtual UInt32 GetNumberOfAttributes () const =0
 Get the total number of individual attributes in the container. More...
 
virtual IEnums::AttributeType GetAttributeType (UInt32 index) const =0
 Query the type of an attribute at a given index. More...
 
virtual IEnums::AttributeItem GetAttributeItem (UInt32 index) const =0
 Query the predefined item of an attribute at a given index. More...
 
virtual const StringGetAttributeName (UInt32 index) const =0
 Query the variable name of an attribute at a given index. More...
 
virtual UInt32 GetAttributeByteOffset (UInt32 index) const =0
 Get the byte offset of an attribute at a given index. More...
 
virtual IAttributeGetAttribute (UInt32 index) const =0
 Get the attribute object at a given index. More...
 
virtual IFloatAttributeGetFloatAttribute (UInt32 index) const =0
 Get the attribute at a given index as a scalar float object. More...
 
virtual IFloatVector2AttributeGetFloatVector2Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 2-component float vector object. More...
 
virtual IFloatVector3AttributeGetFloatVector3Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 3-component float vector object. More...
 
virtual IFloatVector4AttributeGetFloatVector4Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 4-component float vector object. More...
 
virtual IUInt8AttributeGetUInt8Attribute (UInt32 index) const =0
 Get the attribute at a given index as a scalar UInt8 object. More...
 
virtual IUInt8Vector2AttributeGetUInt8Vector2Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 2-component UInt8 vector object. More...
 
virtual IUInt8Vector3AttributeGetUInt8Vector3Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 3-component UInt8 vector object. More...
 
virtual IUInt8Vector4AttributeGetUInt8Vector4Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 4-component UInt8 vector object. More...
 
virtual ISInt8AttributeGetSInt8Attribute (UInt32 index) const =0
 Get the attribute at a given index as a scalar SInt8 object. More...
 
virtual ISInt8Vector2AttributeGetSInt8Vector2Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 2-component SInt8 vector object. More...
 
virtual ISInt8Vector3AttributeGetSInt8Vector3Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 3-component SInt8 vector object. More...
 
virtual ISInt8Vector4AttributeGetSInt8Vector4Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 4-component SInt8 vector object. More...
 
virtual IUInt16AttributeGetUInt16Attribute (UInt32 index) const =0
 Get the attribute at a given index as a scalar UInt16 object. More...
 
virtual IUInt16Vector2AttributeGetUInt16Vector2Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 2-component UInt16 vector object. More...
 
virtual IUInt16Vector3AttributeGetUInt16Vector3Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 3-component UInt16 vector object. More...
 
virtual IUInt16Vector4AttributeGetUInt16Vector4Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 4-component UInt16 vector object. More...
 
virtual ISInt16AttributeGetSInt16Attribute (UInt32 index) const =0
 Get the attribute at a given index as a scalar SInt16 object. More...
 
virtual ISInt16Vector2AttributeGetSInt16Vector2Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 2-component SInt16 vector object. More...
 
virtual ISInt16Vector3AttributeGetSInt16Vector3Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 3-component SInt16 vector object. More...
 
virtual ISInt16Vector4AttributeGetSInt16Vector4Attribute (UInt32 index) const =0
 Get the attribute at a given index as a 4-component SInt16 vector object. More...
 
virtual IUInt8AttributeGetNormalizedUInt8Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized scalar UInt8 object. More...
 
virtual IUInt8Vector2AttributeGetNormalizedUInt8Vector2Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 2-component UInt8 vector object. More...
 
virtual IUInt8Vector3AttributeGetNormalizedUInt8Vector3Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 3-component UInt8 vector object. More...
 
virtual IUInt8Vector4AttributeGetNormalizedUInt8Vector4Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 4-component UInt8 vector object. More...
 
virtual ISInt8AttributeGetNormalizedSInt8Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized scalar SInt8 object. More...
 
virtual ISInt8Vector2AttributeGetNormalizedSInt8Vector2Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 2-component SInt8 vector object. More...
 
virtual ISInt8Vector3AttributeGetNormalizedSInt8Vector3Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 3-component SInt8 vector object. More...
 
virtual ISInt8Vector4AttributeGetNormalizedSInt8Vector4Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 4-component SInt8 vector object. More...
 
virtual IUInt16AttributeGetNormalizedUInt16Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized scalar UInt16 object. More...
 
virtual IUInt16Vector2AttributeGetNormalizedUInt16Vector2Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 2-component UInt16 vector object. More...
 
virtual IUInt16Vector3AttributeGetNormalizedUInt16Vector3Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 3-component UInt16 vector object. More...
 
virtual IUInt16Vector4AttributeGetNormalizedUInt16Vector4Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 4-component UInt16 vector object. More...
 
virtual ISInt16AttributeGetNormalizedSInt16Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized scalar SInt16 object. More...
 
virtual ISInt16Vector2AttributeGetNormalizedSInt16Vector2Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 2-component SInt16 vector object. More...
 
virtual ISInt16Vector3AttributeGetNormalizedSInt16Vector3Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 3-component SInt16 vector object. More...
 
virtual ISInt16Vector4AttributeGetNormalizedSInt16Vector4Attribute (UInt32 index) const =0
 Get the attribute at a given index as a normalized 4-component SInt16 vector object. More...
 

Detailed Description

The IAttributeContainer property interface.

This interface provides a common way to store and retrieve individual vertex attributes of different types, usually found in nodes implementing e.g. the Graph::IVertexBuffer interface.

Member Function Documentation

◆ AddAttribute() [1/2]

virtual SInt32 Murl::Graph::IAttributeContainer::AddAttribute ( IEnums::AttributeItem  item,
IEnums::AttributeType  type,
UInt32 byteOffset 
)
pure virtual

Add a predefined vertex attribute.

This method adds a predefined vertex attribute to the container, with a given attribute type and a given byte offset relative to each vertex entry's start pointer. As a convenience, the byte offset variable is incremented by the actual number of bytes used by the given attribute type, e.g. 12 for a 3-component vector of floats. If successful, this method returns the zero-based index of the newly created attribute in the container; if failed, -1 is returned.

Parameters
itemThe predefined attribute to add.
typeThe attribute's data type.
byteOffsetThe byte offset of the attribute location relative to a vertex entry's start.
Returns
The zero-based index of the attribute in the container, or -1 if failed.

◆ AddAttribute() [2/2]

virtual SInt32 Murl::Graph::IAttributeContainer::AddAttribute ( const String name,
IEnums::AttributeType  type,
UInt32 byteOffset 
)
pure virtual

Add a user-defined vertex attribute.

This method adds a user-defined vertex attribute to the container, with a given attribute type and a given byte offset relative to each vertex entry's start pointer. The newly created attribute is only in effect when a shader material is currently active that actually uses an attribute with the given name as input to the vertex shader. As a convenience, the byte offset variable is incremented by the actual number of bytes used by the given attribute type, e.g. 12 for a 3-component vector of floats. If successful, this method returns the zero-based index of the newly created attribute in the container; if failed, -1 is returned.

Parameters
nameThe name of the attribute variable to add.
typeThe attribute's data type.
byteOffsetThe byte offset of the attribute location relative to a vertex entry's start.
Returns
The zero-based index of the attribute in the container, or -1 if failed.

◆ GetAttributeIndex() [1/2]

virtual SInt32 Murl::Graph::IAttributeContainer::GetAttributeIndex ( IEnums::AttributeItem  item) const
pure virtual

Query the location of a predefined attribute in the container.

This method can be used to query the zero-based index of a given predefined attribute in the container. If the container does not hold the given attribute, -1 is returned.

Parameters
itemThe predefined attribute to query.
Returns
The zero-based index of the attribute, or -1 if not found.

◆ GetAttributeIndex() [2/2]

virtual SInt32 Murl::Graph::IAttributeContainer::GetAttributeIndex ( const String name) const
pure virtual

Query the location of a user-defined attribute in the container.

This method can be used to query the zero-based index of a given user-defined attribute in the container. If the container does not hold the given attribute, -1 is returned.

Parameters
nameThe name of the user-defined attribute to query.
Returns
The zero-based index of the attribute, or -1 if not found.

◆ GetNumberOfAttributes()

virtual UInt32 Murl::Graph::IAttributeContainer::GetNumberOfAttributes ( ) const
pure virtual

Get the total number of individual attributes in the container.

Returns
The total number of attributes added.

◆ GetAttributeType()

virtual IEnums::AttributeType Murl::Graph::IAttributeContainer::GetAttributeType ( UInt32  index) const
pure virtual

Query the type of an attribute at a given index.

Parameters
indexThe zero-based index of the attribute to query.
Returns
The attribute type.

◆ GetAttributeItem()

virtual IEnums::AttributeItem Murl::Graph::IAttributeContainer::GetAttributeItem ( UInt32  index) const
pure virtual

Query the predefined item of an attribute at a given index.

If the attribute at the given index represents a predefined one, this method returns the actual item, e.g. IEnums::ATTRIBUTE_ITEM_NORMAL for vertex normal vectors. If the attribute is a user-defined one, it returns IEnums::ATTRIBUTE_ITEM_CUSTOM.

Parameters
indexThe zero-based index of the attribute to query.
Returns
The predefined attribute item.

◆ GetAttributeName()

virtual const String& Murl::Graph::IAttributeContainer::GetAttributeName ( UInt32  index) const
pure virtual

Query the variable name of an attribute at a given index.

If the attribute at the given index represents a user-defined one, this method returns its actual name string. If it is a predefined one, an empty string is returned.

Parameters
indexThe zero-based index of the attribute to query.
Returns
The user-defined attribute variable name.

◆ GetAttributeByteOffset()

virtual UInt32 Murl::Graph::IAttributeContainer::GetAttributeByteOffset ( UInt32  index) const
pure virtual

Get the byte offset of an attribute at a given index.

Parameters
indexThe zero-based index of the attribute to query.
Returns
The attribute's byte offset relative to the beginning of a vertex entry.

◆ GetAttribute()

virtual IAttribute* Murl::Graph::IAttributeContainer::GetAttribute ( UInt32  index) const
pure virtual

Get the attribute object at a given index.

This method returns an actual attribute object by its Graph::IAttribute base interface. The base interface can be used to query common attribute properties; if access to actual attribute data is required, use either a dynamic_cast to one of the available specialized interfaces (e.g. Graph::IFloatVector4Attribute), or use the respective explicit method, e.g. GetFloatVector4Attribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object.

◆ GetFloatAttribute()

virtual IFloatAttribute* Murl::Graph::IAttributeContainer::GetFloatAttribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a scalar float object.

This method can be used as a convenience to retrieve a typed attribute object. If the attribute present in the container at the given index does not match the requested type (scalar float in this case), a null pointer is returned.

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetFloatVector2Attribute()

virtual IFloatVector2Attribute* Murl::Graph::IAttributeContainer::GetFloatVector2Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 2-component float vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetFloatVector3Attribute()

virtual IFloatVector3Attribute* Murl::Graph::IAttributeContainer::GetFloatVector3Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 3-component float vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetFloatVector4Attribute()

virtual IFloatVector4Attribute* Murl::Graph::IAttributeContainer::GetFloatVector4Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 4-component float vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetUInt8Attribute()

virtual IUInt8Attribute* Murl::Graph::IAttributeContainer::GetUInt8Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a scalar UInt8 object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetUInt8Vector2Attribute()

virtual IUInt8Vector2Attribute* Murl::Graph::IAttributeContainer::GetUInt8Vector2Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 2-component UInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetUInt8Vector3Attribute()

virtual IUInt8Vector3Attribute* Murl::Graph::IAttributeContainer::GetUInt8Vector3Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 3-component UInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetUInt8Vector4Attribute()

virtual IUInt8Vector4Attribute* Murl::Graph::IAttributeContainer::GetUInt8Vector4Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 4-component UInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetSInt8Attribute()

virtual ISInt8Attribute* Murl::Graph::IAttributeContainer::GetSInt8Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a scalar SInt8 object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetSInt8Vector2Attribute()

virtual ISInt8Vector2Attribute* Murl::Graph::IAttributeContainer::GetSInt8Vector2Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 2-component SInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetSInt8Vector3Attribute()

virtual ISInt8Vector3Attribute* Murl::Graph::IAttributeContainer::GetSInt8Vector3Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 3-component SInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetSInt8Vector4Attribute()

virtual ISInt8Vector4Attribute* Murl::Graph::IAttributeContainer::GetSInt8Vector4Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 4-component SInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetUInt16Attribute()

virtual IUInt16Attribute* Murl::Graph::IAttributeContainer::GetUInt16Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a scalar UInt16 object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetUInt16Vector2Attribute()

virtual IUInt16Vector2Attribute* Murl::Graph::IAttributeContainer::GetUInt16Vector2Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 2-component UInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetUInt16Vector3Attribute()

virtual IUInt16Vector3Attribute* Murl::Graph::IAttributeContainer::GetUInt16Vector3Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 3-component UInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetUInt16Vector4Attribute()

virtual IUInt16Vector4Attribute* Murl::Graph::IAttributeContainer::GetUInt16Vector4Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 4-component UInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetSInt16Attribute()

virtual ISInt16Attribute* Murl::Graph::IAttributeContainer::GetSInt16Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a scalar SInt16 object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetSInt16Vector2Attribute()

virtual ISInt16Vector2Attribute* Murl::Graph::IAttributeContainer::GetSInt16Vector2Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 2-component SInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetSInt16Vector3Attribute()

virtual ISInt16Vector3Attribute* Murl::Graph::IAttributeContainer::GetSInt16Vector3Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 3-component SInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetSInt16Vector4Attribute()

virtual ISInt16Vector4Attribute* Murl::Graph::IAttributeContainer::GetSInt16Vector4Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a 4-component SInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedUInt8Attribute()

virtual IUInt8Attribute* Murl::Graph::IAttributeContainer::GetNormalizedUInt8Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized scalar UInt8 object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedUInt8Vector2Attribute()

virtual IUInt8Vector2Attribute* Murl::Graph::IAttributeContainer::GetNormalizedUInt8Vector2Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 2-component UInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedUInt8Vector3Attribute()

virtual IUInt8Vector3Attribute* Murl::Graph::IAttributeContainer::GetNormalizedUInt8Vector3Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 3-component UInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedUInt8Vector4Attribute()

virtual IUInt8Vector4Attribute* Murl::Graph::IAttributeContainer::GetNormalizedUInt8Vector4Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 4-component UInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedSInt8Attribute()

virtual ISInt8Attribute* Murl::Graph::IAttributeContainer::GetNormalizedSInt8Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized scalar SInt8 object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedSInt8Vector2Attribute()

virtual ISInt8Vector2Attribute* Murl::Graph::IAttributeContainer::GetNormalizedSInt8Vector2Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 2-component SInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedSInt8Vector3Attribute()

virtual ISInt8Vector3Attribute* Murl::Graph::IAttributeContainer::GetNormalizedSInt8Vector3Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 3-component SInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedSInt8Vector4Attribute()

virtual ISInt8Vector4Attribute* Murl::Graph::IAttributeContainer::GetNormalizedSInt8Vector4Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 4-component SInt8 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedUInt16Attribute()

virtual IUInt16Attribute* Murl::Graph::IAttributeContainer::GetNormalizedUInt16Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized scalar UInt16 object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedUInt16Vector2Attribute()

virtual IUInt16Vector2Attribute* Murl::Graph::IAttributeContainer::GetNormalizedUInt16Vector2Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 2-component UInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedUInt16Vector3Attribute()

virtual IUInt16Vector3Attribute* Murl::Graph::IAttributeContainer::GetNormalizedUInt16Vector3Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 3-component UInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedUInt16Vector4Attribute()

virtual IUInt16Vector4Attribute* Murl::Graph::IAttributeContainer::GetNormalizedUInt16Vector4Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 4-component UInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedSInt16Attribute()

virtual ISInt16Attribute* Murl::Graph::IAttributeContainer::GetNormalizedSInt16Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized scalar SInt16 object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedSInt16Vector2Attribute()

virtual ISInt16Vector2Attribute* Murl::Graph::IAttributeContainer::GetNormalizedSInt16Vector2Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 2-component SInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedSInt16Vector3Attribute()

virtual ISInt16Vector3Attribute* Murl::Graph::IAttributeContainer::GetNormalizedSInt16Vector3Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 3-component SInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

◆ GetNormalizedSInt16Vector4Attribute()

virtual ISInt16Vector4Attribute* Murl::Graph::IAttributeContainer::GetNormalizedSInt16Vector4Attribute ( UInt32  index) const
pure virtual

Get the attribute at a given index as a normalized 4-component SInt16 vector object.

See GetFloatAttribute().

Parameters
indexThe zero-based index of the attribute to retrieve.
Returns
The attribute object, or a null pointer if the types do not match.

The documentation for this interface was generated from the following file:
  • murl_graph_i_attribute_container.h


Copyright © 2011-2018 Spraylight GmbH.