API Reference > Classes > PRC Rendering Classes > OdGiContextForPrcDatabase Class > OdGiContextForPrcDatabase Methods > OdGiContextForPrcDatabase::getStubByMaterialId Method
OdGiContextForPrcDatabase::getStubByMaterialId Method
Syntax
C++
OdDbStub* getStubByMaterialId(OdDbBaseDatabase * pBaseDb, const OdUInt64& materialId) const;
Parameters 
Description 
OdDbBaseDatabase * pBaseDb 
[in] A raw pointer to a database object that contains the material.  
const OdUInt64& materialId 
[in] An identifier of the material object.  

Returns a raw pointer to an OdDbStub object.

Retrieves the stub to a material object with a specified identifier from a specified database.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.