本文整理汇总了C++中LabelList::clear方法的典型用法代码示例。如果您正苦于以下问题:C++ LabelList::clear方法的具体用法?C++ LabelList::clear怎么用?C++ LabelList::clear使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LabelList
的用法示例。
在下文中一共展示了LabelList::clear方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: quitModule
void quitModule(HINSTANCE hInstance)
{
RemoveBangCommand("!LabelCreate");
RemoveBangCommand("!LabelDebug");
RemoveBangCommand("!LabelLsBoxHook");
for(LabelListIterator it = labelList.begin(); it != labelList.end(); it++)
delete *it;
labelList.clear();
SendMessage(GetLitestepWnd(),
LM_UNREGISTERMESSAGE,
(WPARAM) messageHandler,
(LPARAM) lsMessages);
DestroyWindow(messageHandler);
UnregisterClass("LabelLS", hInstance);
UnregisterClass("LabelMessageHandlerLS", hInstance);
delete systemInfo;
delete defaultSettings;
hbmDesktop = (HBITMAP) SelectObject(hdcDesktop, hbmDesktop);
DeleteDC(hdcDesktop);
DeleteObject(hbmDesktop);
}
示例2: drawLabels
void StarComponent::drawLabels()
{
if( m_hideLabels )
return;
SkyLabeler *labeler = SkyLabeler::Instance();
labeler->setPen( QColor( KStarsData::Instance()->colorScheme()->colorNamed( "SNameColor" ) ) );
int max = int( m_zoomMagLimit * 10.0 );
if ( max < 0 ) max = 0;
if ( max > MAX_LINENUMBER_MAG ) max = MAX_LINENUMBER_MAG;
for ( int i = 0; i <= max; i++ ) {
LabelList* list = m_labelList[ i ];
for ( int j = 0; j < list->size(); j++ ) {
labeler->drawNameLabel( list->at(j).obj, list->at(j).o );
}
list->clear();
}
}