Ejemplo n.º 1
0
QList<RVector> RRayData::getReferencePoints(RS::ProjectionRenderingHint hint) const {
    Q_UNUSED(hint)

    QList<RVector> ret;
    ret.append(basePoint);
    ret.append(getSecondPoint());
    return ret;
}
Ejemplo n.º 2
0
bool RRayData::moveReferencePoint(const RVector& referencePoint,
        const RVector& targetPoint) {
    bool ret = false;
    if (referencePoint.equalsFuzzy(basePoint)) {
        basePoint = targetPoint;
        ret = true;
    }
    if (referencePoint.equalsFuzzy(getSecondPoint())) {
        setSecondPoint(targetPoint);
        ret = true;
    }
    return ret;
}
Ejemplo n.º 3
0
Point3D Line3D::getPoint(int i) const
{
    switch (i)
    {
        case 0:
            return getFirstPoint();
            break;
    
        case 1:
            return getSecondPoint();
            break;

        default:
            return Point3D();
            break;
    }
}
Ejemplo n.º 4
0
void RRayEntity::print(QDebug dbg) const {
    dbg.nospace() << "RRayEntity(";
    REntity::print(dbg);
    dbg.nospace() << ", startPoint: " << getBasePoint() << ", endPoint: "
            << getSecondPoint() << ")";
}
Ejemplo n.º 5
0
RBox RXLine::getBoundingBox() const {
    return RBox(
        RVector::getMinimum(basePoint, getSecondPoint()),
        RVector::getMaximum(basePoint, getSecondPoint())
    );
}