11#ifdef FH_VISUALIZATION
12 #include <sfh/ogre/C3DLine.h>
18 EIGEN_MAKE_ALIGNED_OPERATOR_NEW;
20 const double * regionVerticesNED(
const double T,
const double *
const X);
22 void OdeFcn(
const double T,
const double*
const X,
double*
const XDot,
const bool isMajorTimeStep) {}
24#ifdef FH_VISUALIZATION
25 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator) {
26 Ogre::SceneManager* sceneMgr = ogreRoot->getSceneManager(
"main");
28 double trackColor[3] = { 1,0,0 };
30 line =
new C3DLine(sceneMgr, Ogre::RenderOperation::OT_LINE_STRIP, 5, Ogre::ColourValue::Red);
33 virtual void RenderUpdate(
const double T,
const double*
const X) {
34 const double * vert = regionVerticesNED(T, X);
36 for (
int i = 0; i < 4; i++)
37 line->SetPoint(i, vert[i * 3 + 0], vert[i * 3 + 1], 0, Ogre::ColourValue::Red);
38 line->SetPoint(4, vert[0], vert[1], 0, Ogre::ColourValue::Red);
43 ISignalPort * m_inRegionParentPoint;
44 ISignalPort * m_inRegionParentRotation;
47 Eigen::Vector3d m_p0, m_p1, m_p2, m_p3;
50#ifdef FH_VISUALIZATION
Definition: FloeDetectRegion.h:15