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

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

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

Node.removeFromParent介绍

暂无

代码示例

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

public CompoundInteractWidget withMultiPlanarHandle() {
  MoveMultiPlanarWidget widget = (MoveMultiPlanarWidget) _widgets
      .get(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY);
  if (widget != null) {
    widget.getHandle().removeFromParent();
  }
  widget = new MoveMultiPlanarWidget(_filters);
  _widgets.put(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY, widget);
  _handle.attachChild(widget.getHandle());
  return this;
}

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

public CompoundInteractWidget withMultiPlanarHandle(final double extent) {
  MoveMultiPlanarWidget widget = (MoveMultiPlanarWidget) _widgets
      .get(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY);
  if (widget != null) {
    widget.getHandle().removeFromParent();
  }
  widget = new MoveMultiPlanarWidget(_filters, extent);
  _widgets.put(CompoundInteractWidget.MOVE_MULTIPLANAR_KEY, widget);
  _handle.attachChild(widget.getHandle());
  return this;
}

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

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

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

public CompoundInteractWidget withPlanarHandle(final MovePlane plane, final double radius, final double height,
    final ReadOnlyColorRGBA color) {
  MovePlanarWidget widget = (MovePlanarWidget) _widgets.get(CompoundInteractWidget.MOVE_PLANAR_KEY);
  if (widget != null) {
    widget.getHandle().removeFromParent();
  }
  widget = new MovePlanarWidget(_filters).withPlane(plane).withDefaultHandle(radius, height, color);
  _widgets.put(CompoundInteractWidget.MOVE_PLANAR_KEY, widget);
  _handle.attachChild(widget.getHandle());
  return this;
}

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

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

相关文章