本文整理汇总了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();
}
}
示例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();
}
}
示例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;
}
示例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);
}
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}