com.ardor3d.scenegraph.Node.removeFromParent()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(236)

本文整理了Java中com.ardor3d.scenegraph.Node.removeFromParent()方法的一些代码示例,展示了Node.removeFromParent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.removeFromParent()方法的具体详情如下:
包路径:com.ardor3d.scenegraph.Node
类名称:Node
方法名:removeFromParent

Node.removeFromParent介绍

暂无

代码示例

代码示例来源:origin: Renanse/Ardor3D

  1. public CompoundInteractWidget withMultiPlanarHandle() {
  2. MoveMultiPlanarWidget widget = (MoveMultiPlanarWidget) _widgets
  3. .get(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY);
  4. if (widget != null) {
  5. widget.getHandle().removeFromParent();
  6. }
  7. widget = new MoveMultiPlanarWidget(_filters);
  8. _widgets.put(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY, widget);
  9. _handle.attachChild(widget.getHandle());
  10. return this;
  11. }

代码示例来源:origin: Renanse/Ardor3D

  1. public CompoundInteractWidget withMultiPlanarHandle(final double extent) {
  2. MoveMultiPlanarWidget widget = (MoveMultiPlanarWidget) _widgets
  3. .get(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY);
  4. if (widget != null) {
  5. widget.getHandle().removeFromParent();
  6. }
  7. widget = new MoveMultiPlanarWidget(_filters, extent);
  8. _widgets.put(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY, widget);
  9. _handle.attachChild(widget.getHandle());
  10. return this;
  11. }

代码示例来源:origin: Renanse/Ardor3D

  1. public CompoundInteractWidget withPlanarHandle(final MovePlane plane, final ReadOnlyColorRGBA color) {
  2. MovePlanarWidget widget = (MovePlanarWidget) _widgets.get(CompoundInteractWidget.MOVE_PLANAR_KEY);
  3. if (widget != null) {
  4. widget.getHandle().removeFromParent();
  5. }
  6. widget = new MovePlanarWidget(_filters).withPlane(plane).withDefaultHandle(.5, .25, color);
  7. _widgets.put(CompoundInteractWidget.MOVE_PLANAR_KEY, widget);
  8. _handle.attachChild(widget.getHandle());
  9. return this;
  10. }

代码示例来源:origin: Renanse/Ardor3D

  1. public CompoundInteractWidget withPlanarHandle(final MovePlane plane, final double radius, final double height,
  2. final ReadOnlyColorRGBA color) {
  3. MovePlanarWidget widget = (MovePlanarWidget) _widgets.get(CompoundInteractWidget.MOVE_PLANAR_KEY);
  4. if (widget != null) {
  5. widget.getHandle().removeFromParent();
  6. }
  7. widget = new MovePlanarWidget(_filters).withPlane(plane).withDefaultHandle(radius, height, color);
  8. _widgets.put(CompoundInteractWidget.MOVE_PLANAR_KEY, widget);
  9. _handle.attachChild(widget.getHandle());
  10. return this;
  11. }

代码示例来源:origin: Renanse/Ardor3D

  1. protected void createJointAttachment(final JointNode jointChildNode, final Node node, final Node subNode) {
  2. final AttachmentPoint attach = new AttachmentPoint("attach-" + node.getName(), (short) 0, subNode,
  3. new Transform(subNode.getTransform()));
  4. _dataCache.addAttachmentPoint(jointChildNode.getJoint(), attach);
  5. // we will attach to scene instead.
  6. subNode.removeFromParent();
  7. }

相关文章