PLaSK library
|
#include <plask/geometry/leaf.hpp>
Public Member Functions | |
SolidMaterial ()=default | |
SolidMaterial (shared_ptr< Material > material) | |
virtual shared_ptr< Material > | getMaterial (const GeometryObjectLeaf< dim > &PLASK_UNUSED(thisObj), const DVec &PLASK_UNUSED(p)) const override |
shared_ptr< Material > | singleMaterial () const override |
Get material only if it this provider represents solid material (if getMaterial returns value independent from arguments). | |
SolidMaterial * | clone () const override |
shared_ptr< Material > | getRepresentativeMaterial () const override |
Get representative material of this provider (typically material which is returned in center of object). | |
bool | isUniform (Primitive< 3 >::Direction PLASK_UNUSED(direction)) const override |
XMLWriter::Element & | writeXML (XMLWriter::Element &dest_xml_object, const AxisNames &axes) const override |
Public Member Functions inherited from plask::GeometryObjectLeaf< dim >::MaterialProvider | |
virtual shared_ptr< Material > | getMaterial (const GeometryObjectLeaf< dim > &thisObj, const DVec &p) const =0 |
virtual bool | isUniform (Primitive< 3 >::Direction direction) const =0 |
virtual | ~MaterialProvider () |
Public Attributes | |
shared_ptr< Material > | material |
|
default |
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Get representative material of this provider (typically material which is returned in center of object).
Implements plask::GeometryObjectLeaf< dim >::MaterialProvider.
|
inlineoverride |
|
inlineoverridevirtual |
Get material only if it this provider represents solid material (if getMaterial returns value independent from arguments).
Implements plask::GeometryObjectLeaf< dim >::MaterialProvider.
|
overridevirtual |
shared_ptr<Material> plask::GeometryObjectLeaf< dim >::SolidMaterial::material |