#include <hps.h>
Public Member Functions | |
MaterialPaletteDefinition () | |
MaterialPaletteDefinition (Definition const &in_that) | |
MaterialPaletteDefinition (MaterialPaletteDefinition const &in_that) | |
MaterialPaletteDefinition & | operator= (MaterialPaletteDefinition const &in_that) |
MaterialPaletteDefinition (MaterialPaletteDefinition &&in_that) | |
MaterialPaletteDefinition & | operator= (MaterialPaletteDefinition &&in_that) |
HPS::Type | ObjectType () const |
void | Set (MaterialKitArray const &in_source) |
void | Set (size_t in_count, MaterialKit const in_source[]) |
void | Show (MaterialKitArray &out_source) const |
![]() | |
Definition () | |
Definition (Definition const &in_that) | |
Definition & | operator= (Definition const &in_that) |
Definition (Definition &&in_that) | |
Definition & | operator= (Definition &&in_that) |
void | Undefine () |
PortfolioKey | Owner () const |
UTF8 | Name () const |
virtual void | Assign (Definition const &in_that) |
bool | Equals (Definition const &in_that) const |
bool | operator== (Definition const &in_that) const |
bool | operator!= (Definition const &in_that) const |
![]() | |
Object & | operator= (Object const &other_object) |
Object (Object &&in_that) | |
Object & | operator= (Object &&in_that) |
HPS::Type | Type () const |
virtual bool | Empty () const |
virtual void | Reset () |
bool | HasType (HPS::Type in_mask) const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The MaterialPaletteDefinition class is a smart pointer to a database object. It is a handle to a material palette defined within a portfolio.
HPS::MaterialPaletteDefinition::MaterialPaletteDefinition | ( | ) |
The default constructor creates an uninitialized MaterialPaletteDefinition object. The Type() function will return Type::None.
HPS::MaterialPaletteDefinition::MaterialPaletteDefinition | ( | Definition const & | in_that | ) |
This constructor creates a MaterialPaletteDefinition object that shares the underlying smart-pointer of the source Definition. The copy will only be successful if the source definition is really an upcast of a material palette definition. Otherwise the copy will fail and the resulting MaterialPaletteDefinition will be invalid.
in_that | The source Definition to copy. |
HPS::MaterialPaletteDefinition::MaterialPaletteDefinition | ( | MaterialPaletteDefinition const & | in_that | ) |
The copy constructor creates a MaterialPaletteDefinition object that shares the underlying smart-pointer of the source MaterialPaletteDefinition.
in_that | The source MaterialPaletteDefinition to copy. |
HPS::MaterialPaletteDefinition::MaterialPaletteDefinition | ( | MaterialPaletteDefinition && | in_that | ) |
The move constructor creates a MaterialPaletteDefinition by transferring the underlying impl of the rvalue reference to this MaterialPaletteDefinition thereby avoiding a copy and allocation.
in_that | An rvalue reference to a MaterialPaletteDefinition to take the impl from. |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Definition.
MaterialPaletteDefinition& HPS::MaterialPaletteDefinition::operator= | ( | MaterialPaletteDefinition const & | in_that | ) |
Associate this MaterialPaletteDefinition with the same underlying impl as the source MaterialPaletteDefinition.
in_that | The source MaterialPaletteDefinition for the assignment. |
MaterialPaletteDefinition& HPS::MaterialPaletteDefinition::operator= | ( | MaterialPaletteDefinition && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this MaterialPaletteDefinition thereby avoiding a copy.
in_that | An rvalue reference to a MaterialPaletteDefinition to take the impl from. |
void HPS::MaterialPaletteDefinition::Set | ( | MaterialKitArray const & | in_source | ) |
Redefine the material array for this MaterialPaletteDefinition.
in_source | The new array of materials for this MaterialPaletteDefinition. |
void HPS::MaterialPaletteDefinition::Set | ( | size_t | in_count, |
MaterialKit const | in_source[] | ||
) |
Redefine the material array for this MaterialPaletteDefinition.
in_count | Size of the following array. |
in_source | The new array of materials for this MaterialPaletteDefinition. |
void HPS::MaterialPaletteDefinition::Show | ( | MaterialKitArray & | out_source | ) | const |
Shows the material array for this MaterialPaletteDefinition.
out_source | The array of materials for this MaterialPaletteDefinition. |