Search in sources :

Example 6 with IfcRepresentationItem

use of org.bimserver.models.ifc2x3tc1.IfcRepresentationItem in project BIMserver by opensourceBIM.

the class IfcUtils method dumpRepresentationInfo.

public static String dumpRepresentationInfo(IfcProduct ifcProduct) {
    StringBuilder sb = new StringBuilder();
    sb.append("Dumping representation info for " + ifcProduct.eClass().getName() + "\n");
    IfcProductRepresentation representation = ifcProduct.getRepresentation();
    for (IfcRepresentation ifcRepresentation : representation.getRepresentations()) {
        sb.append("\t" + ifcRepresentation.eClass().getName() + "\n");
        if (ifcRepresentation instanceof IfcShapeRepresentation) {
            IfcShapeRepresentation ifcShapeRepresentation = (IfcShapeRepresentation) ifcRepresentation;
            sb.append("\t\tRepresentationIdentifier: " + ifcShapeRepresentation.getRepresentationIdentifier() + "\n");
            sb.append("\t\tRepresentationType: " + ifcShapeRepresentation.getRepresentationType() + "\n");
        }
        for (IfcRepresentationItem ifcRepresentationItem : ifcRepresentation.getItems()) {
            sb.append("\t\t" + ifcRepresentationItem.eClass().getName() + "\n");
        }
    }
    return sb.toString();
}
Also used : IfcProductRepresentation(org.bimserver.models.ifc2x3tc1.IfcProductRepresentation) IfcRepresentationItem(org.bimserver.models.ifc2x3tc1.IfcRepresentationItem) IfcShapeRepresentation(org.bimserver.models.ifc2x3tc1.IfcShapeRepresentation) IfcRepresentation(org.bimserver.models.ifc2x3tc1.IfcRepresentation)

Aggregations

IfcRepresentation (org.bimserver.models.ifc2x3tc1.IfcRepresentation)5 IfcProductRepresentation (org.bimserver.models.ifc2x3tc1.IfcProductRepresentation)4 IfcRepresentationItem (org.bimserver.models.ifc2x3tc1.IfcRepresentationItem)4 IfcCartesianPoint (org.bimserver.models.ifc2x3tc1.IfcCartesianPoint)3 IfcShapeRepresentation (org.bimserver.models.ifc2x3tc1.IfcShapeRepresentation)3 Area (java.awt.geom.Area)2 Path2D (java.awt.geom.Path2D)2 HashSet (java.util.HashSet)2 IfcModelInterfaceException (org.bimserver.emf.IfcModelInterfaceException)2 IfcAxis2Placement3D (org.bimserver.models.ifc2x3tc1.IfcAxis2Placement3D)2 IfcStyledItem (org.bimserver.models.ifc2x3tc1.IfcStyledItem)2 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 Set (java.util.Set)1 IdEObject (org.bimserver.emf.IdEObject)1 IfcModelInterface (org.bimserver.emf.IfcModelInterface)1 GeometryData (org.bimserver.models.geometry.GeometryData)1 GeometryInfo (org.bimserver.models.geometry.GeometryInfo)1 IfcArbitraryClosedProfileDef (org.bimserver.models.ifc2x3tc1.IfcArbitraryClosedProfileDef)1 IfcArbitraryProfileDefWithVoids (org.bimserver.models.ifc2x3tc1.IfcArbitraryProfileDefWithVoids)1