1#ifndef CExpandedLines_h__
2#define CExpandedLines_h__
7# pragma warning(disable : 4251)
8# pragma warning(disable : 4267)
16 CExpandedLines(
int iNumPoints,
17 Ogre::Root* pOgreRoot,
18 Ogre::SceneNode* pSceneNode,
19 std::string materialName,
25 CExpandedLines(
int iNumPoints,
26 Ogre::Root* pOgreRoot,
27 Ogre::SceneNode* pSceneNode,
28 std::string materialName,
30 std::vector<double>& radiusFudges
35 ~CExpandedLines(
void);
36 virtual void Update();
38 void SetPoint(
int index,
const double* adPos);
39 void SetPoint(
int index,
const double x,
const double y,
const double z);
40 void SetPoint(
int index,
const Ogre::Vector3& position);
41 void SetNumFaces(
int iNumFaces);
43 Ogre::ManualObject* GetRendererObject() {
return m_pRendererObject; }
51 std::vector<double> m_VdRadiusFudges;
52 std::vector<Ogre::Vector3> m_aVPoints;
53 double* m_adTotalLength;
54 Ogre::ManualObject* m_pRendererObject;
55 Ogre::Root* m_pOgreRoot;
56 Ogre::SceneNode* m_pSceneNode;
57 std::string m_sMaterialName;
58 std::string m_sCableName;
59 Ogre::Vector3* m_aVExpandedPoints;
60 Ogre::Vector3* m_aVNormals;
62 int GetBestOffset(
int j);
64 static int s_iCableID;