|
AGX Dynamics 2.42.1.1
|
Material instance in the raytrace environment, containing handle and type. More...
#include <RaytraceHandles.h>
Public Member Functions | |
| template<RtMaterialHandle::Type Type> | |
| RtMaterialInstance | as () const |
| "Cast" this material instance the given template parameter Type. | |
| RtMaterialInstance | as (RtMaterialHandle::Type inType) const |
"Cast" this material instance to the given type inType. | |
| template<RtMaterialHandle::Type Type> | |
| bool | is () const |
| Check if this material instance is of the given type. | |
| bool | is (RtMaterialHandle::Type inType) const |
Check if this material instance is of the given type inType. | |
| bool | operator!= (const RtMaterialInstance &other) const |
| bool | operator== (const RtMaterialInstance &other) const |
Static Public Member Functions | |
| static RtMaterialInstance | create (RtMaterialHandle::Type type) |
| Create a new handle and instance in of a material of the given type in the raytrace environment. | |
Public Attributes | |
| RtMaterialHandleRef | handle { nullptr } |
| RtMaterialHandle::Type | type { RtMaterialHandle::Type::UNKNOWN } |
Material instance in the raytrace environment, containing handle and type.
Definition at line 63 of file RaytraceHandles.h.
|
inline |
"Cast" this material instance the given template parameter Type.
| Type | - material type to cast this instance to |
inType Definition at line 132 of file RaytraceHandles.h.
References as().
Referenced by as().
|
inline |
"Cast" this material instance to the given type inType.
This is short for checking the type while constructing materials given a RtMaterialInstance. If inType doesn't match the type of this instance, the returned instance will be invalid (with only default values). Returned instance will always have the type inType.
| inType | - type to cast this instance to |
inType Definition at line 123 of file RaytraceHandles.h.
References is().
|
static |
Create a new handle and instance in of a material of the given type in the raytrace environment.
| type | - type of the material |
|
inline |
Check if this material instance is of the given type.
| Type | - material type |
Definition at line 143 of file RaytraceHandles.h.
References is().
|
inline |
Check if this material instance is of the given type inType.
| inType | - material type |
inType matches the type of this instance, otherwise false Definition at line 137 of file RaytraceHandles.h.
References type.
|
inline |
Definition at line 153 of file RaytraceHandles.h.
|
inline |
Definition at line 148 of file RaytraceHandles.h.
| RtMaterialHandleRef agxSensor::RtMaterialInstance::handle { nullptr } |
Definition at line 119 of file RaytraceHandles.h.
Referenced by agxSensor::RtMaterial::getHandle(), agxSensor::RtMaterial::isValid(), agxSensor::RtMaterial::operator==(), and operator==().
| RtMaterialHandle::Type agxSensor::RtMaterialInstance::type { RtMaterialHandle::Type::UNKNOWN } |
Definition at line 120 of file RaytraceHandles.h.
Referenced by agxSensor::RtMaterial::getType(), is(), and operator==().