当前位置: 首页>>代码示例>>C++>>正文


C++ AppSettings::layer_info方法代码示例

本文整理汇总了C++中AppSettings::layer_info方法的典型用法代码示例。如果您正苦于以下问题:C++ AppSettings::layer_info方法的具体用法?C++ AppSettings::layer_info怎么用?C++ AppSettings::layer_info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AppSettings的用法示例。


在下文中一共展示了AppSettings::layer_info方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: GetPSVelSetupUiData

void VelParaSetupHandler::GetPSVelSetupUiData(PSVelSetupPara &para)
{
    AppSettings setting = ConfigManager::GetInstance()->AppSetting();

    para.p_start = setting.p_start();
    para.p_end = setting.p_end();
    para.s_start = setting.s_start();
    para.s_end = setting.s_end();
    para.plus_per = setting.plus_per();
    para.minus_per = setting.minus_per();
    para.layer_info = setting.layer_info();
    para.p_step = setting.p_step();
    para.s_step = setting.s_step();
    para.p_divide_by_s = setting.p_divide_by_s();
}
开发者ID:liye0005,项目名称:QT_POJ,代码行数:15,代码来源:velparasetuphandler.cpp

示例2: GetTimeGridPara

bool CalculateVelocityHandler::GetTimeGridPara(TimeGridPara &para, int channel_id)
{
    AppSettings setting = ConfigManager::GetInstance()->AppSetting();

    para.grid.origin_x = setting.mine_area().min_x;
    para.grid.origin_y = setting.mine_area().min_y;
    para.grid.origin_z = setting.mine_area().min_z;

    if (setting.cell_step() == 0)
    {
        return false;
    }

    para.grid.step_x = setting.cell_step();
    para.grid.step_y = setting.cell_step();
    para.grid.step_z = setting.cell_step();

    para.grid.grid_num_x = (setting.mine_area().max_x - setting.mine_area().min_x) / para.grid.step_x;
    para.grid.grid_num_y = (setting.mine_area().max_y - setting.mine_area().min_y) / para.grid.step_y;
    para.grid.grid_num_z = (setting.mine_area().max_z - setting.mine_area().min_z) / para.grid.step_z;

    para.layer_list = setting.layer_info();

    QList<ChannelInfo> list = channel_map_.values();

    for (int i = 0; i < list.count(); i++)
    {
        ChannelInfo info = list.at(i);

        if (channel_id != 0)
        {
            if (info.id != channel_id)
            {
                continue;
            }
        }

        ChannelInfo cinfo;

        if (!GetChannelInfo(info.id, cinfo))
        {
            return false;
        }

        StationInfo sinfo;

        if (!GetStationInfo(cinfo.station_id, sinfo))
        {
            return false;
        }

        SCInfo scinfo;
        scinfo.name = sinfo.name + "_" + QString().sprintf("%d", cinfo.component);
        scinfo.channel_id = cinfo.id;
        scinfo.east = sinfo.point.east;
        scinfo.north = sinfo.point.north;
        scinfo.deep = sinfo.point.deep;

        para.scinfo_list.append(scinfo);
    }

    return true;
}
开发者ID:liye0005,项目名称:QT_POJ,代码行数:63,代码来源:calculatevelocityhandler.cpp


注:本文中的AppSettings::layer_info方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。