本文整理汇总了C#中GeometryGym.Ifc.IfcProductRepresentation类的典型用法代码示例。如果您正苦于以下问题:C# IfcProductRepresentation类的具体用法?C# IfcProductRepresentation怎么用?C# IfcProductRepresentation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IfcProductRepresentation类属于GeometryGym.Ifc命名空间,在下文中一共展示了IfcProductRepresentation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IfcCivilElement
public IfcCivilElement(IfcProduct host, IfcObjectPlacement p, IfcProductRepresentation r) : base(host, p, r) { if (mDatabase.mSchema == Schema.IFC2x3) throw new Exception(KeyWord + " only supported in IFC4!"); }
示例2: IfcVoidingFeature
public IfcVoidingFeature(IfcElement host,IfcProductRepresentation rep,IfcVoidingFeatureTypeEnum type) : base(host,rep) { mPredefinedType = type; }
示例3: IfcWasteTerminal
internal IfcWasteTerminalTypeEnum mPredefinedType = IfcWasteTerminalTypeEnum.NOTDEFINED; // OPTIONAL : IfcWasteTerminalTypeEnum;
#endregion Fields
#region Constructors
public IfcWasteTerminal(IfcObjectDefinition host, IfcObjectPlacement placement, IfcProductRepresentation representation, IfcDistributionSystem system)
: base(host, placement, representation, system)
{
}
示例4: IfcTendon
internal IfcTendon(IfcProduct host, IfcObjectPlacement placement, IfcProductRepresentation representation, double diam, double area, double forceMeasure, double pretress, double fricCoeff, double anchorSlip, double minCurveRadius)
: base(host, placement,representation)
{
mNominalDiameter = diam;
mCrossSectionArea = area;
mTensionForce = forceMeasure;
mPreStress = pretress;
mFrictionCoefficient = fricCoeff;
mAnchorageSlip = anchorSlip;
mMinCurvatureRadius = minCurveRadius;
}
示例5: IfcTransportElement
internal IfcTransportElement(IfcProduct host, IfcObjectPlacement placement, IfcProductRepresentation representation) : base(host, placement, representation) { }
示例6: constructElement
internal static IfcElement constructElement(string className, IfcProduct container, IfcObjectPlacement pl, IfcProductRepresentation r, IfcDistributionSystem system)
{
string str = className, definedType = "";
if (!string.IsNullOrEmpty(str))
{
string[] fields = str.Split(".".ToCharArray());
if (fields.Length > 1)
{
str = fields[0];
definedType = fields[1];
}
}
IfcElement element = null;
Type type = Type.GetType("GeometryGym.Ifc." + str);
if (type != null)
{
ConstructorInfo ctor = type.GetConstructor(new[] { typeof(IfcProduct), typeof(IfcObjectPlacement), typeof(IfcProductRepresentation) });
if (ctor == null)
{
ctor = type.GetConstructor(new[] { typeof(IfcProduct), typeof(IfcObjectPlacement), typeof(IfcProductRepresentation), typeof(IfcDistributionSystem) });
if (ctor == null)
throw new Exception("XXX Unrecognized Ifc Constructor for " + className);
else
element = ctor.Invoke(new object[] { container, pl, r, system }) as IfcElement;
}
else
element = ctor.Invoke(new object[] { container, pl, r }) as IfcElement;
}
if (element == null)
element = new IfcBuildingElementProxy(container, pl, r);
if (!string.IsNullOrEmpty(definedType))
{
if (container.mDatabase.mSchema == Schema.IFC2x3)
element.ObjectType = definedType;
else
{
type = element.GetType();
PropertyInfo pi = type.GetProperty("PredefinedType");
if (pi != null)
{
Type enumType = Type.GetType("GeometryGym.Ifc." + type.Name + "TypeEnum");
if (enumType != null)
{
FieldInfo fi = enumType.GetField(definedType);
if (fi == null)
{
element.ObjectType = definedType;
fi = enumType.GetField("NOTDEFINED");
}
if (fi != null)
{
int i = (int)fi.GetValue(enumType);
object newEnumValue = Enum.ToObject(enumType, i);
pi.SetValue(element, newEnumValue, null);
}
else
element.ObjectType = definedType;
}
else
element.ObjectType = definedType;
}
else
element.ObjectType = definedType;
}
}
return element;
}
示例7: IfcEnergyConversionDevice
internal IfcEnergyConversionDevice(IfcProduct host, IfcObjectPlacement placement, IfcProductRepresentation representation, IfcDistributionSystem system) : base(host, placement, representation, system) { }
示例8: IfcFeatureElementSubtraction
protected IfcFeatureElementSubtraction(IfcElement host, IfcProductRepresentation rep)
: base(host.mDatabase)
{
new IfcRelVoidsElement(host, this);
Representation = rep;
Placement = new IfcLocalPlacement(host.Placement, mDatabase.Factory.PlaneXYPlacement);
}
示例9: IfcFilter
internal IfcFilter(IfcObjectDefinition host, IfcObjectPlacement placement, IfcProductRepresentation representation, IfcDistributionSystem system)
: base(host, placement, representation, system)
{
}
示例10: IfcFastener
internal IfcFastener(IfcObjectDefinition host, IfcObjectPlacement placement, IfcProductRepresentation representation)
: base(host, placement, representation)
{
}
示例11: IfcFeatureElement
protected IfcFeatureElement(IfcObjectDefinition host, IfcObjectPlacement placement, IfcProductRepresentation representation)
: base(host, placement, representation)
{
}
示例12: IfcFurnishingElement
internal IfcFurnishingElement(IfcObjectDefinition host, IfcObjectPlacement placement, IfcProductRepresentation representation)
: base(host, placement, representation)
{
}
示例13: IfcFlowFitting
public IfcFlowFitting(IfcObjectDefinition host, IfcObjectPlacement placement, IfcProductRepresentation representation, IfcDistributionSystem system)
: base(host, placement, representation, system)
{
}
示例14: IfcColumn
public IfcColumn(IfcProduct host, IfcObjectPlacement p, IfcProductRepresentation r) : base(host, p, r) { }
示例15: IfcElement
protected IfcElement(IfcProduct host, IfcObjectPlacement p, IfcProductRepresentation r) : base(host, p, r) { }