本文整理汇总了Java中org.citygml4j.model.citygml.appearance.TextureCoordinates类的典型用法代码示例。如果您正苦于以下问题:Java TextureCoordinates类的具体用法?Java TextureCoordinates怎么用?Java TextureCoordinates使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TextureCoordinates类属于org.citygml4j.model.citygml.appearance包,在下文中一共展示了TextureCoordinates类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: marshalTexCoordList
点赞 3
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
public void marshalTexCoordList(TexCoordList src, TexCoordListType dest) {
marshalAbstractTextureParameterization(src, dest);
if (src.isSetTextureCoordinates()) {
for (TextureCoordinates textureCoordinates : src.getTextureCoordinates())
dest.getTextureCoordinates().add(marshalTextureCoordinates(textureCoordinates));
}
if (src.isSetGenericApplicationPropertyOfTexCoordList()) {
for (ADEComponent adeComponent : src.getGenericApplicationPropertyOfTexCoordList()) {
JAXBElement<Object> jaxbElement = jaxb.getADEMarshaller().marshalJAXBElement(adeComponent);
if (jaxbElement != null)
dest.get_GenericApplicationPropertyOfTexCoordList().add(jaxbElement);
}
}
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:17,
代码来源:Appearance100Marshaller.java
示例2: unmarshalTexCoordList
点赞 3
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
public void unmarshalTexCoordList(TexCoordListType src, TexCoordList dest) throws MissingADESchemaException {
unmarshalAbstractTextureParameterization(src, dest);
if (src.isSetTextureCoordinates()) {
for (TexCoordListType.TextureCoordinates textureCoordinates : src.getTextureCoordinates())
dest.addTextureCoordinates(unmarshalTextureCoordinates(textureCoordinates));
}
if (src.isSet_GenericApplicationPropertyOfTexCoordList()) {
for (JAXBElement<Object> elem : src.get_GenericApplicationPropertyOfTexCoordList()) {
ADEModelObject ade = jaxb.getADEUnmarshaller().unmarshal(elem);
if (ade != null)
dest.addGenericApplicationPropertyOfTexCoordList(ade);
}
}
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:17,
代码来源:Appearance100Unmarshaller.java
示例3: getTypeMapper
点赞 2
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
private TypeMapper<Object> getTypeMapper() {
if (typeMapper == null) {
lock.lock();
try {
if (typeMapper == null) {
typeMapper = TypeMapper.create()
.with(Appearance.class, this::marshalAppearance)
.with(AppearanceMember.class, this::marshalAppearanceProperty)
.with(AppearanceProperty.class, this::marshalAppearanceProperty)
.with(GeoreferencedTexture.class, this::marshalGeoreferencedTexture)
.with(ParameterizedTexture.class, this::marshalParameterizedTexture)
.with(SurfaceDataProperty.class, this::marshalSurfaceDataProperty)
.with(TexCoordGen.class, this::marshalTexCoordGen)
.with(TexCoordList.class, this::marshalTexCoordList)
.with(TextureAssociation.class, this::marshalTextureAssociation)
.with(TextureCoordinates.class, this::marshalTextureCoordinates)
.with(TextureType.class, this::marshalTextureType)
.with(WorldToTexture.class, this::marshalWorldToTexture)
.with(WrapMode.class, this::marshalWrapMode)
.with(X3DMaterial.class, this::marshalX3DMaterial);
}
} finally {
lock.unlock();
}
}
return typeMapper;
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:29,
代码来源:Appearance100Marshaller.java
示例4: marshalTextureCoordinates
点赞 2
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
public void marshalTextureCoordinates(TextureCoordinates src, TexCoordListType.TextureCoordinates dest) {
if (src.isSetRing())
dest.setRing(src.getRing());
if (src.isSetValue())
dest.setValue(src.getValue());
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:8,
代码来源:Appearance100Marshaller.java
示例5: getTypeMapper
点赞 2
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
private TypeMapper<Object> getTypeMapper() {
if (typeMapper == null) {
lock.lock();
try {
if (typeMapper == null) {
typeMapper = TypeMapper.create()
.with(Appearance.class, this::marshalAppearance)
.with(AppearanceMember.class, this::marshalAppearanceMember)
.with(AppearanceProperty.class, this::marshalAppearanceProperty)
.with(GeoreferencedTexture.class, this::marshalGeoreferencedTexture)
.with(ParameterizedTexture.class, this::marshalParameterizedTexture)
.with(SurfaceDataProperty.class, this::marshalSurfaceDataProperty)
.with(TexCoordGen.class, this::marshalTexCoordGen)
.with(TexCoordList.class, this::marshalTexCoordList)
.with(TextureAssociation.class, this::marshalTextureAssociation)
.with(TextureCoordinates.class, this::marshalTextureCoordinates)
.with(TextureType.class, this::marshalTextureType)
.with(WorldToTexture.class, this::marshalWorldToTexture)
.with(WrapMode.class, this::marshalWrapMode)
.with(X3DMaterial.class, this::marshalX3DMaterial);
}
} finally {
lock.unlock();
}
}
return typeMapper;
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:29,
代码来源:Appearance200Marshaller.java
示例6: getTypeMapper
点赞 2
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
private CheckedTypeMapper<CityGML> getTypeMapper() {
if (typeMapper == null) {
lock.lock();
try {
if (typeMapper == null) {
typeMapper = CheckedTypeMapper.<CityGML>create()
.with(AppearanceType.class, this::unmarshalAppearance)
.with(AppearancePropertyType.class, this::unmarshalAppearanceProperty)
.with(GeoreferencedTextureType.class, this::unmarshalGeoreferencedTexture)
.with(ParameterizedTextureType.class, this::unmarshalParameterizedTexture)
.with(SurfaceDataPropertyType.class, this::unmarshalSurfaceDataProperty)
.with(TexCoordGenType.class, this::unmarshalTexCoordGen)
.with(TexCoordListType.class, this::unmarshalTexCoordList)
.with(TextureAssociationType.class, this::unmarshalTextureAssociation)
.with(TexCoordListType.TextureCoordinates.class, this::unmarshalTextureCoordinates)
.with(TextureTypeType.class, this::unmarshalTextureType)
.with(TexCoordGenType.WorldToTexture.class, this::unmarshalWorldToTexture)
.with(WrapModeType.class, this::unmarshalWrapMode)
.with(X3DMaterialType.class, this::unmarshalX3DMaterial)
.with(JAXBElement.class, this::unmarshal);
}
} finally {
lock.unlock();
}
}
return typeMapper;
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:29,
代码来源:Appearance100Unmarshaller.java
示例7: unmarshalTextureCoordinates
点赞 2
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
public void unmarshalTextureCoordinates(TexCoordListType.TextureCoordinates src, TextureCoordinates dest) {
if (src.isSetRing())
dest.setRing(src.getRing());
if (src.isSetValue())
dest.setValue(src.getValue());
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:8,
代码来源:Appearance100Unmarshaller.java
示例8: getTypeMapper
点赞 2
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
private CheckedTypeMapper<CityGML> getTypeMapper() {
if (typeMapper == null) {
lock.lock();
try {
if (typeMapper == null) {
typeMapper = CheckedTypeMapper.<CityGML>create()
.with(AppearanceType.class, this::unmarshalAppearance)
.with(AppearancePropertyType.class, this::unmarshalAppearanceProperty)
.with(AppearancePropertyElement.class, this::unmarshalAppearanceProperty)
.with(GeoreferencedTextureType.class, this::unmarshalGeoreferencedTexture)
.with(ParameterizedTextureType.class, this::unmarshalParameterizedTexture)
.with(SurfaceDataPropertyType.class, this::unmarshalSurfaceDataProperty)
.with(TexCoordGenType.class, this::unmarshalTexCoordGen)
.with(TexCoordListType.class, this::unmarshalTexCoordList)
.with(TextureAssociationType.class, this::unmarshalTextureAssociation)
.with(TexCoordListType.TextureCoordinates.class, this::unmarshalTextureCoordinates)
.with(TextureTypeType.class, this::unmarshalTextureType)
.with(TexCoordGenType.WorldToTexture.class, this::unmarshalWorldToTexture)
.with(WrapModeType.class, this::unmarshalWrapMode)
.with(X3DMaterialType.class, this::unmarshalX3DMaterial)
.with(FeaturePropertyType.class, this::unmarshalAppearanceProperty)
.with(JAXBElement.class, this::unmarshal);
}
} finally {
lock.unlock();
}
}
return typeMapper;
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:31,
代码来源:Appearance200Unmarshaller.java
示例9: visit
点赞 2
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
@Override
public void visit(ParameterizedTexture parameterizedTexture) {
if (state == ResolverState.GET_SURFACE_DATA) {
TextureType texture = app.marshalParameterizedTexture(parameterizedTexture);
if (!texture.isSetImage() || !texture.isSetType())
return;
int sequenceNumber = addTexture(texture);
for (TextureAssociation association : parameterizedTexture.getTarget()) {
AbstractTextureParameterization parameterization = association.getTextureParameterization();
if (parameterization instanceof TexCoordList) {
TexCoordList texCoordList = (TexCoordList)parameterization;
if (texCoordList.isSetTextureCoordinates()) {
for (TextureCoordinates coordinates : texCoordList.getTextureCoordinates()) {
if (coordinates.isSetRing() && coordinates.isSetValue()) {
SurfaceDataInfo info = new SurfaceDataInfo(theme, sequenceNumber, parameterizedTexture.getIsFront(), coordinates.getValue());
addSurfaceData(clipGMLId(coordinates.getRing()), info);
}
}
}
}
}
}
super.visit(parameterizedTexture);
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:28,
代码来源:AppearanceResolver.java
示例10: unmarshalParameterizedTexture
点赞 2
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public void unmarshalParameterizedTexture(AbstractTextureObject src, Map<Integer, List<AbstractSurface>> surfaces, AbstractCityObject parent) {
Appearance appearance = getOrCreateAppearance(src.getTheme(), parent);
for (Entry<Integer, List<AbstractSurface>> entry : surfaces.entrySet()) {
TextureType textureType = textures != null ? textures.get(entry.getKey()) : null;
if (textureType == null)
continue;
ParameterizedTexture texture = getOrCreateParameterizedTexture(textureType, entry.getKey(), appearance);
if (texture == null)
continue;
for (AbstractSurface surface : entry.getValue()) {
TexCoordList texCoordList = new TexCoordList();
List<List<Integer>> values = (List<List<Integer>>)surface.getLocalProperty(CityJSONUnmarshaller.TEXTURE_COORDINATES);
int[] i = new int[]{-1};
surface.accept(new GeometryWalker() {
public void visit(LinearRing linearRing) {
i[0]++;
if (i[0] < values.size()) {
List<Integer> value = values.get(i[0]);
if (value == null || value.size() < 2)
return;
List<Double> coords = getTextureVertices(value);
if (coords.isEmpty())
return;
if (!linearRing.isSetId())
linearRing.setId(gmlIdManager.generateUUID());
TextureCoordinates textureCoordinates = new TextureCoordinates();
textureCoordinates.setRing(new StringBuilder("#").append(linearRing.getId()).toString());
textureCoordinates.setValue(coords);
texCoordList.addTextureCoordinates(textureCoordinates);
}
}
});
if (texCoordList.isSetTextureCoordinates()) {
if (!surface.isSetId())
surface.setId(gmlIdManager.generateUUID());
TextureAssociation target = new TextureAssociation();
target.setUri(new StringBuilder("#").append(surface.getId()).toString());
target.setTextureParameterization(texCoordList);
texture.addTarget(target);
}
}
}
}
开发者ID:citygml4j,
项目名称:citygml4j,
代码行数:55,
代码来源:AppearanceUnmarshaller.java
示例11: CG_TextureCoordinates
点赞 1
import org.citygml4j.model.citygml.appearance.TextureCoordinates; //导入依赖的package包/类
public CG_TextureCoordinates(TextureCoordinates textureCoordinates) {
if (textureCoordinates.isSetRing()) {
this.ring = textureCoordinates.getRing();
}
if (textureCoordinates.isSetValue()) {
this.getValue().addAll(textureCoordinates.getValue());
}
}
开发者ID:IGNF,
项目名称:geoxygene,
代码行数:15,
代码来源:CG_TextureCoordinates.java