Class IfcDirection
Inheritance
System.Object
IfcDirection
Implements
System.ComponentModel.INotifyPropertyChanged
System.IEquatable<IfcRepresentationItem>
System.IEquatable<IfcGeometricRepresentationItem>
System.IEquatable<IfcDirection>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Xbim.Ifc2x3.GeometryResource
Assembly: Xbim.Ifc2x3.dll
Syntax
[ExpressType("IfcDirection", 344)]
public class IfcDirection : IfcGeometricRepresentationItem, INotifyPropertyChanged, IEquatable<IfcRepresentationItem>, IEquatable<IfcGeometricRepresentationItem>, IInstantiableEntity, IIfcDirection, IIfcGeometricRepresentationItem, IIfcRepresentationItem, IfcLayeredItem, IIfcLayeredItem, IfcOrientationSelect, IIfcOrientationSelect, IfcVectorOrDirection, IIfcVectorOrDirection, IEquatable<IfcDirection>, IIfcDirection, IIfcGeometricRepresentationItem, IIfcRepresentationItem, IfcLayeredItem, IIfcLayeredItem, IfcGridPlacementDirectionSelect, IIfcGridPlacementDirectionSelect, IfcVectorOrDirection, IIfcVectorOrDirection, IExpressSelectType, IPersistEntity, IPersist
Properties
| Improve this Doc View SourceDim
Declaration
[EntityAttribute(0, EntityAttributeState.Derived, EntityAttributeType.None, EntityAttributeType.None, null, null, 0)]
public IfcDimensionCount Dim { get; }
Property Value
| Type | Description |
|---|---|
| IfcDimensionCount |
DirectionRatios
Declaration
[EntityAttribute(1, EntityAttributeState.Mandatory, EntityAttributeType.List, EntityAttributeType.None, new int[]{2}, new int[]{3}, 3)]
public IItemSet<double> DirectionRatios { get; }
Property Value
| Type | Description |
|---|---|
| IItemSet<System.Double> |
X
Declaration
public double X { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Y
Declaration
public double Y { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Z
Declaration
public double Z { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
| Improve this Doc View SourceEquals(IfcDirection)
Declaration
public bool Equals(IfcDirection other)
Parameters
| Type | Name | Description |
|---|---|---|
| IfcDirection | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Normalise()
Computes and returns the normalised vector for the direction.
Declaration
public XbimVector3D Normalise()
Returns
| Type | Description |
|---|---|
| XbimVector3D | A 1-length vector if the direction is meaningful or a 0-length vector otherwise |
Parse(Int32, IPropertyValue, Int32[])
Declaration
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | propIndex | |
| IPropertyValue | value | |
| System.Int32[] | nestedIndex |
Overrides
| Improve this Doc View SourceSetXY(Double, Double)
Declaration
public void SetXY(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x | |
| System.Double | y |
SetXYZ(Double, Double, Double)
Declaration
public void SetXYZ(double x, double y, double z)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | x | |
| System.Double | y | |
| System.Double | z |
XbimVector3D()
Declaration
public XbimVector3D XbimVector3D()
Returns
| Type | Description |
|---|---|
| XbimVector3D |
Operators
| Improve this Doc View SourceImplicit(XbimVector3D to IfcDirection)
Do not use this conversion operator unless you are absolutely sure you know what you do. Resulting object is not a properpart of the model and will throw an exception if you try to modify it or anything. It is only used in IfcGeometricRepresentationSubContext.TrueNorth where derived attribute is returned in derived overwriting attribute.
Declaration
public static implicit operator IfcDirection(XbimVector3D vector)
Parameters
| Type | Name | Description |
|---|---|---|
| XbimVector3D | vector |
Returns
| Type | Description |
|---|---|
| IfcDirection |
Explicit Interface Implementations
| Improve this Doc View SourceIIfcDirection.DirectionRatios
Declaration
IItemSet<double> IIfcDirection.DirectionRatios { get; }
Returns
| Type | Description |
|---|---|
| IItemSet<System.Double> |
IIfcDirection.Dim
Declaration
IfcDimensionCount IIfcDirection.Dim { get; }
Returns
| Type | Description |
|---|---|
| IfcDimensionCount |
IIfcDirection.DirectionRatios
Declaration
[CrossSchemaAttribute(typeof(IIfcDirection), 1)]
IItemSet<IfcReal> IIfcDirection.DirectionRatios { get; }
Returns
| Type | Description |
|---|---|
| IItemSet<IfcReal> |
Implements
System.ComponentModel.INotifyPropertyChanged
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>