コード例 #1
0
ファイル: eapsuta12port.cpp プロジェクト: bchjoerni/mlab
void eapsUta12Port::answerGetIdn( unsigned char* msgValues )
{
    _id = msgValues[4];
    _initValueCounter++;
    LOG(INFO) << "eaps uta 12 answer: get IDN: " << _id;
    getMaxValues();
}
コード例 #2
0
ファイル: StBndBox.cpp プロジェクト: KindDragon/sview
void StBndBox::enlarge(const StGLVec3& theNewPnt) {
    if(isVoid()) {
        // setup the first point
        myMin = theNewPnt;
        myMax = theNewPnt;
        StBndContainer::setDefined();
    } else {
        myMin = getMinValues(myMin, theNewPnt);
        myMax = getMaxValues(myMax, theNewPnt);
    }
}
コード例 #3
0
ファイル: StBndBox.cpp プロジェクト: KindDragon/sview
void StBndBox::enlarge(const StArray<StGLVec3>& thePoints) {
    if(thePoints.size() == 0) {
        return;
    }
    if(isVoid()) {
        // setup the first point
        myMin = thePoints.getFirst();
        myMax = thePoints.getFirst();
        StBndContainer::setDefined();
    }
    for(size_t aPntId = 1; aPntId < thePoints.size(); ++aPntId) {
        const StGLVec3& aPnt = thePoints[aPntId];
        myMin = getMinValues(myMin, aPnt);
        myMax = getMaxValues(myMax, aPnt);
    }
}