• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java OrbitBehavior类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.j3d.utils.behaviors.vp.OrbitBehavior的典型用法代码示例。如果您正苦于以下问题:Java OrbitBehavior类的具体用法?Java OrbitBehavior怎么用?Java OrbitBehavior使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OrbitBehavior类属于com.sun.j3d.utils.behaviors.vp包,在下文中一共展示了OrbitBehavior类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: orbitControls

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
/**
 * OrbitBehaviour allows the user to rotate around the scene, and to zoom in
 * and out.
 */
private void orbitControls(Canvas3D c) {
	OrbitBehavior orbit = new OrbitBehavior(c, OrbitBehavior.REVERSE_ALL);
	orbit.setSchedulingBounds(bounds);

	ViewingPlatform vp = su.getViewingPlatform();
	vp.setViewPlatformBehavior(orbit);
}
 
开发者ID:glaudiston,项目名称:project-bianca,代码行数:12,代码来源:Points3DPanel.java


示例2: orbitControls

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
/**
 * allows for navigation with the mouse
 *
 * @param canvas3D the canvas through which shall be navigated
 */
private void orbitControls(Canvas3D canvas3D) {
    //logger.info("orbitControls");
    OrbitBehavior orbit = new OrbitBehavior(canvas3D, OrbitBehavior.REVERSE_ALL);
    orbit.setSchedulingBounds(boundingSphere);
    ViewingPlatform vp = simpleUniverse.getViewingPlatform();
    vp.setViewPlatformBehavior(orbit);
}
 
开发者ID:NeuroBox3D,项目名称:NeuGen,代码行数:13,代码来源:VRLDensityVisualization.java


示例3: orbitControls

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
/**
 * allows for navigation with the mouse
 *
 * @param canvas3D
 *            the canvas through which shall be navigated
 */
private void orbitControls(Canvas3D canvas3D) {
    //logger.info("orbitControls");
    OrbitBehavior orbit = new OrbitBehavior(canvas3D, OrbitBehavior.REVERSE_ALL);
    orbit.setSchedulingBounds(boundingSphere);
    ViewingPlatform vp = simpleUniverse.getViewingPlatform();
    vp.setViewPlatformBehavior(orbit);
}
 
开发者ID:NeuroBox3D,项目名称:NeuGen,代码行数:14,代码来源:NeuGenDensityVisualization.java


示例4: orbitControls

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
/**
 * OrbitBehaviour allows the user to rotate around the scene, and to zoom in
 * and out.
 */
private void orbitControls(Canvas3D c) {
  OrbitBehavior orbit = new OrbitBehavior(c, OrbitBehavior.REVERSE_ALL);
  orbit.setSchedulingBounds(bounds);

  ViewingPlatform vp = su.getViewingPlatform();
  vp.setViewPlatformBehavior(orbit);
}
 
开发者ID:MyRobotLab,项目名称:myrobotlab,代码行数:12,代码来源:Points3DPanel.java


示例5: orbitControls

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
/**
 * �}�E�X������”\�ɂ���
 * 
 * @param canvas �L�����o�X
 */
private void orbitControls(Canvas3D canvas) {
    BoundingSphere bounds = new BoundingSphere(new Point3d(0, 0, 0), 100);

    OrbitBehavior orbit = new OrbitBehavior(canvas,
            OrbitBehavior.REVERSE_ALL);
    orbit.setSchedulingBounds(bounds);

    ViewingPlatform vp = universe.getViewingPlatform();
    vp.setViewPlatformBehavior(orbit);
}
 
开发者ID:aidiary,项目名称:javagame,代码行数:16,代码来源:Main3D.java


示例6: orbitControls

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
/**
 * �}�E�X����
 * 
 * @param canvas
 *            �L�����o�X
 */
private void orbitControls(Canvas3D canvas) {
    OrbitBehavior orbit = new OrbitBehavior(canvas,
            OrbitBehavior.REVERSE_ALL);
    orbit.setSchedulingBounds(bounds); // �e�����y�ڂ��͈͂�ݒ�

    ViewingPlatform vp = universe.getViewingPlatform(); // ���_���擾
    vp.setViewPlatformBehavior(orbit); // ���_���}�E�X�Ő���”\�ɂȂ�
}
 
开发者ID:aidiary,项目名称:javagame,代码行数:15,代码来源:MainPanel.java


示例7: orbitControls

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
/**
 * �}�E�X������”\�ɂ���
 * 
 * @param canvas �L�����o�X
 */
private void orbitControls(Canvas3D canvas) {
    BoundingSphere bounds = new BoundingSphere(new Point3d(), Double.POSITIVE_INFINITY);

    OrbitBehavior orbit = new OrbitBehavior(canvas,
            OrbitBehavior.REVERSE_ALL);
    orbit.setSchedulingBounds(bounds);

    ViewingPlatform vp = universe.getViewingPlatform();
    vp.setViewPlatformBehavior(orbit);
}
 
开发者ID:aidiary,项目名称:javagame,代码行数:16,代码来源:Main.java


示例8: orbitControls

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
private void orbitControls(Canvas3D canvas3D) {
    OrbitBehavior orbit = new OrbitBehavior(canvas3D, OrbitBehavior.REVERSE_ALL);
    orbit.setSchedulingBounds(bounds);
    ViewingPlatform vp = simpleU.getViewingPlatform();
    vp.setViewPlatformBehavior(orbit);
}
 
开发者ID:NeuroBox3D,项目名称:NeuGen,代码行数:7,代码来源:NeuGenVisualization.java


示例9: orbitControls

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
private void orbitControls(Canvas3D canvas3D) {
    OrbitBehavior orbit = new OrbitBehavior(canvas3D, OrbitBehavior.REVERSE_ALL);
    orbit.setSchedulingBounds(new BoundingSphere());
    ViewingPlatform vp = simpleU.getViewingPlatform();
    vp.setViewPlatformBehavior(orbit);
}
 
开发者ID:NeuroBox3D,项目名称:NeuGen,代码行数:7,代码来源:MainApp.java


示例10: init

import com.sun.j3d.utils.behaviors.vp.OrbitBehavior; //导入依赖的package包/类
private void init( )
{
	canvasComponent.setPreferredSize( new Dimension( 400 , 400 ) );
	canvasComponent.setSize( new Dimension( 400 , 400 ) );
	universe = new SimpleUniverse( this.canvas );
	
	frame = new JFrame( );
	frame.getContentPane( ).setLayout( new BorderLayout( ) );
	
	frame.getContentPane( ).add( BorderLayout.CENTER , canvas );
	
	vp = universe.getViewingPlatform( );
	camera = new Camera3D( vp );
	camera.setLocation( new Point3d( 0 , 2 , 0 ) , true );
	camera.lookAt( new Point3d( 0 , 0 , 0 ) , true );
	
	sceneRoot = new BranchGroup( );
	sceneRoot.setCapability( BranchGroup.ALLOW_CHILDREN_EXTEND );
	sceneRoot.setCapability( BranchGroup.ALLOW_CHILDREN_READ );
	sceneRoot.setCapability( BranchGroup.ALLOW_CHILDREN_WRITE );
	axes = new XyzAxes2( .05f , 1f );
	sceneRoot.addChild( axes );
	
	ambientLight = new AmbientLight( new Color3f( .3f , .3f , .3f ) );
	worldBounds = new BoundingSphere( new Point3d( ) , 10000.0 );
	ambientLight.setInfluencingBounds( worldBounds );
	ambientLight.setCapability( Light.ALLOW_STATE_WRITE );
	sceneRoot.addChild( ambientLight );
	
	sceneTrans = new TransformGroup( );
	sceneTrans.setCapability( TransformGroup.ALLOW_TRANSFORM_WRITE );
	sceneTrans.addChild( sceneRoot );
	
	worldRoot = new BranchGroup( );
	worldRoot.addChild( sceneTrans );
	
	orbiter = new OrbitBehavior( universe.getCanvas( ) );
	orbiter.setSchedulingBounds( worldBounds );
	vp.setViewPlatformBehavior( orbiter );
	
	universe.addBranchGraph( worldRoot );
	
	frame.pack( );
}
 
开发者ID:jedwards1211,项目名称:breakout,代码行数:45,代码来源:Sandbox3D.java



注:本文中的com.sun.j3d.utils.behaviors.vp.OrbitBehavior类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DeployRequest类代码示例发布时间:2022-05-22
下一篇:
Java TypeCodeReader类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap