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


C++ DBOptionsAttributes类代码示例

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


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

示例1: GetUintahReadOptions

DBOptionsAttributes *
GetUintahReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;
    rv->SetBool("Load extra cells", true);
    return rv;
}
开发者ID:HarinarayanKrishnan,项目名称:VisIt28RC_Trunk,代码行数:7,代码来源:avtUintahOptions.C

示例2: GetXmdvWriteOptions

DBOptionsAttributes *
GetXmdvWriteOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;
    rv->SetBool("Export coordinates?", true);
    return rv;
}
开发者ID:HarinarayanKrishnan,项目名称:VisIt26RC_Trunk,代码行数:7,代码来源:avtXmdvOptions.C

示例3: GetPDBReadOptions

DBOptionsAttributes *
GetPDBReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;
    rv->SetInt("LEOS try harder level [set to 0, 1 or 2]", 0);
    return rv;
}
开发者ID:burlen,项目名称:visit_vtk_7_src,代码行数:7,代码来源:avtPDBOptions.C

示例4: GetNASTRANReadOptions

DBOptionsAttributes *
GetNASTRANReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;
    rv->SetInt(NASTRAN_RDOPT_MAT_COUNT, 0); // Undef 
    return rv;
}
开发者ID:EricAlex,项目名称:ThirdParty-dev,代码行数:7,代码来源:avtNASTRANOptions.C

示例5: GetVTKWriteOptions

DBOptionsAttributes *
GetVTKWriteOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;
    rv->SetBool("Binary format", false);
    return rv;
}
开发者ID:HarinarayanKrishnan,项目名称:VisIt26RC_Trunk,代码行数:7,代码来源:avtVTKOptions.C

示例6: GetExtrudedVolWriteOptions

DBOptionsAttributes *
GetExtrudedVolWriteOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;
    rv->SetInt("Time", 0);
    rv->SetInt("nTimes", 1);
    return rv;
}
开发者ID:HarinarayanKrishnan,项目名称:VisIt26RC_Trunk,代码行数:8,代码来源:avtExtrudedVolOptions.C

示例7: GetH5PartReadOptions

DBOptionsAttributes *
GetH5PartReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;
    rv->SetBool("Use FastBit index", true);
    rv->SetBool("Disable domain decomposition", false);
    return rv;
}
开发者ID:burlen,项目名称:visit_vtk_7_src,代码行数:8,代码来源:avtH5PartOptions.C

示例8: GetVsReadOptions

DBOptionsAttributes *
GetVsReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;

    rv->SetBool("Process Data Selections in the Reader", true);

    return rv;
}
开发者ID:HarinarayanKrishnan,项目名称:VisIt28RC_Trunk,代码行数:9,代码来源:avtVsOptions.C

示例9: GetFLASHReadOptions

DBOptionsAttributes *
GetFLASHReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;
    rv->SetBool("Show generating processor instead of refinement level", false);
    rv->SetBool("Use new style curve generation", true);
    rv->SetBool("Set up patch abutment information", true);
    return rv;
}
开发者ID:burlen,项目名称:visit_vtk_7_src,代码行数:9,代码来源:avtFLASHOptions.C

示例10: GetShapefileReadOptions

DBOptionsAttributes *
GetShapefileReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;
    rv->SetBool("Polygons as lines", false);
    rv->SetBool("Tessellate polygons", true);
    rv->SetBool("ESRI Logging", false);
    rv->SetBool("DBF Logging", false);
    return rv;
}
开发者ID:burlen,项目名称:visit_vtk_7_src,代码行数:10,代码来源:avtShapefileOptions.C

示例11: GetTecplotReadOptions

DBOptionsAttributes *
GetTecplotReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;

    std::vector<std::string> types;
    types.push_back("Guess from variable names");
    types.push_back("Specify explicitly (below)");
    rv->SetEnum("Method to determine coordinate axes", 0);
    rv->SetEnumStrings("Method to determine coordinate axes", types);

    rv->SetInt("X axis variable index (or -1 for none)", -1);
    rv->SetInt("Y axis variable index (or -1 for none)", -1);
    rv->SetInt("Z axis variable index (or -1 for none)", -1);

    return rv;
}
开发者ID:HarinarayanKrishnan,项目名称:VisIt28RC_Trunk,代码行数:17,代码来源:avtTecplotOptions.C

示例12: GetImageWriteOptions

DBOptionsAttributes *
GetImageWriteOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;

    //
    // Format options
    //
    rv->SetEnum("Format", 0);
    vector<string> formats;
    formats.push_back("TIFF");  // 0
    formats.push_back("PNG");   // 1
    formats.push_back("JPEG");  // 2
    formats.push_back("BMP");   // 3
    formats.push_back("PNM");   // 4
    rv->SetEnumStrings("Format", formats);

    rv->SetBool("Normalize [0,255]", true);

    rv->SetEnum("TIFF Compression", 0);
    vector<string> compressions;
    compressions.push_back("None");     // 0
    compressions.push_back("PackBits"); // 1
    compressions.push_back("Deflate");  // 2
    rv->SetEnumStrings("TIFF Compression", compressions);

    rv->SetInt("JPEG Quality [0,100]", 100);

    return rv;
}
开发者ID:burlen,项目名称:visit_vtk_7_src,代码行数:30,代码来源:avtImageOptions.C

示例13: SetTypeNames

void
FileOpenOptions::SetFromNode(DataNode *parentNode)
{
    if(parentNode == 0)
        return;

    DataNode *searchNode = parentNode->GetNode("FileOpenOptions");
    if(searchNode == 0)
        return;

    DataNode *node;
    DataNode **children;
    if((node = searchNode->GetNode("typeNames")) != 0)
        SetTypeNames(node->AsStringVector());
    if((node = searchNode->GetNode("typeIDs")) != 0)
        SetTypeIDs(node->AsStringVector());

    // Clear all the DBOptionsAttributess if we got any.
    bool clearedOpenOptions = false;
    // Go through all of the children and construct a new
    // DBOptionsAttributes for each one of them.
    children = searchNode->GetChildren();
    if(children != 0)
    {
        for(int i = 0; i < searchNode->GetNumChildren(); ++i)
        {
            if(children[i]->GetKey() == std::string("DBOptionsAttributes"))
            {
                if (!clearedOpenOptions)
                {
                    ClearOpenOptions();
                    clearedOpenOptions = true;
                }
                DBOptionsAttributes temp;
                temp.SetFromNode(children[i]);
                AddOpenOptions(temp);
            }
        }
    }

    if((node = searchNode->GetNode("Enabled")) != 0)
        SetEnabled(node->AsIntVector());
    if((node = searchNode->GetNode("preferredIDs")) != 0)
        SetPreferredIDs(node->AsStringVector());
}
开发者ID:EricAlex,项目名称:ThirdParty-dev,代码行数:45,代码来源:FileOpenOptions.C

示例14: GetM3DC1ReadOptions

DBOptionsAttributes *
GetM3DC1ReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;

//    rv->SetInt("Number of poloidal planes", 1);

    rv->SetEnum("Mesh refinement", 1);
    vector<string> refinement;
    refinement.push_back("1");
    refinement.push_back("2");
    refinement.push_back("3");
    refinement.push_back("4");
    refinement.push_back("5");
    refinement.push_back("6");
    refinement.push_back("7");
    refinement.push_back("8");
    refinement.push_back("9");
    refinement.push_back("10");
//    refinement.push_back("Variable");
    rv->SetEnumStrings("Mesh refinement", refinement);

    rv->SetEnum("Linear mesh data location", 0);
    vector<string> centering;
    centering.push_back("Node");
    centering.push_back("Element");
    rv->SetEnumStrings("Linear mesh data location", centering);
 
    rv->SetBool("Process Data Selections in the Reader", false);

    return rv;
}
开发者ID:burlen,项目名称:visit_vtk_7_src,代码行数:32,代码来源:avtM3DC1Options.C

示例15: GetPLOT3DReadOptions

DBOptionsAttributes *
GetPLOT3DReadOptions(void)
{
    DBOptionsAttributes *rv = new DBOptionsAttributes;

    rv->SetBool("3D", true);
    rv->SetBool("Multi Grid", false);
    rv->SetString("Solution (Q) File Name", "");
    rv->SetEnum("File Format", 1);
    vector<string> ff;
    ff.push_back("ASCII");
    ff.push_back("C Binary");
    ff.push_back("Fortran Binary");
    rv->SetEnumStrings("File Format", ff);
    rv->SetBool("Big Endian", true);
    rv->SetBool("Double Precision", false);
    rv->SetBool("IBlanking", false);
    return rv;
}
开发者ID:HarinarayanKrishnan,项目名称:VisIt28RC_Trunk,代码行数:19,代码来源:avtPLOT3DOptions.C


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