bool ReaderPlugin::getTimeDomain(OfxRangeD& range) { range.min = getFirstTime(); range.max = getLastTime(); TUTTLE_LOG_INFO("[Reader plugin] Time Domain : " << range.min << " to " << range.max); return true; }
std::ostream& Sequence::getCout( std::ostream& os ) const { bfs::path dir; if( showAbsolutePath() ) { dir = bfs::absolute( _directory ); dir = boost::regex_replace( dir.string(), boost::regex( "/\\./" ), "/" ); } os << std::left; if( showProperties() ) { os << std::setw( PROPERTIES_WIDTH ) << "s "; } if( showRelativePath() ) { dir = _directory; dir = boost::regex_replace( dir.string(), boost::regex( "/\\./" ), "/" ); os << std::setw( NAME_WIDTH_WITH_DIR ) << _kColorSequence + ( dir / getStandardPattern() ).string() + _kColorStd; } else { os << std::setw( NAME_WIDTH ) << _kColorSequence + ( dir / getStandardPattern() ).string() + _kColorStd; } os << " [" << getFirstTime() << ":" << getLastTime(); if( getStep() != 1 ) os << "x" << getStep(); os << "] " << getNbFiles() << " file" << ( ( getNbFiles() > 1 ) ? "s" : "" ); if( hasMissingFile() ) { os << ", " << _kColorError << getNbMissingFiles() << " missing file" << ( ( getNbMissingFiles() > 1 ) ? "s" : "" ) << _kColorStd; } return os; }
std::vector<boost::filesystem::path> Sequence::getFiles() const { std::vector<boost::filesystem::path> allPaths; for( Time t = getFirstTime(); t <= getLastTime(); t += getStep() ) { allPaths.push_back( getAbsoluteFilenameAt( t ) ); } return allPaths; }
bool ReaderPlugin::getTimeDomain( OfxRangeD& range ) { range.min = getFirstTime(); range.max = getLastTime(); return true; }