相关疑难解决方法(0)

Worldwind PointPlacemark Pitch

我试图弄清楚为什么PointPlacemarkAttributes中的setPitch似乎无法正常工作.

我相信PointPlacemark.java中的这个JOGL代码是出错的地方:

        Double heading = getActiveAttributes().getHeading();
        Double pitch = getActiveAttributes().getPitch();

        // Adjust heading to be relative to globe or screen
        if (heading != null)
        {
            if (AVKey.RELATIVE_TO_GLOBE.equals(this.getActiveAttributes().getHeadingReference()))
                heading = dc.getView().getHeading().degrees - heading;
            else
                heading = -heading;
        }

        // Apply the heading and pitch if specified.
        if (heading != null || pitch != null)
        {
            gl.glTranslated(xscale / 2, yscale / 2, 0);
            if (pitch != null)
                gl.glRotated(pitch, 1, 0, 0);
            if (heading != null)
                gl.glRotated(heading, 0, 0, …
Run Code Online (Sandbox Code Playgroud)

java geometry jogl worldwind

6
推荐指数
1
解决办法
202
查看次数

标签 统计

geometry ×1

java ×1

jogl ×1

worldwind ×1