1#ifndef CExpandedLines_h__
2#define CExpandedLines_h__
9# pragma warning(disable : 4251)
10# pragma warning(disable : 4267)
18 CExpandedLines(
int iNumPoints,
19 Ogre::Root* pOgreRoot,
20 Ogre::SceneNode* pSceneNode,
21 std::string materialName,
27 CExpandedLines(
int iNumPoints,
28 Ogre::Root* pOgreRoot,
29 Ogre::SceneNode* pSceneNode,
30 std::string materialName,
32 std::vector<double>& radiusFudges
37 ~CExpandedLines(
void);
38 virtual void Update();
40 void SetPoint(
int index,
const double* adPos);
41 void SetPoint(
int index,
const double x,
const double y,
const double z);
42 void SetPoint(
int index,
const Ogre::Vector3& position);
43 void SetNumFaces(
int iNumFaces);
45 Ogre::ManualObject* GetRendererObject() {
return m_pRendererObject; }
53 std::vector<double> m_VdRadiusFudges;
54 std::vector<Ogre::Vector3> m_aVPoints;
55 double* m_adTotalLength;
56 Ogre::ManualObject* m_pRendererObject;
57 Ogre::Root* m_pOgreRoot;
58 Ogre::SceneNode* m_pSceneNode;
59 std::string m_sMaterialName;
60 std::string m_sCableName;
61 Ogre::Vector3* m_aVExpandedPoints;
62 Ogre::Vector3* m_aVNormals;
64 int GetBestOffset(
int j);
66 static int s_iCableID;