本文整理汇总了Java中org.citygml4j.model.gml.geometry.primitives.PosOrPointPropertyOrPointRep.isSetPos方法的典型用法代码示例。如果您正苦于以下问题:Java PosOrPointPropertyOrPointRep.isSetPos方法的具体用法?Java PosOrPointPropertyOrPointRep.isSetPos怎么用?Java PosOrPointPropertyOrPointRep.isSetPos使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.citygml4j.model.gml.geometry.primitives.PosOrPointPropertyOrPointRep
的用法示例。
在下文中一共展示了PosOrPointPropertyOrPointRep.isSetPos方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}