本文整理汇总了Java中javax.media.j3d.Node.setPickable方法的典型用法代码示例。如果您正苦于以下问题:Java Node.setPickable方法的具体用法?Java Node.setPickable怎么用?Java Node.setPickable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.media.j3d.Node
的用法示例。
在下文中一共展示了Node.setPickable方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create3D
import javax.media.j3d.Node; //导入方法依赖的package包/类
void create3D(float size) {
super.create3D(true);
// lamp body
onColor = new Color3f(0.1f, 1f, 1f);
offColor = new Color3f(0.3f, 0.3f, 0.3f);
blinkColor = new Color3f(1f, 0.3f, 0.3f);
Appearance appear = new Appearance();
material = new Material();
material.setAmbientColor(offColor);
material.setDiffuseColor(offColor);
material.setCapability(Material.ALLOW_COMPONENT_WRITE);
material.setSpecularColor(offColor);
material.setColorTarget(Material.DIFFUSE);
appear.setMaterial(material);
Node node = new com.sun.j3d.utils.geometry.Cylinder(size, size, appear);
node.setCollidable(false);
node.setPickable(false);
addChild(node);
}
示例2: create3D
import javax.media.j3d.Node; //导入方法依赖的package包/类
void create3D(float size) {
super.create3D(true);
// lamp body
onColor = new Color3f(0.1f, 1f, 1f);
offColor = new Color3f(0.3f, 0.3f, 0.3f);
blinkColor = new Color3f(1f, 0.3f, 0.3f);
Appearance appear = new Appearance();
material = new Material();
material.setAmbientColor(offColor);
material.setDiffuseColor(offColor);
material.setCapability(Material.ALLOW_COMPONENT_WRITE);
material.setSpecularColor(offColor);
material.setColorTarget(Material.DIFFUSE);
appear.setMaterial(material);
Node node = new com.sun.j3d.utils.geometry.Cylinder(size, size, appear);
node.setCollidable(false);
node.setPickable(false);
addChild(node);
}
示例3: create3D
import javax.media.j3d.Node; //导入方法依赖的package包/类
void create3D(float radius) {
super.create3D(true);
// body
if (radius > 0) {
Color3f color = new Color3f(0.8f, 0.8f, 0.0f);
Appearance appear = new Appearance();
appear.setMaterial(new Material(color, black, color, white, 100.0f));
Node node = new Sphere(radius, appear);
node.setCollidable(false);
node.setPickable(false);
addChild(node);
}
}
示例4: create3D
import javax.media.j3d.Node; //导入方法依赖的package包/类
void create3D(float radius) {
super.create3D(true);
// body
if (radius > 0) {
Color3f color = new Color3f(0.8f, 0.8f, 0.0f);
Appearance appear = new Appearance();
appear.setMaterial(new Material(color, black, color, white, 100.0f));
Node node = new Sphere(radius, appear);
node.setCollidable(false);
node.setPickable(false);
addChild(node);
}
}