Public Member Functions | List of all members
gazebo::rendering::CameraLensPrivate::MapFunctionEnum Class Reference

Enumeration of functions that can be casted to some other types. More...

#include <CameraLensPrivate.hh>

Public Member Functions

 MapFunctionEnum (const std::string &_str)
 Constructor. More...
 
float Apply (const float _t)
 Apply function to float value. More...
 
std::string AsString () const
 Cast to std::string. More...
 
ignition::math::Vector3d AsVector3d () const
 Cast to ignition::math::Vector3d, this vector is passed to shader to avoid branching. More...
 
MapFunctionEnumoperator= (const MapFunctionEnum &_fun)
 Assignment operator. More...
 

Detailed Description

Enumeration of functions that can be casted to some other types.

Constructor & Destructor Documentation

gazebo::rendering::CameraLensPrivate::MapFunctionEnum::MapFunctionEnum ( const std::string &  _str)
inlineexplicit

Constructor.

Parameters
[in]strFunction name 'sin', 'tan' or 'id'

Member Function Documentation

float gazebo::rendering::CameraLensPrivate::MapFunctionEnum::Apply ( const float  _t)
inline

Apply function to float value.

Returns
The result of application
std::string gazebo::rendering::CameraLensPrivate::MapFunctionEnum::AsString ( ) const
inline

Cast to std::string.

Returns
The same string which was passed to constructor
ignition::math::Vector3d gazebo::rendering::CameraLensPrivate::MapFunctionEnum::AsVector3d ( ) const
inline

Cast to ignition::math::Vector3d, this vector is passed to shader to avoid branching.

Returns
Vector3 Vector whose one component is 1 and the rest are nulls
MapFunctionEnum& gazebo::rendering::CameraLensPrivate::MapFunctionEnum::operator= ( const MapFunctionEnum _fun)
inline

Assignment operator.

Parameters
[in]_funRvalue
Returns
Reference to (*this)

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