PLaSK library
Loading...
Searching...
No Matches
plask::GeometryObjectLeaf< dim >::SolidMaterial Struct Reference

#include <plask/geometry/leaf.hpp>

Inheritance diagram for plask::GeometryObjectLeaf< dim >::SolidMaterial:
[legend]
Collaboration diagram for plask::GeometryObjectLeaf< dim >::SolidMaterial:
[legend]

Public Member Functions

 SolidMaterial ()=default
 
 SolidMaterial (shared_ptr< Material > material)
 
virtual shared_ptr< MaterialgetMaterial (const GeometryObjectLeaf< dim > &PLASK_UNUSED(thisObj), const DVec &PLASK_UNUSED(p)) const override
 
shared_ptr< MaterialsingleMaterial () const override
 Get material only if it this provider represents solid material (if getMaterial returns value independent from arguments).
 
SolidMaterialclone () const override
 
shared_ptr< MaterialgetRepresentativeMaterial () 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::ElementwriteXML (XMLWriter::Element &dest_xml_object, const AxisNames &axes) const override
 
- Public Member Functions inherited from plask::GeometryObjectLeaf< dim >::MaterialProvider
virtual shared_ptr< MaterialgetMaterial (const GeometryObjectLeaf< dim > &thisObj, const DVec &p) const =0
 
virtual bool isUniform (Primitive< 3 >::Direction direction) const =0
 
virtual ~MaterialProvider ()
 

Public Attributes

shared_ptr< Materialmaterial
 

Detailed Description

template<int dim>
struct plask::GeometryObjectLeaf< dim >::SolidMaterial

Definition at line 67 of file leaf.hpp.

Constructor & Destructor Documentation

◆ SolidMaterial() [1/2]

template<int dim>
plask::GeometryObjectLeaf< dim >::SolidMaterial::SolidMaterial ( )
default

◆ SolidMaterial() [2/2]

template<int dim>
plask::GeometryObjectLeaf< dim >::SolidMaterial::SolidMaterial ( shared_ptr< Material material)
inline

Definition at line 72 of file leaf.hpp.

Member Function Documentation

◆ clone()

template<int dim>
SolidMaterial * plask::GeometryObjectLeaf< dim >::SolidMaterial::clone ( ) const
inlineoverridevirtual

Implements plask::GeometryObjectLeaf< dim >::MaterialProvider.

Definition at line 81 of file leaf.hpp.

◆ getMaterial()

template<int dim>
virtual shared_ptr< Material > plask::GeometryObjectLeaf< dim >::SolidMaterial::getMaterial ( const GeometryObjectLeaf< dim > &  PLASK_UNUSEDthisObj,
const DVec PLASK_UNUSED
) const
inlineoverridevirtual

Definition at line 74 of file leaf.hpp.

◆ getRepresentativeMaterial()

template<int dim>
shared_ptr< Material > plask::GeometryObjectLeaf< dim >::SolidMaterial::getRepresentativeMaterial ( ) const
inlineoverridevirtual

Get representative material of this provider (typically material which is returned in center of object).

Returns
representative material of this provider

Implements plask::GeometryObjectLeaf< dim >::MaterialProvider.

Definition at line 83 of file leaf.hpp.

◆ isUniform()

template<int dim>
bool plask::GeometryObjectLeaf< dim >::SolidMaterial::isUniform ( Primitive< 3 >::Direction   PLASK_UNUSEDdirection) const
inlineoverride

Definition at line 85 of file leaf.hpp.

◆ singleMaterial()

template<int dim>
shared_ptr< Material > plask::GeometryObjectLeaf< dim >::SolidMaterial::singleMaterial ( ) const
inlineoverridevirtual

Get material only if it this provider represents solid material (if getMaterial returns value independent from arguments).

Returns
material or nullptr if it is not solid

Implements plask::GeometryObjectLeaf< dim >::MaterialProvider.

Definition at line 79 of file leaf.hpp.

◆ writeXML()

template<int dim>
XMLWriter::Element & plask::GeometryObjectLeaf< dim >::SolidMaterial::writeXML ( XMLWriter::Element dest_xml_object,
const AxisNames axes 
) const
overridevirtual

Implements plask::GeometryObjectLeaf< dim >::MaterialProvider.

Definition at line 23 of file leaf.cpp.

Member Data Documentation

◆ material

template<int dim>
shared_ptr<Material> plask::GeometryObjectLeaf< dim >::SolidMaterial::material

Definition at line 68 of file leaf.hpp.


The documentation for this struct was generated from the following files: