当前位置: 首页>>代码示例>>Java>>正文


Java OrbitBehavior.setSchedulingBounds方法代码示例

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


在下文中一共展示了OrbitBehavior.setSchedulingBounds方法的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.setSchedulingBounds方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。