本文整理汇总了Java中com.jme3.post.Filter类的典型用法代码示例。如果您正苦于以下问题:Java Filter类的具体用法?Java Filter怎么用?Java Filter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Filter类属于com.jme3.post包,在下文中一共展示了Filter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: addFilter
import com.jme3.post.Filter; //导入依赖的package包/类
public void addFilter(final Filter filter) {
SceneApplication.getApplication().enqueue(new Callable<Object>() {
public Object call() throws Exception {
FilterPostProcessor fp = getFilterPostProcessor();
if (fp != null)
fp.addFilter(filter);
return null;
}
});
setModified();
refresh();
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:14,代码来源:FilterPostProcessorNode.java
示例2: removeFilter
import com.jme3.post.Filter; //导入依赖的package包/类
public void removeFilter(final Filter filter) {
SceneApplication.getApplication().enqueue(new Callable<Object>() {
public Object call() throws Exception {
FilterPostProcessor fp = getFilterPostProcessor();
if (fp != null)
fp.removeFilter(filter);
return null;
}
});
setModified();
refresh();
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:15,代码来源:FilterPostProcessorNode.java
示例3: createNodes
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
protected Node[] createNodes(Object t) {
Filter filter = (Filter) t;
//get JmeFilter, the only FilterNode spi
FilterNode di = Lookup.getDefault().lookup(FilterNode.class);
Node[] ret = di.createNodes(filter, dataObject, readOnly);
return ret;
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:9,代码来源:FilterPostProcessorNode.java
示例4: AbstractFilterNode
import com.jme3.post.Filter; //导入依赖的package包/类
public AbstractFilterNode(Filter filter) {
super(Children.LEAF);
this.filter = filter;
setName(filter.getName());
icon = IconList.eyeOpen.getImage();
// setIconBaseWithExtension(IconList.eyeOpen.);
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:8,代码来源:AbstractFilterNode.java
示例5: createSheet
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
protected Sheet createSheet() {
Sheet sheet = super.createSheet();
Sheet.Set set = Sheet.createPropertiesSet();
set.setDisplayName("Filter");
set.setName("Filter");
Filter obj = filter;
if (obj == null) {
return sheet;
}
createFields(Filter.class, set, obj);
sheet.put(set);
return sheet;
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:16,代码来源:AbstractFilterNode.java
示例6: actionPerformed
import com.jme3.post.Filter; //导入依赖的package包/类
public void actionPerformed(ActionEvent ev) {
SceneApplication.getApplication().enqueue(new Callable<Void>() {
public Void call() throws Exception {
Filter filter=context.getFilter();
filter.setEnabled(!filter.isEnabled());
Logger.getLogger(EnableFiterAction.class.getName()).info( (filter.isEnabled()?"Enabled":"Disabled")+" "+filter.getName());
context.propertyChange("PROP_USER_CHANGE", "Enabled", !filter.isEnabled(), filter.isEnabled());
return null;
}
});
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:15,代码来源:EnableFiterAction.java
示例7: addFilterUndo
import com.jme3.post.Filter; //导入依赖的package包/类
private void addFilterUndo(final FilterPostProcessor fpp, final Filter filter) {
//add undo
if (fpp != null && filter != null) {
Lookup.getDefault().lookup(SceneUndoRedoManager.class).addEdit(this, new AbstractUndoableSceneEdit() {
@Override
public void sceneUndo() throws CannotUndoException {
fpp.removeFilter(filter);
}
@Override
public void sceneRedo() throws CannotRedoException {
fpp.addFilter(filter);
}
@Override
public void awtRedo() {
filterNode.refresh();
}
@Override
public void awtUndo() {
filterNode.refresh();
}
});
}
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:28,代码来源:NewFilterPopup.java
示例8: reorder
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
public void reorder(final int[] perm) {
SceneApplication.getApplication().enqueue(new Callable<Object>() {
public Object call() throws Exception {
List<Filter> filters = new ArrayList<Filter>();
for (Iterator<Filter> it = fppNode.getFilterPostProcessor().getFilterIterator(); it.hasNext();) {
Filter f = it.next();
filters.add(f);
}
fppNode.getFilterPostProcessor().removeAllFilters();
for (int i = 0; i < perm.length; i++) {
fppNode.getFilterPostProcessor().addFilter(filters.get(perm[i]));
}
return null;
}
});
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
((FilterChildren) fppNode.getChildren()).reorderNotify();
((FilterChildren) fppNode.getChildren()).doRefresh();
}
});
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:28,代码来源:FilterIndexSupport.java
示例9: doCreateFilter
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
protected Filter doCreateFilter(FilterPostProcessor parent, Object configuration) {
if (configuration != null) {
WizardDescriptor wiz = (WizardDescriptor) configuration;
return new DirectionalLightShadowFilter(SceneApplication.getApplication().getAssetManager(), (Integer)wiz.getProperty("shadowMapSize"), (Integer)wiz.getProperty("nbSplits"));
}
return null;
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:9,代码来源:NewDirectionalLightShadowFilterAction.java
示例10: doCreateFilter
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
protected Filter doCreateFilter(FilterPostProcessor parent, Object configuration) {
if (configuration != null) {
WizardDescriptor wiz = (WizardDescriptor) configuration;
return new SpotLightShadowFilter(SceneApplication.getApplication().getAssetManager(), (Integer)wiz.getProperty("shadowMapSize"));
}
return null;
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:9,代码来源:NewSpotLightShadowFilterAction.java
示例11: doCreateFilter
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
protected Filter doCreateFilter(FilterPostProcessor parent, Object configuration) {
if (configuration != null) {
WizardDescriptor wiz = (WizardDescriptor) configuration;
return new PointLightShadowFilter(SceneApplication.getApplication().getAssetManager(), (Integer)wiz.getProperty("shadowMapSize"));
}
return null;
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:9,代码来源:NewPointLightShadowFilterAction.java
示例12: doCreateFilter
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
protected Filter doCreateFilter(FilterPostProcessor parent, Object configuration) {
if (configuration != null) {
WizardDescriptor wiz = (WizardDescriptor) configuration;
if (wiz.getProperty("mode").equals("Scene")) {
return new BloomFilter(BloomFilter.GlowMode.Scene);
} else {
return new BloomFilter(BloomFilter.GlowMode.Objects);
}
}
return null;
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:13,代码来源:NewBloomFilterAction.java
示例13: addFilter
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
public void addFilter(Filter filter) {
// 需要保证translucentBucketFilter放在FilterPostProcessor的最后面。
defaultFilterPostProcessor.removeFilter(translucentBucketFilter);
defaultFilterPostProcessor.addFilter(filter);
defaultFilterPostProcessor.addFilter(translucentBucketFilter);
}
开发者ID:huliqing,项目名称:LuoYing,代码行数:8,代码来源:AbstractScene.java
示例14: getShadowFilter
import com.jme3.post.Filter; //导入依赖的package包/类
private DirectionalLightShadowFilter getShadowFilter(){
for(Filter f : RendererPlatform.getFilterPostProcessor().getFilterList()) {
if(f instanceof DirectionalLightShadowFilter) {
return (DirectionalLightShadowFilter)f;
}
}
return null;
}
开发者ID:meltzow,项目名称:supernovae,代码行数:9,代码来源:LightProc.java
示例15: addFilter
import com.jme3.post.Filter; //导入依赖的package包/类
public void addFilter(final Filter filter) {
SceneApplication.getApplication().enqueue(new Callable<Object>() {
public Object call() throws Exception {
getFilterPostProcessor().addFilter(filter);
return null;
}
});
setModified();
refresh();
}
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:12,代码来源:FilterPostProcessorNode.java
示例16: removeFilter
import com.jme3.post.Filter; //导入依赖的package包/类
public void removeFilter(final Filter filter) {
SceneApplication.getApplication().enqueue(new Callable<Object>() {
public Object call() throws Exception {
getFilterPostProcessor().removeFilter(filter);
return null;
}
});
setModified();
refresh();
}
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:12,代码来源:FilterPostProcessorNode.java
示例17: createNodes
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
protected Node[] createNodes(Object t) {
Filter filter = (Filter) t;
for (FilterNode di : Lookup.getDefault().lookupAll(FilterNode.class)) {
if (di.getExplorerObjectClass().getName().equals(filter.getClass().getName())) {
Node[] ret = di.createNodes(filter, dataObject, readOnly);
if (ret != null) {
return ret;
}
}
}
return new Node[]{};
}
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:14,代码来源:FilterPostProcessorNode.java
示例18: AbstractFilterNode
import com.jme3.post.Filter; //导入依赖的package包/类
public AbstractFilterNode(Filter filter) {
super(Children.LEAF);
this.filter = filter;
setName(filter.getName());
icon = ImageUtilities.loadImage(ICON_ENABLED);
setIconBaseWithExtension(ICON_ENABLED);
}
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:9,代码来源:AbstractFilterNode.java
示例19: actionPerformed
import com.jme3.post.Filter; //导入依赖的package包/类
public void actionPerformed(ActionEvent ev) {
SceneApplication.getApplication().enqueue(new Callable<Void>() {
public Void call() throws Exception {
Filter filter=context.getFilter();
filter.setEnabled(!filter.isEnabled());
Logger.getLogger(EnableFiterAction.class.getName()).info( (filter.isEnabled()?"Enabled":"Disabled")+" "+filter.getName());
context.propertyChange("Enabled", !filter.isEnabled(), filter.isEnabled());
return null;
}
});
}
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:15,代码来源:EnableFiterAction.java
示例20: reorder
import com.jme3.post.Filter; //导入依赖的package包/类
@Override
public void reorder(final int[] perm) {
SceneApplication.getApplication().enqueue(new Callable<Object>() {
public Object call() throws Exception {
List<Filter> filters = new ArrayList<Filter>();
for (Iterator<Filter> it = fppNode.getFilterPostProcessor().getFilterIterator(); it.hasNext();) {
Filter f = it.next();
filters.add(f);
}
System.err.println("reordering");
fppNode.getFilterPostProcessor().removeAllFilters();
for (int i = 0; i < perm.length; i++) {
fppNode.getFilterPostProcessor().addFilter(filters.get(perm[i]));
}
return null;
}
});
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
((FilterChildren) fppNode.getChildren()).reorderNotify();
((FilterChildren) fppNode.getChildren()).doRefresh();
}
});
}
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:29,代码来源:FilterIndexSupport.java
注:本文中的com.jme3.post.Filter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论