11#ifndef ARTIFICIAL_LIGHT_SOURCE_H
12#define ARTIFICIAL_LIGHT_SOURCE_H
16#include "fish/eigen_matrix_defs.h"
23#ifdef FH_VISUALIZATION
25 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
28 virtual void RenderUpdate(
const double T,
const double*
const X);
32 virtual void OdeFcn(
const double dT,
const double*
const adX,
33 double*
const adXDot,
const bool bIsMajorTimeStep);
36 virtual const double* Position(
const double dT,
const double*
const adX);
37 virtual const double* Velocity(
const double dT,
const double*
const adX);
48#ifdef FH_VISUALIZATION
49 std::string m_sMaterial;
50 std::string m_sMeshName;
52 Ogre::Entity* m_pRenderEntity;
53 Ogre::SceneNode* m_pRenderNode;
54 Ogre::SceneManager* m_pSceneMgr;
Class containing a ArtificialLightSource simObject. Not complete yet.
Definition: ArtificialLightSource.h:18
double m_dMass
The mass of the object.
Definition: ArtificialLightSource.h:39
ISignalPort * m_pInForce
A pointer to the input force.
Definition: ArtificialLightSource.h:40
double m_baseIntensity
Base light intensity leve of source; considered static at this value within 1 m from source.
Definition: ArtificialLightSource.h:44
int m_IStateVel
The index of the velocity state.
Definition: ArtificialLightSource.h:42
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
int m_IStatePos
The index of the position state.
Definition: ArtificialLightSource.h:41
ArtificialLightSource(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
double m_attenuationFactor
Factor determining attenuation of light intensity when passing through light (should be frequency dep...
Definition: ArtificialLightSource.h:45