想看干货,还是FreeSouth总结的东西,写的很全
http://www.d3dweb.com/Documents/201203/31-22251384929.html
以下是我自己项目的记录及碎碎念,为了梳理和加深印象:
1.KeySwitchMatrixManipulator类可以看做一个各类操作器的管理类,用按键来切换这些操作器。比如‘1’会被切换到TrackBall‘2’会被切换到Driver。
比如这样:
// Add our trackball manipulator to the switcher
m_keyswitchManipulator->addMatrixManipulator( '1', "Trackball", m_traceball.get());
// Init the switcher to the first manipulator (in this case the only manipulator)
m_keyswitchManipulator->selectMatrixManipulator(