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


Java IfcSpatialStructureElement类代码示例

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


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

示例1: writeParameters

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * Writes the list of Parameters that defines the {@Link IfcObject}.
 *
 * @param writer
 * @param object The {@Link IfcObject}.
 * @throws IOException
 */
private void writeParameters(JsonWriter writer, IfcObject object) throws IOException {
  Map<String, String> parameters = new HashMap<>();
  parameters.putAll(getPropertiesFromDefinedBy(object.getIsDefinedBy()));
  parameters.putAll(getParametersFromAssignments(object.getHasAssignments()));
  parameters.putAll(getParametersFromAssociates(object.getHasAssociations()));
  parameters.putAll(getParametersFromMaterialSelect(object));

  if (object instanceof IfcSpatialStructureElement) {
    IfcSpatialStructureElement spatialStructureElement = (IfcSpatialStructureElement) object;
    if (spatialStructureElement.isSetLongName()) {
      parameters.put(LONG_NAME_PROPERTY, spatialStructureElement.getLongName());
    }
  }
  if (parameters != null && !parameters.isEmpty()) {
    writer.name(PARAMETER).beginObject();
    for (String parameterName : parameters.keySet()) {
      writer.name(parameterName).value(parameters.get(parameterName));
    }
    writer.endObject();
  }
}
 
开发者ID:urbanetic,项目名称:geotree-bimserver-plugin,代码行数:29,代码来源:JsonIfcGeometryTreeSerializer.java

示例2: writeIfcTreeContainsElements

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * Writes the list of {@link IfcProduct}s that is contained within the parent
 * {@link IfcSpatialStructureElement}.
 *
 * @param spatialStructureElement The parent {@link IfcSpatialStructureElement}.
 * @throws IOException
 */
private void writeIfcTreeContainsElements(JsonWriter writer,
    IfcSpatialStructureElement spatialStructureElement) throws IOException {
  EList<IfcRelContainedInSpatialStructure> relList =
      spatialStructureElement.getContainsElements();
  if (relList != null && !relList.isEmpty()) {
    writer.name("contains");
    writer.beginArray();
    for (IfcRelContainedInSpatialStructure rel : relList) {
      for (IfcProduct ifcProduct : rel.getRelatedElements()) {
        writeIfcTreeObject(writer, ifcProduct);
      }
    }
    writer.endArray();
  }
}
 
开发者ID:urbanetic,项目名称:geotree-bimserver-plugin,代码行数:23,代码来源:JsonIfcGeometryTreeSerializer.java

示例3: getIfcBuildingStorey

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
public static IfcBuildingStorey getIfcBuildingStorey(IfcProduct ifcProduct) {
	if (ifcProduct instanceof IfcBuildingStorey) {
		return (IfcBuildingStorey) ifcProduct;
	}
	for (IfcRelDecomposes ifcRelDecomposes : ifcProduct.getDecomposes()) {
		IfcObjectDefinition relatingObject = ifcRelDecomposes.getRelatingObject();
		if (relatingObject instanceof IfcBuildingStorey) {
			return (IfcBuildingStorey)relatingObject;
		}
	}
	if (ifcProduct instanceof IfcElement) {
		IfcElement ifcElement = (IfcElement)ifcProduct;
		for (IfcRelContainedInSpatialStructure ifcRelContainedInSpatialStructure : ifcElement.getContainedInStructure()) {
			IfcSpatialStructureElement relatingStructure = ifcRelContainedInSpatialStructure.getRelatingStructure();
			if (relatingStructure instanceof IfcBuildingStorey) {
				return (IfcBuildingStorey) relatingStructure;
			} else {
				if (relatingStructure instanceof IfcSpace) {
					return getIfcBuildingStorey(relatingStructure);
				}
			}
		}
	}
	return null;
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:26,代码来源:IfcUtils.java

示例4: addContains

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
public void addContains(IfcSpatialStructureElement parent, IfcProduct... children) throws IfcModelInterfaceException {
	IfcRelContainedInSpatialStructure rel = this.create(IfcRelContainedInSpatialStructure.class);
	rel.setRelatingStructure(parent);
	for (IfcProduct child: children) {
		rel.getRelatedElements().add(child);
	}
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:8,代码来源:RichIfcModel.java

示例5: getIfcProject

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
public static IfcProject getIfcProject(IfcProduct ifcProduct) {
	if (ifcProduct instanceof IfcProject) {
		return (IfcProject) ifcProduct;
	}
	for (IfcRelDecomposes ifcRelDecomposes : ifcProduct.getDecomposes()) {
		IfcObjectDefinition relatingObject = ifcRelDecomposes.getRelatingObject();
		if (relatingObject instanceof IfcProject) {
			return (IfcProject)relatingObject;
		} else if (relatingObject instanceof IfcProduct){
			return getIfcProject((IfcProduct) relatingObject);
		}
	}
	if (ifcProduct instanceof IfcElement) {
		IfcElement ifcElement = (IfcElement)ifcProduct;
		for (IfcRelContainedInSpatialStructure ifcRelContainedInSpatialStructure : ifcElement.getContainedInStructure()) {
			IfcSpatialStructureElement relatingStructure = ifcRelContainedInSpatialStructure.getRelatingStructure();
			if (relatingStructure instanceof IfcProject) {
				return (IfcProject) relatingStructure;
			} else if (relatingStructure instanceof IfcBuildingStorey) {
				return getIfcProject(relatingStructure);
			} else {
				if (relatingStructure instanceof IfcSpace) {
					return getIfcProject(relatingStructure);
				}
			}
		}
	}
	return null;
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:30,代码来源:IfcUtils.java

示例6: getRequestedLocation

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcSpatialStructureElement getRequestedLocation() {
	return (IfcSpatialStructureElement) eGet(Ifc2x3tc1Package.Literals.IFC_SPACE_PROGRAM__REQUESTED_LOCATION, true);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcSpaceProgramImpl.java

示例7: setRequestedLocation

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setRequestedLocation(IfcSpatialStructureElement newRequestedLocation) {
	eSet(Ifc2x3tc1Package.Literals.IFC_SPACE_PROGRAM__REQUESTED_LOCATION, newRequestedLocation);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcSpaceProgramImpl.java

示例8: getMoveFrom

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcSpatialStructureElement getMoveFrom() {
	return (IfcSpatialStructureElement) eGet(Ifc2x3tc1Package.Literals.IFC_MOVE__MOVE_FROM, true);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcMoveImpl.java

示例9: setMoveFrom

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setMoveFrom(IfcSpatialStructureElement newMoveFrom) {
	eSet(Ifc2x3tc1Package.Literals.IFC_MOVE__MOVE_FROM, newMoveFrom);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcMoveImpl.java

示例10: getMoveTo

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcSpatialStructureElement getMoveTo() {
	return (IfcSpatialStructureElement) eGet(Ifc2x3tc1Package.Literals.IFC_MOVE__MOVE_TO, true);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcMoveImpl.java

示例11: setMoveTo

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setMoveTo(IfcSpatialStructureElement newMoveTo) {
	eSet(Ifc2x3tc1Package.Literals.IFC_MOVE__MOVE_TO, newMoveTo);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcMoveImpl.java

示例12: getRelatingStructure

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcSpatialStructureElement getRelatingStructure() {
	return (IfcSpatialStructureElement) eGet(Ifc2x3tc1Package.Literals.IFC_REL_REFERENCED_IN_SPATIAL_STRUCTURE__RELATING_STRUCTURE, true);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcRelReferencedInSpatialStructureImpl.java

示例13: setRelatingStructure

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setRelatingStructure(IfcSpatialStructureElement newRelatingStructure) {
	eSet(Ifc2x3tc1Package.Literals.IFC_REL_REFERENCED_IN_SPATIAL_STRUCTURE__RELATING_STRUCTURE, newRelatingStructure);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcRelReferencedInSpatialStructureImpl.java

示例14: getLocationOfInteraction

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IfcSpatialStructureElement getLocationOfInteraction() {
	return (IfcSpatialStructureElement) eGet(Ifc2x3tc1Package.Literals.IFC_REL_INTERACTION_REQUIREMENTS__LOCATION_OF_INTERACTION, true);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcRelInteractionRequirementsImpl.java

示例15: setLocationOfInteraction

import org.bimserver.models.ifc2x3tc1.IfcSpatialStructureElement; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setLocationOfInteraction(IfcSpatialStructureElement newLocationOfInteraction) {
	eSet(Ifc2x3tc1Package.Literals.IFC_REL_INTERACTION_REQUIREMENTS__LOCATION_OF_INTERACTION, newLocationOfInteraction);
}
 
开发者ID:opensourceBIM,项目名称:BIMserver,代码行数:9,代码来源:IfcRelInteractionRequirementsImpl.java


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