本文整理汇总了C++中MultibodySystem::getUpDirection方法的典型用法代码示例。如果您正苦于以下问题:C++ MultibodySystem::getUpDirection方法的具体用法?C++ MultibodySystem::getUpDirection怎么用?C++ MultibodySystem::getUpDirection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MultibodySystem
的用法示例。
在下文中一共展示了MultibodySystem::getUpDirection方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Impl
// Create a Visualizer and put it in PassThrough mode.
Impl(Visualizer* owner, const MultibodySystem& system,
const Array_<String>& searchPath)
: m_system(system), m_protocol(*owner, searchPath),
m_shutdownWhenDestructed(false), m_upDirection(YAxis), m_groundHeight(0),
m_mode(PassThrough), m_frameRateFPS(DefaultFrameRateFPS),
m_simTimeUnitsPerSec(1),
m_desiredBufferLengthInSec(DefaultDesiredBufferLengthInSec),
m_timeBetweenFramesInNs(secToNs(1/DefaultFrameRateFPS)),
m_allowableFrameJitterInNs(DefaultAllowableFrameJitterInNs),
m_allowableFrameTimeSlopInNs(
secToNs(DefaultSlopAsFractionOfFrameInterval/DefaultFrameRateFPS)),
m_adjustedRealTimeBase(realTimeInNs()),
m_prevFrameSimTime(-1), m_nextFrameDueAdjRT(-1),
m_oldest(0),m_nframe(0),
m_drawThreadIsRunning(false), m_drawThreadShouldSuicide(false),
m_refCount(0)
{
pthread_mutex_init(&m_queueLock, NULL);
pthread_cond_init(&m_queueNotFull, NULL);
pthread_cond_init(&m_queueNotEmpty, NULL);
pthread_cond_init(&m_queueIsEmpty, NULL);
setMode(PassThrough);
clearStats();
m_protocol.setMaxFrameRate(m_frameRateFPS);
m_protocol.setBackgroundColor(White);
m_protocol.setBackgroundType(system.getUseUniformBackground()
? SolidColor : GroundAndSky);
m_protocol.setSystemUpDirection(system.getUpDirection());
}