Package org.movsim.roadmappings

Examples of org.movsim.roadmappings.RoadMappingLine


                final RoadMappingPolyLine polyLine = (RoadMappingPolyLine) roadMapping;
                final Iterator<RoadMappingLine> iterator = polyLine.iterator();
                if (!iterator.hasNext())
                    return;
                final GeneralPath path = new GeneralPath();
                RoadMappingLine line1 = iterator.next();
                posTheta = line1.startPos(lateralOffset);
                path.moveTo(posTheta.x, posTheta.y);
                posTheta = line1.endPos(lateralOffset);
                path.lineTo(posTheta.x, posTheta.y);
                while (iterator.hasNext()) {
                    line1 = iterator.next();
                    posTheta = line1.endPos(lateralOffset);
                    path.lineTo(posTheta.x, posTheta.y);
                }
                g.draw(path);
                return;
            }
View Full Code Here

TOP

Related Classes of org.movsim.roadmappings.RoadMappingLine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.