本文整理汇总了C++中VRMenuObject::GetLocalPose方法的典型用法代码示例。如果您正苦于以下问题:C++ VRMenuObject::GetLocalPose方法的具体用法?C++ VRMenuObject::GetLocalPose怎么用?C++ VRMenuObject::GetLocalPose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VRMenuObject
的用法示例。
在下文中一共展示了VRMenuObject::GetLocalPose方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetPosition
void ResumeMovieView::SetPosition( OvrVRMenuMgr & menuMgr, const Vector3f &pos )
{
menuHandle_t centerRootHandle = Menu->HandleForId( menuMgr, ID_CENTER_ROOT );
VRMenuObject * centerRoot = menuMgr.ToObject( centerRootHandle );
OVR_ASSERT( centerRoot != NULL );
Posef pose = centerRoot->GetLocalPose();
pose.Position = pos;
centerRoot->SetLocalPose( pose );
}
示例2: OnInit
//==============================
// OvrSliderComponent::OnInit
eMsgStatus OvrSliderComponent::OnInit( App * app, VrFrame const & vrFrame, OvrVRMenuMgr & menuMgr,
VRMenuObject * self, VRMenuEvent const & event )
{
// find the starting offset of the caret
LOG( "OvrSliderComponent - VRMENU_EVENT_INIT" );
VRMenuObject * caret = menuMgr.ToObject( self->ChildHandleForId( menuMgr, ScrubberId ) );
if ( caret != NULL )
{
CaretBasePose = caret->GetLocalPose();
}
SetCaretPoseFromFrac( menuMgr, self, SliderFrac );
UpdateText( menuMgr, self, BubbleId );
return MSG_STATUS_ALIVE;
}
示例3: OnInit
//==============================
// OvrSliderComponent::OnInit
eMsgStatus OvrSliderComponent::OnInit( OvrGuiSys & guiSys, VrFrame const & vrFrame,
VRMenuObject * self, VRMenuEvent const & event )
{
OVR_UNUSED( vrFrame );
OVR_UNUSED( event );
// find the starting offset of the caret
//LOG( "OvrSliderComponent - VRMENU_EVENT_INIT" );
VRMenuObject * caret = guiSys.GetVRMenuMgr().ToObject( self->ChildHandleForId( guiSys.GetVRMenuMgr(), ScrubberId ) );
if ( caret != NULL )
{
CaretBasePose = caret->GetLocalPose();
}
SetCaretPoseFromFrac( guiSys.GetVRMenuMgr(), self, SliderFrac );
UpdateText( guiSys.GetVRMenuMgr(), self, BubbleId );
return MSG_STATUS_ALIVE;
}