AGX Dynamics  2.35.0.1
agx::MaterialLibrary Class Reference

Class with functionality to view items in the Material Library and load Materials. More...

#include <MaterialLibrary.h>

Public Types

enum  LibraryItemType {
  MATERIAL , CONTACT_MATERIAL , TERRAIN_MATERIAL , CABLE_PROPERTIES ,
  BEAMMODEL_PROPERTIES
}
 Enum describing different item types in the MaterialLibrary. More...
 

Static Public Member Functions

static agx::StringVector getAvailableItems (LibraryItemType itemType)
 Returns a vector with all the names for requested item type. More...
 
static agx::String getFilePath (LibraryItemType itemType, agx::String name)
 Return the relative path for a named library item of specified type. More...
 
static agx::String getItemTypeName (LibraryItemType itemType)
 Return the name for a LibraryItemType. More...
 
static agx::MaterialRef loadMaterial (agx::String name)
 Load a Material from the MaterialLibrary. More...
 

Detailed Description

Class with functionality to view items in the Material Library and load Materials.

Definition at line 29 of file MaterialLibrary.h.

Member Enumeration Documentation

◆ LibraryItemType

Enum describing different item types in the MaterialLibrary.

Enumerator
MATERIAL 
CONTACT_MATERIAL 
TERRAIN_MATERIAL 
CABLE_PROPERTIES 
BEAMMODEL_PROPERTIES 

Definition at line 35 of file MaterialLibrary.h.

Member Function Documentation

◆ getAvailableItems()

static agx::StringVector agx::MaterialLibrary::getAvailableItems ( LibraryItemType  itemType)
static

Returns a vector with all the names for requested item type.

◆ getFilePath()

static agx::String agx::MaterialLibrary::getFilePath ( LibraryItemType  itemType,
agx::String  name 
)
static

Return the relative path for a named library item of specified type.

◆ getItemTypeName()

static agx::String agx::MaterialLibrary::getItemTypeName ( LibraryItemType  itemType)
static

Return the name for a LibraryItemType.

◆ loadMaterial()

static agx::MaterialRef agx::MaterialLibrary::loadMaterial ( agx::String  name)
static

Load a Material from the MaterialLibrary.

Returns
A ref pointer to a Material. The ref-pointer is invalid if a Material with the given name could not be found

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