本文整理汇总了C++中HeeksObj::CanBeCopied方法的典型用法代码示例。如果您正苦于以下问题:C++ HeeksObj::CanBeCopied方法的具体用法?C++ HeeksObj::CanBeCopied怎么用?C++ HeeksObj::CanBeCopied使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HeeksObj
的用法示例。
在下文中一共展示了HeeksObj::CanBeCopied方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RemoveUncopyable
//static
void TransformTools::RemoveUncopyable()
{
std::list<HeeksObj*> uncopyable_objects;
for(std::list<HeeksObj*>::const_iterator It = wxGetApp().m_marked_list->list().begin(); It != wxGetApp().m_marked_list->list().end(); It++)
{
HeeksObj* object = *It;
if(!object->CanBeCopied())uncopyable_objects.push_back(object);
}
if(uncopyable_objects.size() > 0)wxGetApp().m_marked_list->Remove(uncopyable_objects, true);
}
示例2: GetTools
void MarkedList::GetTools(MarkedObject* clicked_object, std::list<Tool*>& t_list, const wxPoint* p, bool copy_and_paste_tools){
if(wxGetApp().m_no_creation_mode)return;
if (m_list.size() > 0)
{
t_list.push_back(&delete_marked_list_tool);
t_list.push_back(new MenuSeparator);
}
if(m_list.size() == 1)
{
m_list.front()->GetTools(&t_list, p);
}
GetConversionMenuTools(&t_list);
#ifdef MULTIPLE_OWNERS
GetConstraintMenuTools(&t_list);
#endif
GetSketchMenuTools(&t_list);
GetSolidMenuTools(&t_list);
if(copy_and_paste_tools)
{
// cut and copy tools
for(std::list<HeeksObj*>::iterator It = m_list.begin(); It != m_list.end(); It++)
{
HeeksObj* object = *It;
if(object->CanBeCopied())
{
t_list.push_back(©_marked_list);
break;
}
}
// paste
if (wxGetApp().IsPasteReady())
{
paste_tool.m_paste_into = clicked_object->GetObject();
t_list.push_back(&paste_tool);
}
}
}