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


C++ DictionaryArray类代码示例

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


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

示例1: get_widget_definitions

DictionaryArray ConstantHemisphereEnvironmentEDFFactory::get_widget_definitions() const
{
    DictionaryArray definitions;

    definitions.push_back(
        Dictionary()
        .insert("name", "upper_hemi_exitance")
        .insert("label", "Upper Hemisphere Exitance")
        .insert("widget", "entity_picker")
        .insert("entity_types",
                Dictionary().insert("color", "Colors"))
        .insert("use", "required")
        .insert("default", ""));

    definitions.push_back(
        Dictionary()
        .insert("name", "lower_hemi_exitance")
        .insert("label", "Lower Hemisphere Exitance")
        .insert("widget", "entity_picker")
        .insert("entity_types",
                Dictionary().insert("color", "Colors"))
        .insert("use", "required")
        .insert("default", ""));

    return definitions;
}
开发者ID:Len3d,项目名称:appleseed,代码行数:26,代码来源:constanthemisphereenvironmentedf.cpp

示例2: get_input_metadata

DictionaryArray ObjectInstanceFactory::get_input_metadata()
{
    DictionaryArray metadata;

    metadata.push_back(
        Dictionary()
            .insert("name", "ray_bias_method")
            .insert("label", "Ray Bias Method")
            .insert("type", "enumeration")
            .insert("items",
                Dictionary()
                    .insert("No Ray Bias", "none")
                    .insert("Shift Along Surface Normal", "normal")
                    .insert("Shift Along Incoming Direction", "incoming_direction")
                    .insert("Shift Along Outgoing Direction", "outgoing_direction"))
            .insert("use", "optional")
            .insert("default", "none"));

    metadata.push_back(
        Dictionary()
            .insert("name", "ray_bias_distance")
            .insert("label", "Ray Bias Distance")
            .insert("type", "text")
            .insert("use", "optional")
            .insert("default", "0.0"));

    return metadata;
}
开发者ID:yesoce,项目名称:appleseed,代码行数:28,代码来源:objectinstance.cpp

示例3: wxT

DictionaryArray Exword::GetLocalDictionaries()
{
    static const wxChar *country[] = { NULL, wxT("ja"), wxT("cn"),
                                       wxT("kr"), wxT("de"), wxT("es"),
                                       wxT("fr"), wxT("ru")};
    DictionaryArray list;
    wxString path;
    if (IsConnected()) {
        path.Printf(wxT("%s%c%s%c"), Exword::GetUserDataDir().c_str(),
                    wxFileName::GetPathSeparator(), country[m_region],
                    wxFileName::GetPathSeparator());
        wxDir dir(path);
        if (dir.IsOpened()) {
            wxString filename;
            bool cont = dir.GetFirst(&filename, wxEmptyString, wxDIR_DIRS);
            while (cont) {
                Dictionary *local = new LocalDictionary(filename, m_region);
                if (local->Exists()) {
                    list.Add(local);
                }
                cont = dir.GetNext(&filename);
            }
        }
    }
    return list;
}
开发者ID:brijohn,项目名称:exword_tools,代码行数:26,代码来源:ExwordDevice.cpp

示例4: get_input_metadata

DictionaryArray ConstantHemisphereEnvironmentEDFFactory::get_input_metadata() const
{
    DictionaryArray metadata;

    metadata.push_back(
        Dictionary()
            .insert("name", "upper_hemi_radiance")
            .insert("label", "Upper Hemisphere Radiance")
            .insert("type", "colormap")
            .insert("entity_types",
                Dictionary().insert("color", "Colors"))
            .insert("use", "required")
            .insert("default", "0.7")
            .insert("help", "Upper hemisphere radiance"));

    metadata.push_back(
        Dictionary()
            .insert("name", "lower_hemi_radiance")
            .insert("label", "Lower Hemisphere Radiance")
            .insert("type", "colormap")
            .insert("entity_types",
                Dictionary().insert("color", "Colors"))
            .insert("use", "required")
            .insert("default", "0.3")
            .insert("help", "Lower hemisphere radiance"));

    return metadata;
}
开发者ID:appleseedhq,项目名称:appleseed,代码行数:28,代码来源:constanthemisphereenvironmentedf.cpp

示例5: get_input_metadata

DictionaryArray FisheyeLensCameraFactory::get_input_metadata() const
{
    DictionaryArray metadata = CameraFactory::get_input_metadata();

    CameraFactory::add_film_metadata(metadata);
    CameraFactory::add_lens_metadata(metadata);
    CameraFactory::add_clipping_metadata(metadata);
    CameraFactory::add_shift_metadata(metadata);

    metadata.push_back(
    Dictionary()
        .insert("name", "projection_type")
        .insert("label", "Projection Type")
        .insert("type", "enumeration")
        .insert("items",
            Dictionary()
                .insert("Equisolid Angle", "equisolid_angle")
                .insert("Equidistant", "equidistant")
                .insert("Stereographic", "stereographic")
                .insert("Thoby", "thoby"))
        .insert("default", "equisolid_angle")
        .insert("use", "required"));

    return metadata;
}
开发者ID:appleseedhq,项目名称:appleseed,代码行数:25,代码来源:fisheyelenscamera.cpp

示例6: get_input_metadata

DictionaryArray SheenBRDFFactory::get_input_metadata() const
{
    DictionaryArray metadata;

    metadata.push_back(
        Dictionary()
            .insert("name", "reflectance")
            .insert("label", "Reflectance")
            .insert("type", "colormap")
            .insert("entity_types",
                Dictionary()
                    .insert("color", "Colors")
                    .insert("texture_instance", "Texture Instances"))
            .insert("use", "required")
            .insert("default", "0.5"));

    metadata.push_back(
        Dictionary()
            .insert("name", "reflectance_multiplier")
            .insert("label", "Reflectance Multiplier")
            .insert("type", "colormap")
            .insert("entity_types",
                Dictionary().insert("texture_instance", "Texture Instances"))
            .insert("use", "optional")
            .insert("default", "1.0"));

    return metadata;
}
开发者ID:appleseedhq,项目名称:appleseed,代码行数:28,代码来源:sheenbrdf.cpp

示例7: get_input_metadata

DictionaryArray DiagnosticSurfaceShaderFactory::get_input_metadata() const
{
    Dictionary model_items;

    for (int i = 0; i < DiagnosticSurfaceShader::ShadingModeCount; ++i)
    {
        const char* shading_mode_value = DiagnosticSurfaceShader::ShadingModeNames[i].m_key;
        const char* shading_mode_name = DiagnosticSurfaceShader::ShadingModeNames[i].m_value;
        model_items.insert(shading_mode_name, shading_mode_value);
    }

    DictionaryArray metadata;

    metadata.push_back(
        Dictionary()
            .insert("name", "mode")
            .insert("label", "Mode")
            .insert("type", "enumeration")
            .insert("items", model_items)
            .insert("use", "required")
            .insert("default", "coverage")
            .insert("on_change", "rebuild_form"));

    return metadata;
}
开发者ID:johnhaddon,项目名称:appleseed,代码行数:25,代码来源:diagnosticsurfaceshader.cpp

示例8: get_widget_definitions

DictionaryArray LambertianBRDFFactory::get_widget_definitions() const
{
    DictionaryArray definitions;

    definitions.push_back(
        Dictionary()
            .insert("name", "reflectance")
            .insert("label", "Reflectance")
            .insert("widget", "entity_picker")
            .insert("entity_types",
                Dictionary()
                    .insert("color", "Colors")
                    .insert("texture_instance", "Textures"))
            .insert("use", "required")
            .insert("default", ""));

    definitions.push_back(
        Dictionary()
            .insert("name", "reflectance_multiplier")
            .insert("label", "Reflectance Multiplier")
            .insert("widget", "entity_picker")
            .insert("entity_types",
                Dictionary().insert("texture_instance", "Textures"))
            .insert("use", "optional")
            .insert("default", "1.0"));

    return definitions;
}
开发者ID:EgoIncarnate,项目名称:appleseed,代码行数:28,代码来源:lambertianbrdf.cpp

示例9: get_widget_definitions

DictionaryArray GradientEnvironmentEDFFactory::get_widget_definitions() const
{
    DictionaryArray definitions;

    definitions.push_back(
        Dictionary()
            .insert("name", "horizon_exitance")
            .insert("label", "Horizon Exitance")
            .insert("widget", "entity_picker")
            .insert("entity_types",
                Dictionary()
                    .insert("color", "Colors"))
            .insert("use", "required")
            .insert("default", ""));

    definitions.push_back(
        Dictionary()
            .insert("name", "zenith_exitance")
            .insert("label", "Zenith Exitance")
            .insert("widget", "entity_picker")
            .insert("entity_types",
                Dictionary()
                    .insert("color", "Colors"))
            .insert("use", "required")
            .insert("default", ""));

    return definitions;
}
开发者ID:Len3d,项目名称:appleseed,代码行数:28,代码来源:gradientenvironmentedf.cpp

示例10: add_common_input_metadata

void IEDFFactory::add_common_input_metadata(DictionaryArray& metadata)
{
    metadata.push_back(
        Dictionary()
            .insert("name", "cast_indirect_light")
            .insert("label", "Cast Indirect Light")
            .insert("type", "boolean")
            .insert("use", "optional")
            .insert("default", "true"));

    metadata.push_back(
        Dictionary()
            .insert("name", "importance_multiplier")
            .insert("label", "Importance Multiplier")
            .insert("type", "numeric")
            .insert("min_value", "0.0")
            .insert("max_value", "10.0")
            .insert("use", "optional")
            .insert("default", "1.0"));

    metadata.push_back(
        Dictionary()
            .insert("name", "light_near_start")
            .insert("label", "Light Near Start")
            .insert("type", "numeric")
            .insert("min_value", "0.0")
            .insert("max_value", "10.0")
            .insert("use", "optional")
            .insert("default", "0.0"));
}
开发者ID:Rapternmn,项目名称:appleseed,代码行数:30,代码来源:iedffactory.cpp

示例11: findStreamInfo

void FormatContext::findStreamInfo(DictionaryArray &streamsOptions, OptionalErrorCode ec)
{
    auto ptrs = streamsOptions.release();
    auto count = streamsOptions.size();

    ScopeOutAction onReturn([&ptrs, count, &streamsOptions](){
        streamsOptions.assign(ptrs, count);
    });

    findStreamInfo(ptrs, count, ec);
}
开发者ID:wlanjie,项目名称:AndroidFFmpeg,代码行数:11,代码来源:formatcontext.cpp

示例12: GetRemoteDictionaries

DictionaryArray Exword::GetRemoteDictionaries()
{
    DictionaryArray list;
    wxMemoryBuffer admini(180);
    if (IsConnected()) {
        ReadAdmini(admini);
        char *data = (char *)admini.GetData();
        if (admini.GetDataLen() > 0) {
            for (unsigned int i = 0; i < admini.GetDataLen(); i += 180) {
                list.Add(new RemoteDictionary(wxString::FromAscii(data + i), this));
            }
        }
    }
    return list;
}
开发者ID:brijohn,项目名称:exword_tools,代码行数:15,代码来源:ExwordDevice.cpp

示例13: get_widget_definitions

DictionaryArray PointLightFactory::get_widget_definitions() const
{
    DictionaryArray definitions;

    definitions.push_back(
        Dictionary()
            .insert("name", "exitance")
            .insert("label", "Exitance")
            .insert("widget", "entity_picker")
            .insert("entity_types",
                Dictionary()
                    .insert("color", "Colors"))
            .insert("use", "required")
            .insert("default", ""));

    return definitions;
}
开发者ID:Len3d,项目名称:appleseed,代码行数:17,代码来源:pointlight.cpp

示例14: add_common_input_metadata

void ILightFactory::add_common_input_metadata(DictionaryArray& metadata)
{
    metadata.push_back(
        Dictionary()
            .insert("name", "cast_indirect_light")
            .insert("label", "Cast Indirect Light")
            .insert("type", "boolean")
            .insert("use", "optional")
            .insert("default", "true"));

    metadata.push_back(
        Dictionary()
            .insert("name", "importance_multiplier")
            .insert("label", "Importance Multiplier")
            .insert("type", "text")
            .insert("use", "optional")
            .insert("default", "1.0"));
}
开发者ID:hipopotamo-hipotalamo,项目名称:appleseed,代码行数:18,代码来源:ilightfactory.cpp

示例15: dictionary_array_to_bpy_list

bpy::list dictionary_array_to_bpy_list(const DictionaryArray& array)
{
    bpy::list metadata;

    for (size_t i = 0, e = array.size(); i < e; ++i)
        metadata.append(dictionary_to_bpy_dict(array[i]));

    return metadata;
}
开发者ID:appleseedhq,项目名称:appleseed,代码行数:9,代码来源:dict2dict.cpp


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