NAP
Public Member Functions | Public Attributes | List of all members
ParameterMat< T > Class Template Reference

#include <parametermat.h>

Public Member Functions

virtual void setValue (const Parameter &value) override
 
void setValue (T value)
 
- Public Member Functions inherited from Parameter
const std::string getDisplayName () const
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

mValue
 Property: 'Value' the value of this parameter. More...
 
Signal< T > valueChanged
 Signal that's raised when the value changes. More...
 
- Public Attributes inherited from Parameter
std::string mName
 Property 'Name': The name of this property. The name is separate from the ID and doesn't have to be unique. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

template<typename T>
class nap::ParameterMat< T >

A numeric matrix parameter can hold glm::mat3 and glm::mat4 The values associated with the matrix are clamped to the specified min and max bounds.

Inheritance diagram for ParameterMat< T >:
[legend]
Collaboration diagram for ParameterMat< T >:
[legend]

Member Function Documentation

◆ setValue() [1/2]

void setValue ( const Parameter value)
overridevirtual

Set the value of this enum from another parameter

Parameters
valueThe parameter to set the value from

Implements Parameter.

◆ setValue() [2/2]

void setValue ( value)

Set the value of this parameter. Will raise the valueChanged signal if the value actually changes.

Parameters
valueThe value to set

Member Data Documentation

◆ mValue

T mValue

Property: 'Value' the value of this parameter.

◆ valueChanged

Signal<T> valueChanged

Signal that's raised when the value changes.