Class TIfcRoad
Unit
Declaration
type TIfcRoad = class(TIfcFacility)
Description
IFC class IfcRoad.
Source: scene/load/ifc/castleifc_ifc_standard_types_autogenerated.inc (line 946).
Hierarchy
- TObject
- TPersistent
- TComponent
- TIfcPersistent
- TIfcRoot
- TIfcDefinitionSelect
- TIfcObjectDefinition
- TIfcObject
- TIfcProduct
- TIfcSpatialElement
- TIfcSpatialStructureElement
- TIfcFacility
- TIfcRoad
Overview
Methods
| Protected | class function IfcClassName: String; virtual; |
| Protected | function WantsGlobalId: Boolean; override; |
| Published | procedure AddIsDecomposedBy(const ChildObject: TIfcObjectDefinition); |
| Public | procedure AddMeshRepresentation( const Context: TIfcGeometricRepresentationContext; const Coordinates: array of TVector3; const Indexes: array of Integer; const Solid: Boolean = true); |
| Public | procedure AddPolylineRepresentation( const Context: TIfcGeometricRepresentationContext; const Coordinates: array of TVector3); |
| Public | procedure AddLinesRepresentation( const Context: TIfcGeometricRepresentationContext; const Coordinates: array of TVector3); |
| Public | procedure AddBoxRepresentation( const Context: TIfcGeometricRepresentationContext; const Box: TBox3D); |
| Public | function TransformSupported: Boolean; |
| Public | procedure SetTransformRelativeTo(const OtherProduct: TIfcProduct); |
| Public | constructor Create(AOwner: TComponent); override; |
| Public | destructor Destroy; override; |
| Public | function BuildNode(const Mapping: TCastleIfcMapping): TTransformNode; override; |
| Published | procedure AddContainedElement(const Element: TIfcElement); |
| Published | procedure GetContainedElements(const List: TIfcElementList); |
Properties
| Published | property GlobalId: String read FGlobalId write FGlobalId; |
| Published | property OwnerHistory: TIfcOwnerHistory read FOwnerHistory write FOwnerHistory; |
| Published | property Name: TIfcLabel read FName write FName; |
| Published | property Description: TIfcText read FDescription write FDescription; |
| Published | property HasContext: TIfcRelDeclares read FHasContext write FHasContext; |
| Published | property IsDecomposedBy: TIfcRelAggregatesList read FIsDecomposedBy; |
| Published | property Decomposes: TIfcRelAggregatesList read FDecomposes; |
| Published | property HasAssociations: TIfcRelAssociatesList read FHasAssociations; |
| Published | property ObjectType: TIfcLabel read FObjectType write FObjectType; |
| Published | property IsDeclaredBy: TIfcRelDefinesByObjectList read FIsDeclaredBy; |
| Published | property Declares: TIfcRelDefinesByObjectList read FDeclares; |
| Published | property IsTypedBy: TIfcRelDefinesByTypeList read FIsTypedBy; |
| Published | property IsDefinedBy: TIfcRelDefinesByPropertiesList read FIsDefinedBy; |
| Public | property Translation: TVector3 read GetTranslation write SetTranslation; |
| Published | property ObjectPlacement: TIfcObjectPlacement read FObjectPlacement write FObjectPlacement; |
| Published | property Representation: TIfcProductRepresentation read FRepresentation write FRepresentation; |
| Published | property PositionedRelativeTo: TIfcRelPositionsList read FPositionedRelativeTo; |
| Published | property ReferencedInStructures: TIfcRelReferencedInSpatialStructure
read FReferencedInStructures write FReferencedInStructures; |
| Published | property LongName: TIfcLabel read FLongName write FLongName; |
| Published | property ContainsElements: TIfcRelContainedInSpatialStructureList read FContainsElements; |
| Published | property CompositionType: TIfcElementCompositionEnum
read FCompositionType write FCompositionType default TIfcElementCompositionEnum.Element; |
Description
Methods
| Protected | class function IfcClassName: String; virtual; |
|
This item is declared in ancestor TIfcPersistent. Name for the IFC standard, used in IFC files. By default, this is just ClassName with prefix 'T' removed. | |
| Protected | function WantsGlobalId: Boolean; override; |
|
This item is declared in ancestor TIfcRoot. This item has no description. Showing description inherited from TIfcPersistent.WantsGlobalId.
If Strictly following the spec, this should be only defined for TIfcRoot, because only IfcRoot has GlobalId. In reality, we need GlobalId at TIfcPersistent to load some files, and we sometimes need Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1656). | |
| Published | procedure AddIsDecomposedBy(const ChildObject: TIfcObjectDefinition); |
|
This item is declared in ancestor TIfcObjectDefinition. Add given TIfcObjectDefinition instance to the IsDecomposedBy list of this object. Adds also new intermediate TIfcRelAggregates instance. This shall be used to add top-level IfcSpatialStructureElement instances to the project, e.g.:
See also
Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1873). | |
| Public | procedure AddMeshRepresentation( const Context: TIfcGeometricRepresentationContext; const Coordinates: array of TVector3; const Indexes: array of Integer; const Solid: Boolean = true); |
|
This item is declared in ancestor TIfcProduct. Add mesh representation to the given product. The mesh is expressed as a set of 3D points (Coordinates) and indexes to these coordinates (Indexes) that determine polygons. The indexes are 0-based and can be separated by -1 to delimit polygons. See examples/ifc/ for an example usage of this routine to define walls and floors. Parameters
Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3001). | |
| Public | procedure AddPolylineRepresentation( const Context: TIfcGeometricRepresentationContext; const Coordinates: array of TVector3); |
|
This item is declared in ancestor TIfcProduct. Add representation as a polyline to the given product. The sequence of points in Coordinates defines a polyline, so it starts from the first point and goes through each subsequent point in order. Parameters
Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3015). | |
| Public | procedure AddLinesRepresentation( const Context: TIfcGeometricRepresentationContext; const Coordinates: array of TVector3); |
|
This item is declared in ancestor TIfcProduct. Add representation as a set of line segments to the given product. Each pair of points in Coordinates defines a line segment. Parameters
Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3026). | |
| Public | procedure AddBoxRepresentation( const Context: TIfcGeometricRepresentationContext; const Box: TBox3D); |
|
This item is declared in ancestor TIfcProduct. Add box representation to the given product. Right now, the Box is transformed into a proper mesh representation, so this is just equivalent to calling AddMeshRepresentation with the 8 box corners and proper indexes to define 6 box sides. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3035). | |
| Public | function TransformSupported: Boolean; |
|
This item is declared in ancestor TIfcProduct. Does ObjectPlacement express a 3D transformation we can handle and Translation reliably gets and sets it. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3041). | |
| Public | procedure SetTransformRelativeTo(const OtherProduct: TIfcProduct); |
|
This item is declared in ancestor TIfcProduct. Make Translation of this product relative to a given different product. This sets TIfcObjectPlacement.PlacementRelTo underneath. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3082). | |
| Public | constructor Create(AOwner: TComponent); override; |
|
This item is declared in ancestor TIfcSpatialElement. TODO: rest of fields Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3239). | |
| Public | destructor Destroy; override; |
|
This item is declared in ancestor TIfcSpatialElement. This item has no description. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3240). | |
| Public | function BuildNode(const Mapping: TCastleIfcMapping): TTransformNode; override; |
|
This item is declared in ancestor TIfcSpatialElement. This item has no description. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3241). | |
| Published | procedure AddContainedElement(const Element: TIfcElement); |
|
This item is declared in ancestor TIfcSpatialElement. Add given Element (TIfcElement, descendant of TIfcProduct) to the ContainsElements list of this spatial element. This adds an intermediate TIfcRelContainedInSpatialStructure instance, and expands the ContainsElements list of this spatial element, and expands the TIfcElement.ContainedInStructure of the given Element. It may reuse existing TIfcRelContainedInSpatialStructure instance (BonsaiBIM also does this, using one TIfcRelContainedInSpatialStructure to refer to multiple children). This should be used to add smaller elements, like TIfcWall, TIfcWindow into larger spatial elements, like TIfcBuildingStorey, TIfcSpace. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3259). | |
| Published | procedure GetContainedElements(const List: TIfcElementList); |
|
This item is declared in ancestor TIfcSpatialElement. Add all contained elemenents to the List. This enumerates relations inside ContainsElements and the elements they refer to. This is not recursive, it does not go into elements that are children of other elements. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3267). | |
Properties
| Published | property GlobalId: String read FGlobalId write FGlobalId; |
|
This item is declared in ancestor TIfcPersistent. Globally unique identifier for the object instance. Note: Not declared as TGUID, because TGUID cannot be published, but also we don't really need it: for our purposes, this identifier is just an arbitrary string. Note: IFC 4.3 specification puts this only at IfcRoot, not at every IFC class. But testcase https://github.com/buildingsmart-community/Community-Sample-Test-Files/blob/main/IFC%204.0.2.1%20(IFC%204)/ISO%20Spec%20archive/wall-with-opening-and-window.json (from IFC 4.0) shows this can be present at any IFC class, in particular TIfcGeometricRepresentationContext. In fact, TIfcGeometricRepresentationContext needs to have IFC JSON documentation says this, which seems to (unfortunately it is not unambiguous enough...) allow this at any IFC class: "Whereas the | |
| Published | property OwnerHistory: TIfcOwnerHistory read FOwnerHistory write FOwnerHistory; |
|
This item is declared in ancestor TIfcRoot. Information about the current ownership of that object. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1659). | |
| Published | property Name: TIfcLabel read FName write FName; |
|
This item is declared in ancestor TIfcRoot. This item has no description. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1661). | |
| Published | property Description: TIfcText read FDescription write FDescription; |
|
This item is declared in ancestor TIfcRoot. This item has no description. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1662). | |
| Published | property HasContext: TIfcRelDeclares read FHasContext write FHasContext; |
|
This item is declared in ancestor TIfcObjectDefinition. References to the context providing context information such as project unit or representation context. It should only be asserted for the uppermost non-spatial object. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1847). | |
| Published | property IsDecomposedBy: TIfcRelAggregatesList read FIsDecomposedBy; |
|
This item is declared in ancestor TIfcObjectDefinition. References to the decomposition relationship being an aggregation. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1850). | |
| Published | property Decomposes: TIfcRelAggregatesList read FDecomposes; |
|
This item is declared in ancestor TIfcObjectDefinition. References to the decomposition relationship being an aggregation. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1853). | |
| Published | property HasAssociations: TIfcRelAssociatesList read FHasAssociations; |
|
This item is declared in ancestor TIfcObjectDefinition. Reference to the relationship objects, that associates external references or other resource definitions to the object. Examples are the association to library, documentation or classification. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1858). | |
| Published | property ObjectType: TIfcLabel read FObjectType write FObjectType; |
|
This item is declared in ancestor TIfcObject. The type denotes a particular type that indicates the object further. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1920). | |
| Published | property IsDeclaredBy: TIfcRelDefinesByObjectList read FIsDeclaredBy; |
|
This item is declared in ancestor TIfcObject. Link to the relationship object pointing to the declaring object that provides the object definitions for this object occurrence. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1924). | |
| Published | property Declares: TIfcRelDefinesByObjectList read FDeclares; |
|
This item is declared in ancestor TIfcObject. Link to the relationship object pointing to the reflected object(s) that receives the object definitions. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1928). | |
| Published | property IsTypedBy: TIfcRelDefinesByTypeList read FIsTypedBy; |
|
This item is declared in ancestor TIfcObject. Set of relationships to the object type that provides the type definitions for this object occurrence. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1932). | |
| Published | property IsDefinedBy: TIfcRelDefinesByPropertiesList read FIsDefinedBy; |
|
This item is declared in ancestor TIfcObject. Set of relationships to property set definitions attached to this object. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 1935). | |
| Public | property Translation: TVector3 read GetTranslation write SetTranslation; |
|
This item is declared in ancestor TIfcProduct. Translation of this product.
When TCastleIfcMapping.OptimizeAssumingOneMapping then this is optimized. Changing this property immediately updates the relevant X3D graph, without the need to call TCastleIfcMapping.Update. This makes changing translation really instant, no need to call TCastleIfcMapping.Update so it doesn't analyze what changed. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3077). | |
| Published | property ObjectPlacement: TIfcObjectPlacement read FObjectPlacement write FObjectPlacement; |
|
This item is declared in ancestor TIfcProduct. Object coordinate system and placement of the product in space. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3085). | |
| Published | property Representation: TIfcProductRepresentation read FRepresentation write FRepresentation; |
|
This item is declared in ancestor TIfcProduct. Representations of the product. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3088). | |
| Published | property PositionedRelativeTo: TIfcRelPositionsList read FPositionedRelativeTo; |
|
This item is declared in ancestor TIfcProduct. TODO // property ReferencedBy: TIfcRelAssignsToProductList read FReferencedBy; Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3092). | |
| Published | property ReferencedInStructures: TIfcRelReferencedInSpatialStructure
read FReferencedInStructures write FReferencedInStructures; |
|
This item is declared in ancestor TIfcProduct. This item has no description. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3094). | |
| Published | property LongName: TIfcLabel read FLongName write FLongName; |
|
This item is declared in ancestor TIfcSpatialElement. This item has no description. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3243). | |
| Published | property ContainsElements: TIfcRelContainedInSpatialStructureList read FContainsElements; |
|
This item is declared in ancestor TIfcSpatialElement. This item has no description. Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3244). | |
| Published | property CompositionType: TIfcElementCompositionEnum
read FCompositionType write FCompositionType default TIfcElementCompositionEnum.Element; |
|
This item is declared in ancestor TIfcSpatialStructureElement. Denotes, whether the predefined spatial structure element represents itself, or an aggregate (complex) or a part (part). The interpretation is given separately for each subtype of spatial structure element. Pascal default Element matches IFC spec default: If no Source: scene/load/ifc/castleifc_ifc_standard_types.inc (line 3369). | |
Generated by PasDoc 0.17.0.snapshot.