 |
DATAKIT API
V2025.2
|
|
Go to the documentation of this file.
96 return lhs.day == rhs.day && lhs.month == rhs.month && lhs.year == rhs.year;
109 namespace classification
135 return lhs.editionDate == rhs.editionDate && lhs.source == rhs.source && lhs.edition == rhs.edition && lhs.name == rhs.name;
188 return lhs.referencedSource == rhs.referencedSource
189 && lhs.location == rhs.location
190 && lhs.itemReference == rhs.itemReference && lhs.name == rhs.name;
const Dtk_tab< Dtk_MetaDataPtr > & GetPropertySet() const
Getter for type property set.
void SetLocation(Dtk_string inLocation)
Setter for the reference location.
void SetPredefinedType(const Dtk_string &inType)
Setter for IfcType predefined type.
const Dtk_string & GetName() const
Getter for type name.
uint32_t Dtk_ID
Definition: define.h:689
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
@ IfcPlate
Definition: IFCWriter.h:231
void SetSource(Dtk_string inSource)
Setter for the classification source.
void SetGUID(Dtk_string inGUID)
Setter for IfcElement GUID.
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity, const Dtk_transfo &inMat=Dtk_transfo())
Write the entity provided in parameter. The entity corresponds to current object geometry (e....
void SetPropertySet(Dtk_tab< Dtk_MetaDataPtr > inProperties, const Dtk_string &inSetName="")
Setter for IfcElement propertySet.
void SetLevel(Dtk_string inLevel)
Setter for IfcElement level.
void SetBuildingElementType(const Dtk_string &inType)
Setter for IfcType building element type.
const Dtk_string & GetName() const
Getter for the classification name.
const Dtk_string & GetGUID() const
Getter for IfcElement GUID.
const IfcCalendarDate & GetEditionDate() const
Getter for the classification edition date.
IfcClassification(Dtk_string inSource, Dtk_string inEdition, Dtk_string inName="")
Constructor taking 3 parameters.
@ IfcRamp
Definition: IFCWriter.h:233
@ IfcMember
Definition: IFCWriter.h:230
void AddProperty(Dtk_MetaDataPtr inProperty, Dtk_string inSetName="")
Adds a property to IfcElement current property set.
A IfcType is used to define the common properties of a certain type or style of an entity that may be...
Definition: IFCWriter.h:249
@ IfcRoof
Definition: IFCWriter.h:235
void SetBuildingElementType(IfcBuildingElement inTypeEnum)
Setter for IfcElement building element subtype.
const Dtk_string & GetTag() const
Getter for type tag.
void SetEditionDate(int inDay, int inMonth, int inYear)
Setter for the classification edition date.
friend bool operator==(IfcClassificationReference const &lhs, IfcClassificationReference const &rhs)
Definition: IFCWriter.h:186
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, const WriteOptions &inOptions, ProjectInformation *inProjectInfo=nullptr)
Initialize the Ifc Writer and the IFC version you want to write.
void SetColor(const Dtk_RGB &inColor)
Setter for IfcElement color.
int versionIndicator
Int representing IFC version to use : 0 ( default ) = IFC2x3; 1 = IFC4.
Definition: IFCWriter.h:28
#define DTK_TRUE
Definition: define.h:727
Dtk_bool buildingTypeRecognition
DTK_TRUE : enable building type recognition (deduces if an element is an IFCWALL, IFCWINDOW....
Definition: IFCWriter.h:30
const Dtk_string & GetBuildingElementType() const
Getter for IfcElement building element type.
This class provides several parameters for the next ifc entity to be written, as its custom property ...
Definition: IFCWriter.h:331
void SetTag(Dtk_string inTag)
Setter for IfcElement tag.
const Dtk_string & GetItemReference() const
Getter for the reference item reference.
DtkErrorStatus InitObject(IfcElement inParameters)
Initialize an ifcobject with various information.
This is a high level string class.
Definition: dtk_string.hpp:58
size_t Dtk_Size_t
Definition: define.h:712
@ IfcFooting
Definition: IFCWriter.h:229
void SetItemReference(Dtk_string inItemReference)
Setter for the reference item reference.
@ IfcStair
Definition: IFCWriter.h:237
Dtk_MetaDataPtr GetPropertyAtPos(Dtk_Size_t pos) const
Getter for a single IfcElement property.
Dtk_RGB GetColor() const
Getter for IfcElement color.
void SetTag(const Dtk_string &inTag)
Setter for IfcType tag.
char Dtk_bool
Definition: define.h:725
const Dtk_string & GetTag() const
Getter for IfcElement tag.
@ IfcBuildingElementProxy
Definition: IFCWriter.h:224
double Dtk_Double64
Definition: define.h:699
@ IfcSlab
Definition: IFCWriter.h:236
@ IfcRailing
Definition: IFCWriter.h:232
DtkErrorStatus EndObject()
Ends the current object.
int GetDay() const
Getter for the date day.
void AddShape(Dtk_EntityPtr inShape)
Adds an entity to IfcType shape representation (geometry)
const IfcClassification & GetReferencedSource() const
Getter for the classification the reference is linked to.
const Dtk_string & GetLocation() const
Getter for the reference location.
const Dtk_string & GetBuildingElementType() const
Getter for IfcType building element subtype.
const Dtk_tab< Dtk_EntityPtr > & GetShapeRepresentation() const
Getter for type shape representation.
friend bool operator==(IfcCalendarDate const &lhs, IfcCalendarDate const &rhs)
Definition: IFCWriter.h:94
void SetPredefinedType(const Dtk_string &inType)
Setter for IfcElement predefined type.
@ IfcCovering
Definition: IFCWriter.h:226
IfcElement()
Base constructor.
int GetMonth() const
Getter for the date month.
This class represents an IFC date. .
Definition: IFCWriter.h:85
void SetBuildingElementType(Dtk_string inType)
Setter for IfcElement building element type.
int GetYear() const
Getter for the date year.
IfcClassificationReference(Dtk_string inLocation="", Dtk_string inItemReference="", Dtk_string inName="", IfcClassification inReferencedSource=IfcClassification())
Base constructor.
IfcCalendarDate()
Base constructor.
void SetTypeID(const Dtk_ID &inID)
Setter for IfcElement IfcType ID.
void SetPropertySet(Dtk_tab< Dtk_MetaDataPtr > inProperties, const Dtk_string &inSetName="")
Setter for IfcType propertySet.
IfcCalendarDate(const int &inDay, const int &inMonth, const int &iYear)
const Dtk_string & GetLevel() const
Getter for IfcElement level.
void SetName(Dtk_string inName)
Setter for the classification name.
const Dtk_transfo & GetInstanceTrf() const
Getter for IfcElement instance transformation matrice.
This class provides several options to tune the IFC Writer. It must be provided to Ifcw::InitWrite me...
Definition: IFCWriter.h:18
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
void SetClassificationReference(classification::IfcClassificationReference inClassificationRef)
Setter for IfcElement classification reference.
DtkErrorStatus EndWrite()
Creation of the output file and free the Ifc Writer
Definition: util_ptr_dtk.hpp:37
void SetID(const Dtk_ID &inID)
Setter for IfcType ID.
void SetEditionDate(IfcCalendarDate inDate)
Setter for the classification edition date.
@ IfcWindow
Definition: IFCWriter.h:240
Dtk_ErrorStatus WriteType(const IfcType &inType)
Write the type provided in parameter. The type can exists by itself without having entities related t...
void AddProperty(Dtk_MetaDataPtr inProperty, const Dtk_string &inSetName="")
Adds a property to IfcType current property set.
friend bool operator==(IfcClassification const &lhs, IfcClassification const &rhs)
Definition: IFCWriter.h:133
void SetShape(Dtk_tab< Dtk_EntityPtr > inShapes)
Setter for IfcType shapeRepresentation (geometry)
const Dtk_string & GetPredefinedType() const
Getter for IfcType predefined type.
void SetName(Dtk_string inName)
Setter for IfcElement name.
const Dtk_string & GetName() const
Getter for IfcElement name.
WriteOptions()
Base constructor.
Definition: IFCWriter.h:23
Dtk_ID GetTypeID() const
Getter for IfcType ID.
This is a high level array class.
Definition: util_stl_dtk.hpp:85
void SetName(Dtk_string inName)
Setter for the reference name.
This class represent a classification reference to be used for an ifc object, e.g....
Definition: IFCWriter.h:175
const Dtk_string & GetName() const
Getter for the reference name.
const Dtk_string & GetPredefinedType() const
Getter for IfcElement predefined type.
@ IfcStairFlight
Definition: IFCWriter.h:238
void SetBuildingElementType(IfcBuildingElement inTypeEnum)
Setter for IfcElement building element type.
@ IfcColumn
Definition: IFCWriter.h:225
Dtk_ID GetID() const
Getter for type ID.
@ IfcWall
Definition: IFCWriter.h:239
@ IfcCurtainWall
Definition: IFCWriter.h:227
Exported APIs for Ifc (.ifc) Write Library.
Definition: IFCWriter.h:6
@ IfcRampFlight
Definition: IFCWriter.h:234
void SetInstanceTrf(const Dtk_transfo &inTrf)
Setter for IfcElement instance transformation matrice.
A class that represents a classification system, like UniFormat, Omniclass, SfB...
Definition: IFCWriter.h:117
Definition: dtk_rgb.hpp:7
@ IfcDoor
Definition: IFCWriter.h:228
const Dtk_tab< Dtk_MetaDataPtr > & GetPropertySet() const
Getter for IfcElement propertySet.
const Dtk_string & GetEdition() const
Getter for the classification edition.
void SetName(const Dtk_string &inName)
Setter for IfcType name.
IfcClassification()
Base constructor.
const classification::IfcClassificationReference & GetClassificationReference() const
Getter for classification reference.
@ IfcBeam
Definition: IFCWriter.h:223
void SetEdition(Dtk_string inEdition)
Setter for the classification edition.
IfcBuildingElement
This enum provides commonly used ifc building elements types, to define entities to be written....
Definition: IFCWriter.h:222
const Dtk_string & GetSource() const
Getter for the classification source.