本文整理汇总了C++中PointPtr::SetTransient方法的典型用法代码示例。如果您正苦于以下问题:C++ PointPtr::SetTransient方法的具体用法?C++ PointPtr::SetTransient怎么用?C++ PointPtr::SetTransient使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PointPtr
的用法示例。
在下文中一共展示了PointPtr::SetTransient方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MouseDown
bool CurveCreateTool::MouseDown( const MouseButtonInput& e )
{
if ( m_Instance.ReferencesObject() && m_Scene->IsEditable() )
{
Math::Vector3 position;
PickPosition( e.GetPosition().x, e.GetPosition().y, position );
PointPtr point = new Core::Point( m_Scene, new Content::Point( position ) );
point->SetParent( m_Instance );
point->SetTransient( true );
m_Scene->AddObject( point );
m_Instance->Dirty();
m_Scene->Execute( true );
}
return __super::MouseDown( e );
}
示例2: CreateInstance
void CurveCreateTool::CreateInstance( const Math::Vector3& position )
{
if (m_Instance.ReferencesObject())
{
// remove temp reference
m_Scene->RemoveObject( m_Instance );
}
m_Instance = new Core::Curve( m_Scene, new Content::Curve() );
m_Instance->SetSelected( true );
m_Instance->SetTransient( true );
m_Instance->SetCurveType( s_CurveType );
m_Scene->AddObject( m_Instance );
PointPtr point = new Core::Point( m_Scene, new Content::Point( position ) );
point->SetParent( m_Instance );
point->SetTransient( true );
m_Scene->AddObject( point );
m_Instance->Evaluate( GraphDirections::Downstream );
}