本文整理汇总了C++中ViewVector类的典型用法代码示例。如果您正苦于以下问题:C++ ViewVector类的具体用法?C++ ViewVector怎么用?C++ ViewVector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ViewVector类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: removeViews
void TerrainProfileWidget::setActiveViews(const ViewVector& views)
{
removeViews();
for (ViewVector::const_iterator it = views.begin(); it != views.end(); ++it)
addView(*it);
}
开发者ID:APerennec,项目名称:osgearth,代码行数:7,代码来源:TerrainProfileWidget.cpp
示例2: removeViews
void AnnotationToolbar::setActiveViews(const ViewVector& views)
{
removeViews();
for (ViewVector::const_iterator it = views.begin(); it != views.end(); ++it)
addView(*it);
}
开发者ID:Brucezhou1979,项目名称:osgearth,代码行数:7,代码来源:AnnotationToolbar.cpp
示例3: removeViews
void LOSControlWidget::setActiveViews(const ViewVector& views)
{
removeViews();
for (ViewVector::const_iterator it = views.begin(); it != views.end(); ++it)
addView(*it);
}
开发者ID:airwzz999,项目名称:osgearth-for-android,代码行数:7,代码来源:LOSControlWidget.cpp
示例4: QDialog
BaseAnnotationDialog::BaseAnnotationDialog(osgEarth::MapNode* mapNode, const ViewVector& views, QWidget* parent, Qt::WindowFlags f)
: QDialog(parent, f), _mapNode(mapNode), _views(views.size())
{
initDefaultUi();
std::copy(views.begin(), views.end(), _views.begin());
}
开发者ID:JohnDr,项目名称:osgearth,代码行数:7,代码来源:AnnotationDialogs.cpp
示例5: BaseAnnotationDialog
AddMarkerDialog::AddMarkerDialog(osg::Group* root, osgEarth::MapNode* mapNode, const ViewVector& views, osgEarth::Annotation::PlaceNode* marker, QWidget* parent, Qt::WindowFlags f)
: BaseAnnotationDialog(mapNode, views, parent, f), _root(root), _altName(""), _editing(marker ? true : false), _inPosition(marker ? marker->getPosition() : osgEarth::GeoPoint()), _inNameSet(false)
{
initialize();
if (marker)
{
osgEarth::Annotation::AnnotationData* data = marker->getAnnotationData();
//Get marker text/name
_inName = marker->getText().length() > 0 ? marker->getText() : (data ? data->getName() : "");
_nameEdit->setText(tr(_inName.c_str()));
if (marker->getText().length() > 0 && data && data->getName().length() > 0 && marker->getText() != data->getName())
_altName = data->getName();
//Get marker description
_inDescription = data ? data->getDescription() : "";
_descriptionEdit->setText(tr(_inDescription.c_str()));
//Set marker checkbox
_inNameSet = marker->getText().length() > 0;
_nameCheckbox->setChecked(_inNameSet);
_placeNode = marker;
}
if (_mapNode.valid() && _views.size() > 0)
{
_guiHandler = new AddPointsMouseHandler(this, _mapNode.get(), 0L, false);
for (ViewVector::const_iterator it = views.begin(); it != views.end(); ++it)
(*it)->addEventHandler(_guiHandler.get());
}
}
开发者ID:JohnDr,项目名称:osgearth,代码行数:33,代码来源:AnnotationDialogs.cpp
示例6:
/* static */ bool
InnerViewTable::sweepEntry(JSObject** pkey, ViewVector& views)
{
if (IsAboutToBeFinalizedUnbarriered(pkey))
return true;
MOZ_ASSERT(!views.empty());
for (size_t i = 0; i < views.length(); i++) {
if (IsAboutToBeFinalizedUnbarriered(&views[i])) {
views[i--] = views.back();
views.popBack();
}
}
return views.empty();
}
开发者ID:bslassey,项目名称:spidernode,代码行数:16,代码来源:ArrayBufferObject.cpp
示例7: setActiveViews
void MapCatalogWidget::setActiveViews(const ViewVector& views)
{
_views.clear();
_views.insert(_views.end(), views.begin(), views.end());
}
开发者ID:APerennec,项目名称:osgearth,代码行数:5,代码来源:MapCatalogWidget.cpp
注:本文中的ViewVector类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论