Examples of computeSurfaceOrientationAtPosition()


Examples of gov.nasa.worldwind.globes.Globe.computeSurfaceOrientationAtPosition()

        try
        {
            if ((mask & SegmentPlane.LEFT) != 0)
            {
                Matrix modelview = view.getModelviewMatrix();
                modelview = modelview.multiply(globe.computeSurfaceOrientationAtPosition(
                    locations[0].getLatitude(), locations[0].getLongitude(), altitudes[0]));

                this.drawBorder(dc, renderInfo, modelview, size, height);
            }
        }
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computeSurfaceOrientationAtPosition()

        double sizeScale = this.computeSizeForPixels(view, point, 1.0, minSize, maxSize);

        // Apply the control point offset in the local coordinate system at the control point's position. Treat offset
        // coordinates as pixel sizes, so the final coordinate must also be scaled by the eye distance. Use the
        // original point to compute the scale factor, so that the offset doesn't change the control point's size.
        Matrix transformToPosition = globe.computeSurfaceOrientationAtPosition(controlPointInfo.position);
        Vec4 offset = attributes.getOffset();
        offset = offset.multiply3(sizeScale);
        offset = offset.transformBy3(transformToPosition);

        // Add the adjusted offset to the Cartesian point, and recompute the control point's offset geographic position.
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computeSurfaceOrientationAtPosition()

   protected Vec4 computeSurfacePoint(OrbitView view, Angle heading, Angle pitch)
   {
      Globe globe = wwd.getModel().getGlobe();
      // Compute transform to be applied to north pointing Y so that it would point in the view direction
      // Move coordinate system to view center point
      Matrix transform = globe.computeSurfaceOrientationAtPosition(view.getCenterPosition());
      // Rotate so that the north pointing axes Y will point in the look at direction
      transform = transform.multiply(Matrix.fromRotationZ(heading.multiply(-1)));
      transform = transform.multiply(Matrix.fromRotationX(Angle.NEG90.add(pitch)));
      // Compute forward vector
      Vec4 forward = Vec4.UNIT_Y.transformBy4(transform);
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computeSurfaceOrientationAtPosition()

    public static List<LatLon> s_createSquareInViewport(WorldWindow wwd, Position position, Angle heading,
        double sizeInMeters)
    {
        Globe globe = wwd.getModel().getGlobe();
        Matrix transform = Matrix.IDENTITY;
        transform = transform.multiply(globe.computeSurfaceOrientationAtPosition(position));
        transform = transform.multiply(Matrix.fromRotationZ(heading.multiply(-1)));

        double widthOver2 = sizeInMeters / 2.0;
        double heightOver2 = sizeInMeters / 2.0;
        Vec4[] points = new Vec4[]
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computeSurfaceOrientationAtPosition()

    public static List<Position> s_createPositionSquareInViewport(WorldWindow wwd, Position position, Angle heading,
        double sizeInMeters)
    {
        Globe globe = wwd.getModel().getGlobe();
        Matrix transform = Matrix.IDENTITY;
        transform = transform.multiply(globe.computeSurfaceOrientationAtPosition(position));
        transform = transform.multiply(Matrix.fromRotationZ(heading.multiply(-1)));

        double widthOver2 = sizeInMeters / 2.0;
        double heightOver2 = sizeInMeters / 2.0;
        double depthOver2 = sizeInMeters / 2.0;
View Full Code Here

Examples of gov.nasa.worldwind.globes.Globe.computeSurfaceOrientationAtPosition()

    public static List<Position> s_createPositionTriangleInViewport(WorldWindow wwd, Position position, Angle heading,
        double sizeInMeters)
    {
        Globe globe = wwd.getModel().getGlobe();
        Matrix transform = Matrix.IDENTITY;
        transform = transform.multiply(globe.computeSurfaceOrientationAtPosition(position));
        transform = transform.multiply(Matrix.fromRotationZ(heading.multiply(-1)));

        double widthOver2 = sizeInMeters / 2.0;
        double heightOver2 = sizeInMeters / 2.0;
        double depthOver2 = sizeInMeters / 2.0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.