bool InstrumentData::isMaterialDirect() { bool out; out = toMaterial() == Direct ? true : false; return(out); }
/** * Get the Materials for the object * * @return the vector of Materials */ std::vector<Material> ObjLoader::materials() const { std::vector<Material> retval; for(auto curr : _materials) { retval.push_back(toMaterial(curr.second.first)); } return retval; }
InstrumentData::InstrumentData(const QString& dataIn) { rawInput = dataIn; qDebug()<< dataIn; QTextStream textin(&rawInput); QString word; while( textin.status() == QTextStream::Ok) { textin >> word; word = cleanWord(word); if(word != "" && word != "Stone") Words.push_back(word); //special case stuff } TestDate = toQDate(); TestTime = toQTime(); TestDateTime = toQDateTime(); TestMaterial = toMaterial(); TestReading = readingToDouble(); TestPercentage = percentageToDouble(); }