28 Trackball(
int xSize,
int ySize, std::shared_ptr<Camera>
const& camera);
32 void Set(
int xSize,
int ySize, std::shared_ptr<Camera>
const& camera);
33 inline int GetXSize()
const;
34 inline int GetYSize()
const;
35 inline std::shared_ptr<Camera>
const& GetCamera()
const;
36 inline std::shared_ptr<Node>
const& GetRoot()
const;
43 void Attach(std::shared_ptr<Spatial>
const&
object);
44 void Detach(std::shared_ptr<Spatial>
const&
object);
46 inline void Update(
double applicationTime = 0.0);
53 inline void SetActive(
bool active);
54 inline bool GetActive()
const;
59 void SetInitialPoint(
int x,
int y);
63 void SetFinalPoint(
int x,
int y);
66 void UpdateOrientation();
72 float mMultiplier, mX0, mY0, mX1,
mY1;
99 return mRoot->worldTransform.GetRotation();
104 mRoot->Update(applicationTime);
Matrix4x4< float > const & GetOrientation() const
std::shared_ptr< Camera > const & GetCamera() const
Matrix4x4< float > mInitialOrientation
void SetActive(bool active)
std::shared_ptr< Node > mRoot
std::shared_ptr< Node > const & GetRoot() const
void Update(double applicationTime=0.0)
std::shared_ptr< Camera > mCamera