Lumiverse  2.5
A framework for creating lighting control applications
Namespaces | Functions
LumiverseTypeUtils.h File Reference

Utility functions for manipulating LumiverseTypes. More...

#include "LumiverseFloat.h"
#include "LumiverseEnum.h"
#include "LumiverseColor.h"
#include "LumiverseOrientation.h"
#include <math.h>
Include dependency graph for LumiverseTypeUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Lumiverse
 Contains all core Lumiverse functions and variables.
 
 Lumiverse::LumiverseTypeUtils
 Functions to make life with Lumiverse generic types easier.
 

Functions

LumiverseType * Lumiverse::LumiverseTypeUtils::copy (LumiverseType *data)
 Copies a LumiverseType and returns an abstracted pointer to the new value. More...
 
void Lumiverse::LumiverseTypeUtils::copyByVal (LumiverseType *source, LumiverseType *target)
 Copies the data from source into target. More...
 
bool Lumiverse::LumiverseTypeUtils::equals (LumiverseType *lhs, LumiverseType *rhs)
 Compares two generic LumiverseType pointers for equality. More...
 
int Lumiverse::LumiverseTypeUtils::cmp (LumiverseType *lhs, LumiverseType *rhs)
 Compares two LumiverseType objects. More...
 
shared_ptr< LumiverseType > Lumiverse::LumiverseTypeUtils::lerp (LumiverseType *lhs, LumiverseType *rhs, float t)
 Lerps the values of a LumiverseType and returns the value. More...
 
bool Lumiverse::LumiverseTypeUtils::areSameType (LumiverseType *lhs, LumiverseType *rhs)
 Checks the types of two LumiverseType objects. More...
 
Eigen::Matrix3f Lumiverse::LumiverseTypeUtils::getRotationMatrix (Eigen::Vector3f lookat, Eigen::Vector3f up, LumiverseOrientation pan, LumiverseOrientation tilt)
 Returns a rotation matrix given the up vector, look at vector, the pan, and tilt.
 
Eigen::Matrix3f Lumiverse::LumiverseTypeUtils::getRotationMatrix (Eigen::Vector3f lookat, Eigen::Vector3f axis)
 Rotates the unit vector axis to the lookat vector.
 
bool Lumiverse::LumiverseTypeUtils::lessThan (LumiverseType *lhs, LumiverseType *rhs)
 Compares two LumiverseTypes with <. More...
 
void Lumiverse::LumiverseTypeUtils::scaleParam (LumiverseType *val, float scale)
 Multiplies a parameter by a constant value (typically from 0 to 1, but no limits are enforced in this function). More...
 
LumiverseType * Lumiverse::LumiverseTypeUtils::loadFromJSON (JSONNode node)
 Loads a LumiverseType from a JSON node.
 
LumiverseOrientation & Lumiverse::LumiverseTypeUtils::typeToOrientationRef (LumiverseType *data)
 
LumiverseColor & Lumiverse::LumiverseTypeUtils::typeToColorRef (LumiverseType *data)
 
LumiverseFloat & Lumiverse::LumiverseTypeUtils::typeToFloatRef (LumiverseType *data)
 

Detailed Description

Utility functions for manipulating LumiverseTypes.