mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 15:16:23 +00:00
Rename some files with more sensical names
This commit is contained in:
@@ -697,7 +697,7 @@ TARGET_LINK_LIBRARIES(IfcParse ${Boost_LIBRARIES} ${BCRYPT_LIBRARIES} ${LIBXML2_
|
|||||||
if (BUILD_IFCGEOM)
|
if (BUILD_IFCGEOM)
|
||||||
|
|
||||||
# IfcGeom
|
# IfcGeom
|
||||||
file(GLOB IFCGEOM_H_FILES ../src/ifcgeom/*.h)
|
file(GLOB IFCGEOM_H_FILES ../src/ifcgeom/*.h ../src/ifcgeom/*.i)
|
||||||
file(GLOB IFCGEOM_CPP_FILES ../src/ifcgeom/*.cpp)
|
file(GLOB IFCGEOM_CPP_FILES ../src/ifcgeom/*.cpp)
|
||||||
set(IFCGEOM_FILES ${IFCGEOM_CPP_FILES} ${IFCGEOM_H_FILES})
|
set(IFCGEOM_FILES ${IFCGEOM_CPP_FILES} ${IFCGEOM_H_FILES})
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
@@ -107,7 +107,7 @@ namespace IfcGeom {
|
|||||||
|
|
||||||
class IFC_GEOM_API MAKE_TYPE_NAME(Cache) {
|
class IFC_GEOM_API MAKE_TYPE_NAME(Cache) {
|
||||||
public:
|
public:
|
||||||
#include "IfcRegisterCreateCache.h"
|
#include "mapping_cache.i"
|
||||||
std::map<int, TopoDS_Shape> Shape;
|
std::map<int, TopoDS_Shape> Shape;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -536,7 +536,7 @@ public:
|
|||||||
|
|
||||||
void set_conversion_placement_rel_to(const IfcParse::declaration* type);
|
void set_conversion_placement_rel_to(const IfcParse::declaration* type);
|
||||||
|
|
||||||
#include "IfcRegisterGeomHeader.h"
|
#include "mapping_kernel_header.i"
|
||||||
|
|
||||||
virtual void setValue(GeomValue var, double value);
|
virtual void setValue(GeomValue var, double value);
|
||||||
virtual double getValue(GeomValue var) const;
|
virtual double getValue(GeomValue var) const;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Implementations of the various conversion functions defined in IfcRegister.h *
|
* Implementations of the various conversion functions defined in mapping.i *
|
||||||
* *
|
* *
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Implementations of the various conversion functions defined in IfcRegister.h *
|
* Implementations of the various conversion functions defined in mapping.i *
|
||||||
* *
|
* *
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Implementations of the various conversion functions defined in IfcRegister.h *
|
* Implementations of the various conversion functions defined in mapping.i *
|
||||||
* *
|
* *
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Implementations of the various conversion functions defined in IfcRegister.h *
|
* Implementations of the various conversion functions defined in mapping.i *
|
||||||
* *
|
* *
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Implementations of the various conversion functions defined in IfcRegister.h *
|
* Implementations of the various conversion functions defined in mapping.i *
|
||||||
* *
|
* *
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
|
||||||
#define CLASS(T,V) \
|
|
||||||
std::map<int,V> T;
|
|
||||||
#include "IfcRegisterDef.h"
|
|
||||||
|
|
||||||
#include "IfcRegister.h"
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
|
||||||
#define CLASS(T,V) \
|
|
||||||
T.clear();
|
|
||||||
#include "IfcRegisterDef.h"
|
|
||||||
|
|
||||||
#include "IfcRegister.h"
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
@@ -40,13 +40,13 @@ bool IfcGeom::Kernel::convert_shapes(const IfcBaseInterface* l, IfcRepresentatio
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "IfcRegisterConvertShapes.h"
|
#include "mapping_shapes.i"
|
||||||
Logger::Message(Logger::LOG_ERROR,"No operation defined for:",l);
|
Logger::Message(Logger::LOG_ERROR,"No operation defined for:",l);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
IfcGeom::ShapeType IfcGeom::Kernel::shape_type(const IfcBaseInterface* l) {
|
IfcGeom::ShapeType IfcGeom::Kernel::shape_type(const IfcBaseInterface* l) {
|
||||||
#include "IfcRegisterShapeType.h"
|
#include "mapping_shape_type.i"
|
||||||
return ST_OTHER;
|
return ST_OTHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ bool IfcGeom::Kernel::convert_shape(const IfcBaseInterface* l, TopoDS_Shape& r)
|
|||||||
IfcRepresentationShapeItems items;
|
IfcRepresentationShapeItems items;
|
||||||
success = convert_shapes(l, items) && flatten_shape_list(items, r, false);
|
success = convert_shapes(l, items) && flatten_shape_list(items, r, false);
|
||||||
} else if (st == ST_SHAPE && include_solids_and_surfaces) {
|
} else if (st == ST_SHAPE && include_solids_and_surfaces) {
|
||||||
#include "IfcRegisterConvertShape.h"
|
#include "mapping_shape.i"
|
||||||
} else if (st == ST_FACE && include_solids_and_surfaces) {
|
} else if (st == ST_FACE && include_solids_and_surfaces) {
|
||||||
processed = true;
|
processed = true;
|
||||||
success = convert_face(l, r);
|
success = convert_face(l, r);
|
||||||
@@ -112,7 +112,7 @@ bool IfcGeom::Kernel::convert_shape(const IfcBaseInterface* l, TopoDS_Shape& r)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool IfcGeom::Kernel::convert_wire(const IfcBaseInterface* l, TopoDS_Wire& r) {
|
bool IfcGeom::Kernel::convert_wire(const IfcBaseInterface* l, TopoDS_Wire& r) {
|
||||||
#include "IfcRegisterConvertWire.h"
|
#include "mapping_wire.i"
|
||||||
Handle(Geom_Curve) curve;
|
Handle(Geom_Curve) curve;
|
||||||
if (IfcGeom::Kernel::convert_curve(l, curve)) {
|
if (IfcGeom::Kernel::convert_curve(l, curve)) {
|
||||||
return IfcGeom::Kernel::convert_curve_to_wire(curve, r);
|
return IfcGeom::Kernel::convert_curve_to_wire(curve, r);
|
||||||
@@ -122,13 +122,13 @@ bool IfcGeom::Kernel::convert_wire(const IfcBaseInterface* l, TopoDS_Wire& r) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool IfcGeom::Kernel::convert_face(const IfcBaseInterface* l, TopoDS_Shape& r) {
|
bool IfcGeom::Kernel::convert_face(const IfcBaseInterface* l, TopoDS_Shape& r) {
|
||||||
#include "IfcRegisterConvertFace.h"
|
#include "mapping_face.i"
|
||||||
Logger::Message(Logger::LOG_ERROR,"No operation defined for:",l);
|
Logger::Message(Logger::LOG_ERROR,"No operation defined for:",l);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IfcGeom::Kernel::convert_curve(const IfcBaseInterface* l, Handle(Geom_Curve)& r) {
|
bool IfcGeom::Kernel::convert_curve(const IfcBaseInterface* l, Handle(Geom_Curve)& r) {
|
||||||
#include "IfcRegisterConvertCurve.h"
|
#include "mapping_curve.i"
|
||||||
Logger::Message(Logger::LOG_ERROR,"No operation defined for:",l);
|
Logger::Message(Logger::LOG_ERROR,"No operation defined for:",l);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* *
|
* *
|
||||||
* This file is part of IfcOpenShell. *
|
* This file is part of IfcOpenShell. *
|
||||||
* *
|
* *
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#include "mapping_undefine.i"
|
||||||
|
#define CLASS(T,V) \
|
||||||
|
std::map<int,V> T;
|
||||||
|
#include "mapping_define_missing.i"
|
||||||
|
|
||||||
|
#include "mapping.i"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
#include "mapping_undefine.i"
|
||||||
#define CURVE(T) \
|
#define CURVE(T) \
|
||||||
if (l->as<IfcSchema::T>()) return convert(l->as<IfcSchema::T>(), r);
|
if (l->as<IfcSchema::T>()) return convert(l->as<IfcSchema::T>(), r);
|
||||||
#include "IfcRegisterDef.h"
|
#include "mapping_define_missing.i"
|
||||||
|
|
||||||
#include "IfcRegister.h"
|
#include "mapping.i"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#ifndef SHAPES
|
#ifndef SHAPES
|
||||||
#define SHAPES(T)
|
#define SHAPES(T)
|
||||||
#endif
|
#endif
|
||||||
#ifndef SHAPE
|
#ifndef SHAPE
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
#include "mapping_undefine.i"
|
||||||
#define FACE(T) \
|
#define FACE(T) \
|
||||||
if (l->as<IfcSchema::T>()) return convert(l->as<IfcSchema::T>(), r);
|
if (l->as<IfcSchema::T>()) return convert(l->as<IfcSchema::T>(), r);
|
||||||
#include "IfcRegisterDef.h"
|
#include "mapping_define_missing.i"
|
||||||
|
|
||||||
#include "IfcRegister.h"
|
#include "mapping.i"
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
#include "mapping_undefine.i"
|
||||||
#define CLASS(T,V) bool convert(const IfcSchema::T* L, V& r);
|
#define CLASS(T,V) bool convert(const IfcSchema::T* L, V& r);
|
||||||
#define SHAPES(T) CLASS(T,IfcRepresentationShapeItems)
|
#define SHAPES(T) CLASS(T,IfcRepresentationShapeItems)
|
||||||
#define SHAPE(T) CLASS(T,TopoDS_Shape)
|
#define SHAPE(T) CLASS(T,TopoDS_Shape)
|
||||||
#define WIRE(T) CLASS(T,TopoDS_Wire)
|
#define WIRE(T) CLASS(T,TopoDS_Wire)
|
||||||
#define FACE(T) CLASS(T,TopoDS_Shape)
|
#define FACE(T) CLASS(T,TopoDS_Shape)
|
||||||
#define CURVE(T) CLASS(T,Handle(Geom_Curve))
|
#define CURVE(T) CLASS(T,Handle(Geom_Curve))
|
||||||
#include "IfcRegisterDef.h"
|
#include "mapping_define_missing.i"
|
||||||
|
|
||||||
#include "IfcRegister.h"
|
#include "mapping.i"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#include "mapping_undefine.i"
|
||||||
|
#define CLASS(T,V) \
|
||||||
|
T.clear();
|
||||||
|
#include "mapping_define_missing.i"
|
||||||
|
|
||||||
|
#include "mapping.i"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
#include "mapping_undefine.i"
|
||||||
#define SHAPE(T) \
|
#define SHAPE(T) \
|
||||||
if (!processed && l->as<IfcSchema::T>()) { \
|
if (!processed && l->as<IfcSchema::T>()) { \
|
||||||
processed = true; \
|
processed = true; \
|
||||||
@@ -21,6 +21,6 @@
|
|||||||
return false; \
|
return false; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
#include "IfcRegisterDef.h"
|
#include "mapping_define_missing.i"
|
||||||
|
|
||||||
#include "IfcRegister.h"
|
#include "mapping.i"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
#include "mapping_undefine.i"
|
||||||
#define SHAPES(T) \
|
#define SHAPES(T) \
|
||||||
if ( l->declaration().is(IfcSchema::T::Class()) ) return ST_SHAPELIST;
|
if ( l->declaration().is(IfcSchema::T::Class()) ) return ST_SHAPELIST;
|
||||||
#define SHAPE(T) \
|
#define SHAPE(T) \
|
||||||
@@ -9,6 +9,6 @@
|
|||||||
if ( l->declaration().is(IfcSchema::T::Class()) ) return ST_FACE;
|
if ( l->declaration().is(IfcSchema::T::Class()) ) return ST_FACE;
|
||||||
#define CURVE(T) \
|
#define CURVE(T) \
|
||||||
if ( l->declaration().is(IfcSchema::T::Class()) ) return ST_CURVE;
|
if ( l->declaration().is(IfcSchema::T::Class()) ) return ST_CURVE;
|
||||||
#include "IfcRegisterDef.h"
|
#include "mapping_define_missing.i"
|
||||||
|
|
||||||
#include "IfcRegister.h"
|
#include "mapping.i"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
#include "mapping_undefine.i"
|
||||||
#define SHAPES(T) \
|
#define SHAPES(T) \
|
||||||
if (l->as<IfcSchema::T>()) { \
|
if (l->as<IfcSchema::T>()) { \
|
||||||
try { \
|
try { \
|
||||||
@@ -13,6 +13,6 @@
|
|||||||
} \
|
} \
|
||||||
return false; \
|
return false; \
|
||||||
}
|
}
|
||||||
#include "IfcRegisterDef.h"
|
#include "mapping_define_missing.i"
|
||||||
|
|
||||||
#include "IfcRegister.h"
|
#include "mapping.i"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#ifdef SHAPES
|
#ifdef SHAPES
|
||||||
#undef SHAPES
|
#undef SHAPES
|
||||||
#endif
|
#endif
|
||||||
#ifdef SHAPE
|
#ifdef SHAPE
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "IfcRegisterUndef.h"
|
#include "mapping_undefine.i"
|
||||||
#define WIRE(T) \
|
#define WIRE(T) \
|
||||||
if (l->as<IfcSchema::T>()) return convert(l->as<IfcSchema::T>(), r);
|
if (l->as<IfcSchema::T>()) return convert(l->as<IfcSchema::T>(), r);
|
||||||
#include "IfcRegisterDef.h"
|
#include "mapping_define_missing.i"
|
||||||
|
|
||||||
#include "IfcRegister.h"
|
#include "mapping.i"
|
||||||
Reference in New Issue
Block a user