Java panoramagl热点移动到下一个panorama
这是全景图的代码,其中圆柱体全景图与热点一起工作,但如何通过单击它转到下一个全景图这是我的代码,热点可以单击但不能移动到下一个全景图有人能帮我吗Java panoramagl热点移动到下一个panorama,java,android,xml,Java,Android,Xml,这是全景图的代码,其中圆柱体全景图与热点一起工作,但如何通过单击它转到下一个全景图这是我的代码,热点可以单击但不能移动到下一个全景图有人能帮我吗 PLManager plManager; PLHotspot hotspot; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); plManager = new PLManager(th
PLManager plManager;
PLHotspot hotspot;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
plManager = new PLManager(this);
plManager.setContentView(R.layout.activity_main);
plManager.onCreate();
PLCylindricalPanorama panorama = new PLCylindricalPanorama();
panorama.getCamera().lookAt(0.0f, 200.0f);
panorama.getCamera().setPitchRange(-30.0f, 30.0f);
panorama.setImage(new PLImage(PLUtils.getBitmap(this, R.raw.z), false));
plManager.setPanorama(panorama);
panorama.addHotspot(new PLHotspot(1, new PLImage(PLUtils.getBitmap(this, R.raw.hotspot), false), -10.0f, 180.0f, 1.05f, 1.05f));
hotspot.getOnClick();
}`
您需要重写以下方法
@Override
public void onDidClickHotspot(PLIView view, PLIHotspot hotspot, CGPoint screenPoint,
PLPosition scene3DPoint) {
Toast.makeText(view.getActivity().getApplicationContext(),
String.format("You select the hotspot with ID %d",
hotspot.getIdentifier()), Toast.LENGTH_SHORT).show();
}
感谢您的回复,但为时已晚(延迟2个月)。如果您想要快速回复,请雇佣开发人员并为其工作付费。如果可能的话,来自社区的免费回应是:-)雇主需要更多的文化。把这个告诉你的文化永远受欢迎,兄弟。甚至晚了10年。让软件行业有文化,不要担心日期;-)顺便说一句,我把这件事告诉了穆罕默德