void SessionParams::setOutput(QString targetDirectory, QStringList imgList, QStringList transList, int imagesInOneFile) { qDebug() << "Output directory:" << targetDirectory << "Grabbed images:" << imgList << "Grabbed transformations:" << transList << "Chunk size:" << imagesInOneFile; setOutputDir(targetDirectory); chunkSize = imagesInOneFile; images = QStringList(imgList); transformations = QStringList(transList); }
PlotAlignmentValidation::PlotAlignmentValidation(const char *inputFile,std::string legendName, int lineColor, int lineStyle) { setOutputDir("$TMPDIR"); setTreeBaseDir(); sourcelist = NULL; loadFileList( inputFile, legendName, lineColor, lineStyle); moreThanOneSource=false; }
//------------------------------------------------------------------------------ PlotAlignmentValidation::PlotAlignmentValidation(const char *inputFile,std::string legendName, int lineColor, int lineStyle) { setOutputDir("$TMPDIR"); setTreeBaseDir(); sourcelist = NULL; loadFileList( inputFile, legendName, lineColor, lineStyle); moreThanOneSource=false; useFit_ = false; // Force ROOT to use scientific notation even with smaller datasets TGaxis::SetMaxDigits(4); // (This sets a static variable: correct in .eps-images but must be set // again manually when viewing the .root-files) }
std::shared_ptr<BuildItem> CodeFilter::transform( TransformSet &xform ) const { std::shared_ptr<BuildItem> ret = xform.getTransform( this ); if ( ret ) return ret; DEBUG( "transform CodeFilter " << getName() ); ret = std::make_shared<BuildItem>( getName(), getDir() ); ret->setUseName( false ); VariableSet buildvars; extractVariables( buildvars ); ret->setVariables( std::move( buildvars ) ); if ( myTool ) { ItemPtr genExe = myTool->getGeneratedExecutable(); if ( genExe ) { std::shared_ptr<BuildItem> exeDep = genExe->transform( xform ); ret->addDependency( DependencyType::IMPLICIT, exeDep ); } for ( const ItemPtr &i: myItems ) { // huh, we can't call transform on these because then // cpp files we're going to filter will be transformed to // .o files. auto inp = std::make_shared<BuildItem>( i->getName(), i->getDir() ); inp->setUseName( false ); inp->setOutputDir( getDir() ); inp->setOutputs( { i->getName() } ); ret->addDependency( DependencyType::EXPLICIT, inp ); } ret->setTool( myTool ); auto outd = getDir()->reroot( xform.getArtifactDir() ); ret->setOutputDir( outd ); ret->setVariable( "current_output_dir", outd->fullpath() ); ret->setOutputs( myOutputs ); } xform.recordTransform( this, ret ); return ret; }
void GhostScr::exec() { QString command = "gs"; QStringList args; args << "-SDEVICE=jpeg" << "-r1200x1200" << "-sPAPERSIZE=letter" << "-dNOPAUSE" << "-dBATCH"; if ((!getStopPage().isEmpty()) || (getStopPage().toInt() > 0)) { if (getStartPage().toInt() == 0) this->setStartPage("1"); args << QString("-dFirstPage=").append(getStartPage()) << QString("-dLastPage=").append(getStopPage()); } if (!getOutputDir().endsWith("/")) setOutputDir(getOutputDir().append('/')); setOutputPrefix(getOutputDir().append("page")); args << QString("-sOutputFile=").append(getOutputPrefix()).append("_%04d.jpg"); args << "--" << this->getSourcePDF(); setOutputExtension("jpg"); execInternal(command, args); }
/** Directories are default initialized to working directory. */ Directories::Directories() { setOutputDir(""); setInputDir(""); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void PMFileGenerator::outputDirChanged(const QString& outputDir) { // qDebug() << "PMFileGenerator::outputDirChanged" << "\n"; setOutputDir(outputDir); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void PMFileGenerator::outputDirChanged(const QString &outputDir) { // std::cout << "PMFileGenerator::outputDirChanged" << std::endl; setOutputDir(outputDir); }