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; }
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; }