当前位置: 首页>>代码示例>>Java>>正文


Java BasicViewSetup.getAttribute方法代码示例

本文整理汇总了Java中mpicbg.spim.data.generic.sequence.BasicViewSetup.getAttribute方法的典型用法代码示例。如果您正苦于以下问题:Java BasicViewSetup.getAttribute方法的具体用法?Java BasicViewSetup.getAttribute怎么用?Java BasicViewSetup.getAttribute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mpicbg.spim.data.generic.sequence.BasicViewSetup的用法示例。


在下文中一共展示了BasicViewSetup.getAttribute方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createSetupName

import mpicbg.spim.data.generic.sequence.BasicViewSetup; //导入方法依赖的package包/类
private static String createSetupName( final BasicViewSetup setup )
{
	if ( setup.hasName() )
		return setup.getName();

	String name = "";

	final Angle angle = setup.getAttribute( Angle.class );
	if ( angle != null )
		name += ( name.isEmpty() ? "" : " " ) + "a " + angle.getName();

	final Channel channel = setup.getAttribute( Channel.class );
	if ( channel != null )
		name += ( name.isEmpty() ? "" : " " ) + "c " + channel.getName();

	return name;
}
 
开发者ID:saalfeldlab,项目名称:bigwarp,代码行数:18,代码来源:BigWarpInit.java

示例2: getAngle

import mpicbg.spim.data.generic.sequence.BasicViewSetup; //导入方法依赖的package包/类
protected static Angle getAngle( final BasicViewDescription< ? > vd )
{
	final BasicViewSetup vs = vd.getViewSetup();
	final Angle angle = vs.getAttribute( Angle.class );

	if ( angle == null )
		throw new RuntimeException( "This XML does not have the 'Angle' attribute for their ViewSetup. Cannot continue." );

	return angle;
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:11,代码来源:LegacyLightSheetZ1ImgLoader.java

示例3: getChannel

import mpicbg.spim.data.generic.sequence.BasicViewSetup; //导入方法依赖的package包/类
protected static Channel getChannel( final BasicViewDescription< ? > vd )
{
	final BasicViewSetup vs = vd.getViewSetup();
	final Channel channel = vs.getAttribute( Channel.class );

	if ( channel == null )
		throw new RuntimeException( "This XML does not have the 'Channel' attribute for their ViewSetup. Cannot continue." );

	return channel;
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:11,代码来源:LegacyLightSheetZ1ImgLoader.java

示例4: getIllumination

import mpicbg.spim.data.generic.sequence.BasicViewSetup; //导入方法依赖的package包/类
protected static Illumination getIllumination( final BasicViewDescription< ? > vd )
{
	final BasicViewSetup vs = vd.getViewSetup();
	final Illumination illumination = vs.getAttribute( Illumination.class );

	if ( illumination == null )
		throw new RuntimeException( "This XML does not have the 'Illumination' attribute for their ViewSetup. Cannot continue." );

	return illumination;
}
 
开发者ID:fiji,项目名称:SPIM_Registration,代码行数:11,代码来源:LegacyLightSheetZ1ImgLoader.java


注:本文中的mpicbg.spim.data.generic.sequence.BasicViewSetup.getAttribute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。