Search in sources :

Example 1 with PerspectivePoint

use of com.ramussoft.pb.idef.elements.SectorRefactor.PerspectivePoint in project ramus by Vitaliy-Yakovchuk.

the class MovingArea method fillMovingArea.

private void fillMovingArea() {
    final SectorRefactor.PerspectivePoint pp = new SectorRefactor.PerspectivePoint();
    pp.x = mp.x;
    pp.y = mp.y;
    if (getPointChangingType() == SectorRefactor.TYPE_END) {
        pp.borderType = MovingFunction.RIGHT;
        PerspectivePoint point = refactor.getPoint(SectorRefactor.TYPE_START);
        if (point != null)
            pp.y = point.y;
    } else {
        pp.borderType = MovingFunction.LEFT;
        PerspectivePoint point = refactor.getPoint(SectorRefactor.TYPE_END);
        if (point != null)
            pp.y = point.y;
    }
    int pointChangingType = getPointChangingType();
    pp.type = pointChangingType;
    refactor.setPoint(pp);
}
Also used : SectorRefactor(com.ramussoft.pb.idef.elements.SectorRefactor) PerspectivePoint(com.ramussoft.pb.idef.elements.SectorRefactor.PerspectivePoint) PerspectivePoint(com.ramussoft.pb.idef.elements.SectorRefactor.PerspectivePoint) PerspectivePoint(com.ramussoft.pb.idef.elements.SectorRefactor.PerspectivePoint) FloatPoint(com.dsoft.pb.types.FloatPoint) Crosspoint(com.ramussoft.pb.Crosspoint) Point(com.ramussoft.pb.idef.elements.Point)

Aggregations

FloatPoint (com.dsoft.pb.types.FloatPoint)1 Crosspoint (com.ramussoft.pb.Crosspoint)1 Point (com.ramussoft.pb.idef.elements.Point)1 SectorRefactor (com.ramussoft.pb.idef.elements.SectorRefactor)1 PerspectivePoint (com.ramussoft.pb.idef.elements.SectorRefactor.PerspectivePoint)1