Esempio n. 1
0
std::string
GetVisItMovieTemplateBaseClass()
{
    std::string templateFile(GetVisItResourcesDirectory(VISIT_RESOURCES_MOVIETEMPLATES));
    templateFile += VISIT_SLASH_STRING;
    templateFile += "visitmovietemplate.py";

    debug1 << "GetVisItMovieTemplateBaseClass = " << templateFile.c_str() << endl;
    return templateFile;
}
bool
ColorTableManager::ImportColorTables(ColorTableAttributes *cta)
{
    //
    // Read the user's home VisIt directory and import all of the color tables.
    //
    ctAtts = cta;
    std::string ctdir(GetVisItResourcesDirectory(VISIT_RESOURCES_COLORTABLES));
    bool r1 = ReadAndProcessDirectory(ctdir, ImportHelper,
                                      (void*)this, false);
    bool r2 = ReadAndProcessDirectory(GetUserVisItDirectory(), ImportHelper,
                                      (void*)this, false);
    return r1 || r2;
}
Esempio n. 3
0
MovieTemplateFileList
GetVisItMovieTemplates()
{
    // Get the names of the VisIt template files in the installed version.
    MovieTemplateFileList fileList;
    void *cb_data[2];
    cb_data[0] = (void *)&fileList;
    cb_data[1] = (void *)0;
    std::vector<std::string> templateFiles;
    std::string templateDir(GetVisItResourcesDirectory(VISIT_RESOURCES_MOVIETEMPLATES));
    debug1 << "GetVisItMovieTemplates: Trying to read system movie templates from " 
           << templateDir.c_str() << endl;
    ReadAndProcessDirectory(templateDir, AddMovieTemplateCB, (void *)cb_data, true);

    // Get the names of the VisIt template files that the user may have.
    templateDir = GetUserVisItDirectory() + "movietemplates";
    cb_data[1] = (void *)1;
    debug1 << "GetVisItMovieTemplates: Trying to read user movie templates from " 
           << templateDir.c_str() << endl;
    ReadAndProcessDirectory(templateDir, AddMovieTemplateCB, (void *)cb_data, true);

    return fileList;
}
std::string
GetVisItResourcesFile(VisItResourceDirectoryType t, const std::string &filename)
{
    return (GetVisItResourcesDirectory(t) + VISIT_SLASH_STRING) + filename;
}