I use exactly three instances of this class (for x,y,z) as members of a compound object CoordinateSystem .
I am very unsure from which base CoordianteSystem should inherit.
Code: Select all
class CoordianteSystem {
public:
DynamicCoordinateFrames():
m_xAxis(DynamicLines::OperationType::OT_LINE_LIST),
m_yAxis(DynamicLines::OperationType::OT_LINE_LIST),
m_zAxis(DynamicLines::OperationType::OT_LINE_LIST)
{};
private:
Ogre::SceneNode* m_baseNode;
DynamicLines m_xAxis;
DynamicLines m_yAxis;
DynamicLines m_zAxis;
};
From what objects should I inherit? From MovableObject?
I would like to attach then an instance of CoordinateSystem to a scene node.
And how do I attach/dettach m_xAxis,m_yAxis,m_zAxis when CoordianteSystem gets attached/dettached?