Lexis  1.1.0
Vocabulary of events and shared objects for BBP and HBP software
lexis::render::MaterialLUT Class Reference
+ Inheritance diagram for lexis::render::MaterialLUT:
+ Collaboration diagram for lexis::render::MaterialLUT:

Public Types

typedef ::zerobuf::Vector< ColorDiffuse
 
typedef ::zerobuf::Vector< ColorEmission
 
typedef ::zerobuf::Vector< float > Alpha
 
typedef ::zerobuf::Vector< float > Contribution
 

Public Member Functions

MaterialLUT::Diffuse & getDiffuse ()
 Get a reference to the Diffuse dynamic member. More...
 
const MaterialLUT::Diffuse & getDiffuse () const
 
std::vector< ColorgetDiffuseVector () const
 
void setDiffuse (const std::vector< Color > &value)
 Set the value of Diffuse dynamic array from a std::vector< Color >. More...
 
MaterialLUT::Emission & getEmission ()
 Get a reference to the Emission dynamic member. More...
 
const MaterialLUT::Emission & getEmission () const
 
std::vector< ColorgetEmissionVector () const
 
void setEmission (const std::vector< Color > &value)
 Set the value of Emission dynamic array from a std::vector< Color >. More...
 
MaterialLUT::Alpha & getAlpha ()
 Get a reference to the Alpha dynamic member. More...
 
const MaterialLUT::Alpha & getAlpha () const
 
void setAlpha (float const *value, size_t size)
 Set the value of the Alpha dynamic object from a float* and size. More...
 
std::vector< float > getAlphaVector () const
 
void setAlpha (const std::vector< float > &value)
 Set the value of the Alpha dynamic object from a std::vector< float >. More...
 
MaterialLUT::Contribution & getContribution ()
 Get a reference to the Contribution dynamic member. More...
 
const MaterialLUT::Contribution & getContribution () const
 
void setContribution (float const *value, size_t size)
 Set the value of the Contribution dynamic object from a float* and size. More...
 
std::vector< float > getContributionVector () const
 
void setContribution (const std::vector< float > &value)
 Set the value of the Contribution dynamic object from a std::vector< float >. More...
 
double * getRange ()
 Get a pointer to the Range fixed size array. More...
 
const double * getRange () const
 
std::vector< double > getRangeVector () const
 
void setRange (double value[2])
 Set the value of the Range fixed size array from a double*. More...
 
void setRange (const std::vector< double > &value)
 Set the value of the Range fixed size array object from a std::vector< double >. More...
 
size_t getRangeSize () const
 
void compact (float threshold=0.1f) final
 
 MaterialLUT (const std::vector< double > &rangeValue, const std::vector< Color > &diffuseValue, const std::vector< Color > &emissionValue, const std::vector< float > &alphaValue, const std::vector< float > &contributionValue)
 
 MaterialLUT (const MaterialLUT &rhs)
 
 MaterialLUT (MaterialLUT &&rhs) noexcept
 
 MaterialLUT (const ::zerobuf::Zerobuf &rhs)
 
 MaterialLUT (::zerobuf::AllocatorPtr allocator)
 
MaterialLUToperator= (const MaterialLUT &rhs)
 
MaterialLUToperator= (MaterialLUT &&rhs)
 
std::string getSchema () const final
 
std::string getTypeName () const final
 
::zerobuf::uint128_t getTypeIdentifier () const final
 
size_t getZerobufStaticSize () const final
 
size_t getZerobufNumDynamics () const final
 
void _parseJSON (const Json::Value &json) final
 
void _createJSON (Json::Value &json) const final
 

Static Public Member Functions

static std::string ZEROBUF_SCHEMA ()
 
static std::string ZEROBUF_TYPE_NAME ()
 
::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER ()
 
static size_t ZEROBUF_STATIC_SIZE ()
 
static size_t ZEROBUF_NUM_DYNAMICS ()
 
static ConstMaterialLUTPtr create (const void *data, const size_t size)
 

Detailed Description

Definition at line 78 of file materialLUT.h.

Member Function Documentation

MaterialLUT::Alpha& lexis::render::MaterialLUT::getAlpha ( )

Get a reference to the Alpha dynamic member.

Warning
: If the reference is used to modify the object, notifyChanged() needs to be explicitly called afterwards.
Returns
a reference to the Alpha dynamic member.
MaterialLUT::Contribution& lexis::render::MaterialLUT::getContribution ( )

Get a reference to the Contribution dynamic member.

Warning
: If the reference is used to modify the object, notifyChanged() needs to be explicitly called afterwards.
Returns
a reference to the Contribution dynamic member.
MaterialLUT::Diffuse& lexis::render::MaterialLUT::getDiffuse ( )

Get a reference to the Diffuse dynamic member.

Warning
: If the reference is used to modify the object, notifyChanged() needs to be explicitly called afterwards.
Returns
a reference to the Diffuse dynamic member.
MaterialLUT::Emission& lexis::render::MaterialLUT::getEmission ( )

Get a reference to the Emission dynamic member.

Warning
: If the reference is used to modify the object, notifyChanged() needs to be explicitly called afterwards.
Returns
a reference to the Emission dynamic member.
double* lexis::render::MaterialLUT::getRange ( )

Get a pointer to the Range fixed size array.

Warning
: If the pointer is used to modify the object, notifyChanged() needs to be explicitly called afterwards.
Returns
a pointer to the Range fixed size array object (double*).
void lexis::render::MaterialLUT::setAlpha ( float const *  value,
size_t  size 
)

Set the value of the Alpha dynamic object from a float* and size.

notifyChanged() is internally called after the data has been copied.

Parameters
valuea float* to the data to be set in the current object
sizethe size of the data to be set
void lexis::render::MaterialLUT::setAlpha ( const std::vector< float > &  value)

Set the value of the Alpha dynamic object from a std::vector< float >.

notifyChanged() is internally called after the data has been copied.

Parameters
valuea std::vector< float > object with the data to be set
void lexis::render::MaterialLUT::setContribution ( float const *  value,
size_t  size 
)

Set the value of the Contribution dynamic object from a float* and size.

notifyChanged() is internally called after the data has been copied.

Parameters
valuea float* to the data to be set in the current object
sizethe size of the data to be set
void lexis::render::MaterialLUT::setContribution ( const std::vector< float > &  value)

Set the value of the Contribution dynamic object from a std::vector< float >.

notifyChanged() is internally called after the data has been copied.

Parameters
valuea std::vector< float > object with the data to be set
void lexis::render::MaterialLUT::setDiffuse ( const std::vector< Color > &  value)

Set the value of Diffuse dynamic array from a std::vector< Color >.

notifyChanged() is internally called after the data has been copied.

Parameters
valuea std::vector< Color > object with the data to be set
void lexis::render::MaterialLUT::setEmission ( const std::vector< Color > &  value)

Set the value of Emission dynamic array from a std::vector< Color >.

notifyChanged() is internally called after the data has been copied.

Parameters
valuea std::vector< Color > object with the data to be set
void lexis::render::MaterialLUT::setRange ( double  value[2])

Set the value of the Range fixed size array from a double*.

notifyChanged() is internally called after the data has been copied.

Parameters
valuea 2-length double array with the data to be set
void lexis::render::MaterialLUT::setRange ( const std::vector< double > &  value)

Set the value of the Range fixed size array object from a std::vector< double >.

notifyChanged() is internally called after the change has been done.

Parameters
valuea std::vector< double > with the data to be set

The documentation for this class was generated from the following file: