• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SolidProperty类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.citygml4j.model.gml.geometry.primitives.SolidProperty的典型用法代码示例。如果您正苦于以下问题:Java SolidProperty类的具体用法?Java SolidProperty怎么用?Java SolidProperty使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SolidProperty类属于org.citygml4j.model.gml.geometry.primitives包,在下文中一共展示了SolidProperty类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: calcBoundingBox

点赞 3

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public BoundingBox calcBoundingBox() {
	BoundingBox bbox = new BoundingBox();
	
	if (isSetSolidMember()) {
		for (SolidProperty solidProperty : getSolidMember())
			if (solidProperty.isSetSolid())
				bbox.update(solidProperty.getSolid().calcBoundingBox());
	}

	if (isSetSolidMembers()) {
		SolidArrayProperty solidArrayProperty = getSolidMembers();

		if (solidArrayProperty.isSetSolid())
			for (AbstractSolid abstractSolid : solidArrayProperty.getSolid())
				bbox.update(abstractSolid.calcBoundingBox());
	}
	
	return bbox;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:20,
代码来源:MultiSolid.java

示例2: copyTo

点赞 3

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
	MultiSolid copy = (target == null) ? new MultiSolid() : (MultiSolid)target;
	super.copyTo(copy, copyBuilder);

	if (isSetSolidMember()) {
		for (SolidProperty part : solidMember) {
			SolidProperty copyPart = (SolidProperty)copyBuilder.copy(part);
			copy.addSolidMember(copyPart);

			if (part != null && copyPart == part)
				part.setParent(this);
		}
	}

	if (isSetSolidMembers()) {
		copy.setSolidMembers((SolidArrayProperty)copyBuilder.copy(solidMembers));
		if (copy.getSolidMembers() == solidMembers)
			solidMembers.setParent(this);
	}

	return copy;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:24,
代码来源:MultiSolid.java

示例3: copyTo

点赞 3

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
@Override
public Object copyTo(Object target, CopyBuilder copyBuilder) {
	CompositeSolid copy = (target == null) ? new CompositeSolid() : (CompositeSolid)target;
	super.copyTo(copy, copyBuilder);

	if (isSetSolidMember()) {
		for (SolidProperty part : solidMember) {
			SolidProperty copyPart = (SolidProperty)copyBuilder.copy(part);
			copy.addSolidMember(copyPart);

			if (part != null && copyPart == part)
				part.setParent(this);
		}
	}

	return copy;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:18,
代码来源:CompositeSolid.java

示例4: apply

点赞 3

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public T apply(MultiSolid multiSolid) {
	T object = apply((AbstractGeometricAggregate)multiSolid);
	if (object != null)
		return object;

	if (multiSolid.isSetSolidMember()) {
		for (SolidProperty solidProperty : new ArrayList<SolidProperty>(multiSolid.getSolidMember())) {
			object = apply(solidProperty);
			if (object != null)
				return object;
		}
	}

	if (multiSolid.isSetSolidMembers()) {
		object = apply(multiSolid.getSolidMembers());
		if (object != null)
			return object;
	}

	return null;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:22,
代码来源:GMLFunctionWalker.java

示例5: calcBoundingBox

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public BoundingBox calcBoundingBox() {
	BoundingBox bbox = new BoundingBox();
	
	if (isSetSolidMember()) {
		for (SolidProperty solidProperty : getSolidMember())
			if (solidProperty.isSetSolid())
				bbox.update(solidProperty.getSolid().calcBoundingBox());
	}
	
	return bbox;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:12,
代码来源:CompositeSolid.java

示例6: visit

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public void visit(MultiSolid multiSolid) {
	visit((AbstractGeometricAggregate)multiSolid);

	if (multiSolid.isSetSolidMember())
		for (SolidProperty solidProperty : new ArrayList<SolidProperty>(multiSolid.getSolidMember()))
			visit(solidProperty);

	if (multiSolid.isSetSolidMembers())
		visit(multiSolid.getSolidMembers());
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:11,
代码来源:GMLWalker.java

示例7: marshalCompositeSolid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public CompositeSolidType marshalCompositeSolid(CompositeSolid src) {
	CompositeSolidType dest = gml.createCompositeSolidType();
	marshalAbstractSolid(src, dest);

	if (src.isSetSolidMember()) {
		for (SolidProperty member : src.getSolidMember())
			dest.getSolidMember().add(marshalSolidProperty(member));
	}

	return dest;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:12,
代码来源:GMLMarshaller.java

示例8: marshalMultiSolid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public MultiSolidType marshalMultiSolid(MultiSolid src) {
	MultiSolidType dest = gml.createMultiSolidType();
	marshalAbstractGeometricAggregate(src, dest);

	if (src.isSetSolidMember()) {
		for (SolidProperty member : src.getSolidMember())
			dest.getSolidMember().add(marshalSolidProperty(member));
	}

	if (src.isSetSolidMembers())
		dest.setSolidMembers(marshalSolidArrayProperty(src.getSolidMembers()));

	return dest;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:15,
代码来源:GMLMarshaller.java

示例9: marshalSolidProperty

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public SolidPropertyType marshalSolidProperty(SolidProperty src) {
	SolidPropertyType dest = gml.createSolidPropertyType();

	if (src.isSetSolid()) {
		JAXBElement<?> elem = jaxb.marshalJAXBElement(src.getSolid());
		if (elem != null && elem.getValue() instanceof AbstractSolidType)
			dest.set_Solid((JAXBElement<? extends AbstractSolidType>)elem);
	}

	if (src.isSetRemoteSchema())
		dest.setRemoteSchema(src.getRemoteSchema());

	if (src.isSetType())
		dest.setType(TypeType.fromValue(src.getType().getValue()));

	if (src.isSetHref())
		dest.setHref(src.getHref());

	if (src.isSetRole())
		dest.setRole(src.getRole());

	if (src.isSetArcrole())
		dest.setArcrole(src.getArcrole());

	if (src.isSetTitle())
		dest.setTitle(src.getTitle());

	if (src.isSetShow())
		dest.setShow(ShowType.fromValue(src.getShow().getValue()));

	if (src.isSetActuate())
		dest.setActuate(ActuateType.fromValue(src.getActuate().getValue()));

	return dest;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:37,
代码来源:GMLMarshaller.java

示例10: unmarshalSolidProperty

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public SolidProperty unmarshalSolidProperty(SolidPropertyType src) {
	SolidProperty dest = new SolidProperty();

	if (src.isSet_Solid()) {
		try {
			ModelObject abstractSolid = jaxb.unmarshal(src.get_Solid());
			if (abstractSolid instanceof AbstractSolid)
				dest.setSolid((AbstractSolid)abstractSolid);
		} catch (MissingADESchemaException e) {
			//
		}
	}

	if (src.isSetRemoteSchema())
		dest.setRemoteSchema(src.getRemoteSchema());

	if (src.isSetType())
		dest.setType(XLinkType.fromValue(src.getType().value()));

	if (src.isSetHref())
		dest.setHref(src.getHref());

	if (src.isSetRole())
		dest.setRole(src.getRole());

	if (src.isSetArcrole())
		dest.setArcrole(src.getArcrole());

	if (src.isSetTitle())
		dest.setTitle(src.getTitle());

	if (src.isSetShow())
		dest.setShow(XLinkShow.fromValue(src.getShow().value()));

	if (src.isSetActuate())
		dest.setActuate(XLinkActuate.fromValue(src.getActuate().value()));

	return dest;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:40,
代码来源:GMLUnmarshaller.java

示例11: unmarshalCompositeSolid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public CompositeSolid unmarshalCompositeSolid(CompositeSolidType src, AbstractCityObject cityObject) {
	CompositeSolid dest = new CompositeSolid();		
	for (Solid solid : unmarshalSolidCollection(src, cityObject))
		dest.addSolidMember(new SolidProperty(solid));

	return dest;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:8,
代码来源:GMLUnmarshaller.java

示例12: unmarshalMultiSolid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public MultiSolid unmarshalMultiSolid(MultiSolidType src, AbstractCityObject cityObject) {
	MultiSolid dest = new MultiSolid();		
	for (Solid solid : unmarshalSolidCollection(src, cityObject))
		dest.addSolidMember(new SolidProperty(solid));

	return dest;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:8,
代码来源:GMLUnmarshaller.java

示例13: getLod4Solid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public SolidProperty getLod4Solid() {
	return lod4Solid;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:4,
代码来源:BridgeRoom.java

示例14: setLod4Solid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public void setLod4Solid(SolidProperty lod4Solid) {
	if (lod4Solid != null)
		lod4Solid.setParent(this);
	
	this.lod4Solid = lod4Solid;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:7,
代码来源:BridgeRoom.java

示例15: getLod1Solid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public SolidProperty getLod1Solid() {
	return lod1Solid;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:4,
代码来源:AbstractBridge.java

示例16: getLod2Solid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public SolidProperty getLod2Solid() {
	return lod2Solid;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:4,
代码来源:AbstractBridge.java

示例17: getLod3Solid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public SolidProperty getLod3Solid() {
	return lod3Solid;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:4,
代码来源:AbstractBridge.java

示例18: setLod1Solid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public void setLod1Solid(SolidProperty lod1Solid) {
	if (lod1Solid != null)
		lod1Solid.setParent(this);
	
	this.lod1Solid = lod1Solid;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:7,
代码来源:AbstractBridge.java

示例19: setLod2Solid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public void setLod2Solid(SolidProperty lod2Solid) {
	if (lod2Solid != null)
		lod2Solid.setParent(this);
	
	this.lod2Solid = lod2Solid;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:7,
代码来源:AbstractBridge.java

示例20: setLod3Solid

点赞 2

import org.citygml4j.model.gml.geometry.primitives.SolidProperty; //导入依赖的package包/类
public void setLod3Solid(SolidProperty lod3Solid) {
	if (lod3Solid != null)
		lod3Solid.setParent(this);
	
	this.lod3Solid = lod3Solid;
}
 

开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:7,
代码来源:AbstractBridge.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)