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

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

java 2次浏览

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

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

示例1: getElementMapper

点赞 3

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
private TypeMapper<JAXBElement<?>> getElementMapper() {
	if (elementMapper == null) {
		lock.lock();
		try {
			if (elementMapper == null) {
				elementMapper = TypeMapper.<JAXBElement<?>>create()
						.with(AppearanceMember.class, this::createAppearanceMember)
						.with(GeoreferencedTexture.class, this::createGeoreferencedTexture)
						.with(ParameterizedTexture.class, this::createParameterizedTexture)
						.with(TexCoordGen.class, this::createTexCoordGen)
						.with(TexCoordList.class, this::createTexCoordList)
						.with(X3DMaterial.class, this::createX3DMaterial);
			}
		} finally {
			lock.unlock();
		}
	}

	return elementMapper;
}
 

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

示例2: marshalTexCoordList

点赞 3

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的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

示例3: getElementMapper

点赞 3

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
private TypeMapper<JAXBElement<?>> getElementMapper() {
	if (elementMapper == null) {
		lock.lock();
		try {
			if (elementMapper == null) {
				elementMapper = TypeMapper.<JAXBElement<?>>create()
						.with(Appearance.class, this::createAppearance)
						.with(AppearanceMember.class, this::createAppearanceMember)
						.with(GeoreferencedTexture.class, this::createGeoreferencedTexture)
						.with(ParameterizedTexture.class, this::createParameterizedTexture)
						.with(TexCoordGen.class, this::createTexCoordGen)
						.with(TexCoordList.class, this::createTexCoordList)
						.with(X3DMaterial.class, this::createX3DMaterial);
			}
		} finally {
			lock.unlock();
		}
	}

	return elementMapper;
}
 

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

示例4: unmarshalTexCoordList

点赞 3

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的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

示例5: apply

点赞 2

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
public T apply(TexCoordList texCoordList) {
	T object = apply((AbstractTextureParameterization)texCoordList);
	if (object != null)
		return object;

	if (texCoordList.isSetGenericApplicationPropertyOfTexCoordList()) {
		for (ADEComponent ade : new ArrayList<ADEComponent>(texCoordList.getGenericApplicationPropertyOfTexCoordList())) {
			object = apply(ade);
			if (object != null)
				return object;
		}
	}

	return null;
}
 

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

示例6: visit

点赞 2

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
public void visit(TexCoordList texCoordList) {
	visit((AbstractTextureParameterization)texCoordList);

	if (texCoordList.isSetGenericApplicationPropertyOfTexCoordList())
		for (ADEComponent ade : new ArrayList<ADEComponent>(texCoordList.getGenericApplicationPropertyOfTexCoordList()))
			visit(ade);
}
 

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

示例7: getTypeMapper

点赞 2

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的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

示例8: getTypeMapper

点赞 2

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的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

示例9: assignGenericProperty

点赞 2

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
public boolean assignGenericProperty(ADEGenericElement genericProperty, QName substitutionGroup, CityGML dest) {
	String name = substitutionGroup.getLocalPart();
	boolean success = true;

	if (dest instanceof AbstractSurfaceData && name.equals("_GenericApplicationPropertyOfSurfaceData"))
		((AbstractSurfaceData)dest).addGenericApplicationPropertyOfSurfaceData(genericProperty);
	else if (dest instanceof AbstractTexture && name.equals("_GenericApplicationPropertyOfTexture"))
		((AbstractTexture)dest).addGenericApplicationPropertyOfTexture(genericProperty);
	else if (dest instanceof AbstractTextureParameterization && name.equals("_GenericApplicationPropertyOfTextureParameterization"))
		((AbstractTextureParameterization)dest).addGenericApplicationPropertyOfTextureParameterization(genericProperty);
	else if (dest instanceof Appearance && name.equals("_GenericApplicationPropertyOfAppearance"))
		((Appearance)dest).addGenericApplicationPropertyOfAppearance(genericProperty);
	else if (dest instanceof GeoreferencedTexture && name.equals("_GenericApplicationPropertyOfGeoreferencedTexture"))
		((GeoreferencedTexture)dest).addGenericApplicationPropertyOfGeoreferencedTexture(genericProperty);
	else if (dest instanceof ParameterizedTexture && name.equals("_GenericApplicationPropertyOfParameterizedTexture"))
		((ParameterizedTexture)dest).addGenericApplicationPropertyOfParameterizedTexture(genericProperty);
	else if (dest instanceof TexCoordGen && name.equals("_GenericApplicationPropertyOfTexCoordGen"))
		((TexCoordGen)dest).addGenericApplicationPropertyOfTexCoordGen(genericProperty);
	else if (dest instanceof TexCoordList && name.equals("_GenericApplicationPropertyOfTexCoordList"))
		((TexCoordList)dest).addGenericApplicationPropertyOfTexCoordList(genericProperty);
	else if (dest instanceof X3DMaterial && name.equals("_GenericApplicationPropertyOfX3DMaterial"))
		((X3DMaterial)dest).addGenericApplicationPropertyOfX3DMaterial(genericProperty);
	else
		success = false;

	return success;
}
 

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

示例10: visit

点赞 2

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的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

示例11: generateAbstractTextureParameterization

点赞 2

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
public static CG_AbstractTextureParameterization generateAbstractTextureParameterization(
		AbstractTextureParameterization tPT) {

	if (tPT instanceof TexCoordList) {

		return new CG_TexCoordList((TexCoordList) tPT);

	} else if (tPT instanceof TexCoordGen) {
		return new CG_TexCoordGen((TexCoordGen) tPT);
	}

	System.out.println(
			"Classe non gérée :  AbstractTextureParameterizationType " + tPT.getClass().getCanonicalName());
	return null;

}
 

开发者ID:IGNF,
项目名称:geoxygene,
代码行数:17,
代码来源:CG_AbstractTextureParameterization.java

示例12: createTexCoordList

点赞 2

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
private JAXBElement<?> createTexCoordList(TexCoordList src) {
	return app.createTexCoordList(marshalTexCoordList(src));
}
 

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

示例13: unmarshalParameterizedTexture

点赞 2

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的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

示例14: CG_TexCoordList

点赞 1

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
public CG_TexCoordList(TexCoordList tPT) {
  if (tPT.isSetTextureCoordinates()) {

    int nbTC = tPT.getTextureCoordinates().size();

    for (int i = 0; i < nbTC; i++) {

      this.textureCoordinates.add(new CG_TextureCoordinates(tPT
          .getTextureCoordinates().get(i)));

    }

  }

}
 

开发者ID:IGNF,
项目名称:geoxygene,
代码行数:16,
代码来源:CG_TexCoordList.java

示例15: apply

点赞 1

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
public T apply(TexCoordList texCoordList); 

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

示例16: visit

点赞 1

import org.citygml4j.model.citygml.appearance.TexCoordList; //导入依赖的package包/类
public void visit(TexCoordList texCoordList); 

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


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