本文整理汇总了C++中ViewVector::begin方法的典型用法代码示例。如果您正苦于以下问题:C++ ViewVector::begin方法的具体用法?C++ ViewVector::begin怎么用?C++ ViewVector::begin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ViewVector
的用法示例。
在下文中一共展示了ViewVector::begin方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setActiveViews
void AnnotationToolbar::setActiveViews(const ViewVector& views)
{
removeViews();
for (ViewVector::const_iterator it = views.begin(); it != views.end(); ++it)
addView(*it);
}
示例2: setActiveViews
void TerrainProfileWidget::setActiveViews(const ViewVector& views)
{
removeViews();
for (ViewVector::const_iterator it = views.begin(); it != views.end(); ++it)
addView(*it);
}
示例3: setActiveViews
void LOSControlWidget::setActiveViews(const ViewVector& views)
{
removeViews();
for (ViewVector::const_iterator it = views.begin(); it != views.end(); ++it)
addView(*it);
}
示例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());
}
示例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());
}
}
示例6: setActiveViews
void MapCatalogWidget::setActiveViews(const ViewVector& views)
{
_views.clear();
_views.insert(_views.end(), views.begin(), views.end());
}