本文整理了Java中com.ardor3d.scenegraph.Node.propageEventUp()
方法的一些代码示例,展示了Node.propageEventUp()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.propageEventUp()
方法的具体详情如下:
包路径:com.ardor3d.scenegraph.Node
类名称:Node
方法名:propageEventUp
暂无
代码示例来源:origin: Renanse/Ardor3D
/**
* Propagate the dirty event up the hierarchy. If a listener is found on the spatial the event is fired and the
* propagation is stopped.
*
* @param spatial
* the spatial
* @param dirtyType
* the dirty type
* @param dirty
* if true, propogate a dirty event, else propogate a clean event
*/
protected void propageEventUp(final Spatial spatial, final DirtyType dirtyType, final boolean dirty) {
boolean consumed = false;
if (_listener != null) {
if (dirty) {
consumed = _listener.spatialDirty(spatial, dirtyType);
} else {
consumed = _listener.spatialClean(spatial, dirtyType);
}
}
if (!consumed && _parent != null) {
_parent.propageEventUp(spatial, dirtyType, dirty);
}
}
代码示例来源:origin: com.ardor3d/ardor3d-core
/**
* Propagate the dirty event up the hierarchy. If a listener is found on the spatial the event is fired and the
* propagation is stopped.
*
* @param spatial
* the spatial
* @param dirtyType
* the dirty type
* @param dirty
* if true, propogate a dirty event, else propogate a clean event
*/
protected void propageEventUp(final Spatial spatial, final DirtyType dirtyType, final boolean dirty) {
boolean consumed = false;
if (_listener != null) {
if (dirty) {
consumed = _listener.spatialDirty(spatial, dirtyType);
} else {
consumed = _listener.spatialClean(spatial, dirtyType);
}
}
if (!consumed && _parent != null) {
_parent.propageEventUp(spatial, dirtyType, dirty);
}
}
内容来源于网络,如有侵权,请联系作者删除!