Class geometry_serializer

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class geometry_serializer : public ifcopenshell::geom::serializer

Subclassed by ifcopenshell::geom::write_only_geometry_serializer

Public Types

enum read_type

Values:

enumerator READ_BREP
enumerator READ_TRIANGULATION

Public Functions

inline geometry_serializer(const ifcopenshell::geom::settings &settings, ifcopenshell::logger *logger = nullptr)
inline virtual ~geometry_serializer()
virtual bool isTesselated() const = 0
virtual void write(const ifcopenshell::geom::triangulation_element *o) = 0
virtual void write(const ifcopenshell::geom::native_element *o) = 0
virtual void setUnitNameAndMagnitude(const std::string &name, float magnitude) = 0
virtual ifcopenshell::geom::element *read(ifcopenshell::file &f, const std::string &guid, const std::string &representation_id, read_type rt = READ_BREP) = 0
inline const ifcopenshell::geom::settings &settings() const
inline ifcopenshell::geom::settings &settings()
inline virtual std::string object_id(const ifcopenshell::geom::element *o)

Returns ID for the object depending on the used setting.

Protected Attributes

ifcopenshell::geom::settings settings_