コード例 #1
0
ファイル: instrumentdata.cpp プロジェクト: ndtmike/Aggralinx
bool InstrumentData::isMaterialDirect()
{
    bool out;
    out = toMaterial() == Direct ? true : false;

    return(out);
}
コード例 #2
0
ファイル: ObjLoader.cpp プロジェクト: bschaffer13/RayTracer
    /**
     * 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;
    }
コード例 #3
0
ファイル: instrumentdata.cpp プロジェクト: ndtmike/Aggralinx
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();
}