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


Java PosOrPointPropertyOrPointRep类代码示例

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


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

示例1: marshalLineStringSegment

import org.citygml4j.model.gml.geometry.primitives.PosOrPointPropertyOrPointRep; //导入依赖的package包/类
public LineStringSegmentType marshalLineStringSegment(LineStringSegment src) {
	LineStringSegmentType dest = gml.createLineStringSegmentType();
	marshalAbstractCurveSegment(src, dest);

	if (src.isSetInterpolation())
		dest.setInterpolation(marshalCurveInterpolation(src.getInterpolation()));

	if (src.isSetPosList())
		dest.setPosList(marshalDirectPositionList(src.getPosList()));

	if (src.isSetCoordinates())
		dest.setCoordinates(marshalCoordinates(src.getCoordinates()));

	if (src.isSetPosOrPointPropertyOrPointRep()) {
		for (PosOrPointPropertyOrPointRep item : src.getPosOrPointPropertyOrPointRep()) {
			if (item.isSetPos())
				dest.getPosOrPointPropertyOrPointRep().add(marshalJAXBElement(item.getPos()));
			else if (item.isSetPointProperty())
				dest.getPosOrPointPropertyOrPointRep().add(marshalJAXBElement(item.getPointProperty()));
			else if (item.isSetPointRep())
				dest.getPosOrPointPropertyOrPointRep().add(marshalJAXBElement(item.getPointRep()));
		}
	}

	return dest;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:27,代码来源:GMLMarshaller.java

示例2: marshalLinearRing

import org.citygml4j.model.gml.geometry.primitives.PosOrPointPropertyOrPointRep; //导入依赖的package包/类
public LinearRingType marshalLinearRing(LinearRing src) {
	LinearRingType dest = gml.createLinearRingType();
	marshalAbstractRing(src, dest);

	if (src.isSetPosList())
		dest.setPosList(marshalDirectPositionList(src.getPosList()));

	if (src.isSetCoordinates())
		dest.setCoordinates(marshalCoordinates(src.getCoordinates()));

	if (src.isSetCoord()) {
		for (Coord coord : src.getCoord())
			dest.getCoord().add(marshalCoord(coord));
	}

	if (src.isSetPosOrPointPropertyOrPointRep()) {
		for (PosOrPointPropertyOrPointRep item : src.getPosOrPointPropertyOrPointRep()) {
			if (item.isSetPos())
				dest.getPosOrPointPropertyOrPointRep().add(marshalJAXBElement(item.getPos()));
			else if (item.isSetPointProperty())
				dest.getPosOrPointPropertyOrPointRep().add(marshalJAXBElement(item.getPointProperty()));
			else if (item.isSetPointRep())
				dest.getPosOrPointPropertyOrPointRep().add(marshalJAXBElement(item.getPointRep()));
		}
	}

	return dest;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:29,代码来源:GMLMarshaller.java

示例3: unmarshalLinearRing

import org.citygml4j.model.gml.geometry.primitives.PosOrPointPropertyOrPointRep; //导入依赖的package包/类
public LinearRing unmarshalLinearRing(LinearRingType src) {
	LinearRing dest = new LinearRing();
	unmarshalAbstractRing(src, dest);

	if (src.isSetPosList())
		dest.setPosList(unmarshalDirectPositionList(src.getPosList()));

	if (src.isSetCoordinates())
		dest.setCoordinates(unmarshalCoordinates(src.getCoordinates()));

	if (src.isSetCoord()) {
		for (CoordType coord : src.getCoord())
			dest.addCoord(unmarshalCoord(coord));
	}

	if (src.isSetPosOrPointPropertyOrPointRep()) {
		for (JAXBElement<?> elem : src.getPosOrPointPropertyOrPointRep()) {
			try {
				ModelObject controlPoint = jaxb.unmarshal(elem);
				if (controlPoint instanceof DirectPosition)
					dest.addControlPoint(new PosOrPointPropertyOrPointRep((DirectPosition)controlPoint));
				else if (controlPoint instanceof PointRep)
					dest.addControlPoint(new PosOrPointPropertyOrPointRep((PointRep)controlPoint));
				else if (controlPoint instanceof PointProperty)
					dest.addControlPoint(new PosOrPointPropertyOrPointRep((PointProperty)controlPoint));
			} catch (MissingADESchemaException e) {
				//
			}
		}
	}

	return dest;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:34,代码来源:GMLUnmarshaller.java

示例4: unmarshalLineStringSegment

import org.citygml4j.model.gml.geometry.primitives.PosOrPointPropertyOrPointRep; //导入依赖的package包/类
public LineStringSegment unmarshalLineStringSegment(LineStringSegmentType src) {
	LineStringSegment dest = new LineStringSegment();
	unmarshalAbstractCurveSegment(src, dest);

	if (src.isSetInterpolation())
		dest.setInterpolation(unmarshalCurveInterpolation(src.getInterpolation()));

	if (src.isSetPosList())
		dest.setPosList(unmarshalDirectPositionList(src.getPosList()));

	if (src.isSetCoordinates())
		dest.setCoordinates(unmarshalCoordinates(src.getCoordinates()));

	if (src.isSetPosOrPointPropertyOrPointRep()) {
		for (JAXBElement<?> elem : src.getPosOrPointPropertyOrPointRep()) {
			try{
				ModelObject controlPoint = jaxb.unmarshal(elem);
				if (controlPoint instanceof DirectPosition)
					dest.addControlPoint(new PosOrPointPropertyOrPointRep((DirectPosition)controlPoint));
				else if (controlPoint instanceof PointRep)
					dest.addControlPoint(new PosOrPointPropertyOrPointRep((PointRep)controlPoint));
				else if (controlPoint instanceof PointProperty)
					dest.addControlPoint(new PosOrPointPropertyOrPointRep((PointProperty)controlPoint));
			} catch (MissingADESchemaException e) {
				//
			}
		}
	}

	return dest;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:32,代码来源:GMLUnmarshaller.java


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