mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +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)
|
||||
|
||||
# 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)
|
||||
set(IFCGEOM_FILES ${IFCGEOM_CPP_FILES} ${IFCGEOM_H_FILES})
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/********************************************************************************
|
||||
/********************************************************************************
|
||||
* *
|
||||
* This file is part of IfcOpenShell. *
|
||||
* *
|
||||
@@ -107,7 +107,7 @@ namespace IfcGeom {
|
||||
|
||||
class IFC_GEOM_API MAKE_TYPE_NAME(Cache) {
|
||||
public:
|
||||
#include "IfcRegisterCreateCache.h"
|
||||
#include "mapping_cache.i"
|
||||
std::map<int, TopoDS_Shape> Shape;
|
||||
};
|
||||
|
||||
@@ -536,7 +536,7 @@ public:
|
||||
|
||||
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 double getValue(GeomValue var) const;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/********************************************************************************
|
||||
/********************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
@@ -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. *
|
||||
* *
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/********************************************************************************
|
||||
/********************************************************************************
|
||||
* *
|
||||
* 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. *
|
||||
* *
|
||||
@@ -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. *
|
||||
* *
|
||||
@@ -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. *
|
||||
* *
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/********************************************************************************
|
||||
/********************************************************************************
|
||||
* *
|
||||
* This file is part of IfcOpenShell. *
|
||||
* *
|
||||
@@ -40,13 +40,13 @@ bool IfcGeom::Kernel::convert_shapes(const IfcBaseInterface* l, IfcRepresentatio
|
||||
return false;
|
||||
}
|
||||
|
||||
#include "IfcRegisterConvertShapes.h"
|
||||
#include "mapping_shapes.i"
|
||||
Logger::Message(Logger::LOG_ERROR,"No operation defined for:",l);
|
||||
return false;
|
||||
}
|
||||
|
||||
IfcGeom::ShapeType IfcGeom::Kernel::shape_type(const IfcBaseInterface* l) {
|
||||
#include "IfcRegisterShapeType.h"
|
||||
#include "mapping_shape_type.i"
|
||||
return ST_OTHER;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ bool IfcGeom::Kernel::convert_shape(const IfcBaseInterface* l, TopoDS_Shape& r)
|
||||
IfcRepresentationShapeItems items;
|
||||
success = convert_shapes(l, items) && flatten_shape_list(items, r, false);
|
||||
} 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) {
|
||||
processed = true;
|
||||
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) {
|
||||
#include "IfcRegisterConvertWire.h"
|
||||
#include "mapping_wire.i"
|
||||
Handle(Geom_Curve) curve;
|
||||
if (IfcGeom::Kernel::convert_curve(l, curve)) {
|
||||
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) {
|
||||
#include "IfcRegisterConvertFace.h"
|
||||
#include "mapping_face.i"
|
||||
Logger::Message(Logger::LOG_ERROR,"No operation defined for:",l);
|
||||
return false;
|
||||
}
|
||||
|
||||
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);
|
||||
return false;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
/********************************************************************************
|
||||
/********************************************************************************
|
||||
* *
|
||||
* 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) \
|
||||
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)
|
||||
#endif
|
||||
#ifndef SHAPE
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "IfcRegisterUndef.h"
|
||||
#include "mapping_undefine.i"
|
||||
#define FACE(T) \
|
||||
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 SHAPES(T) CLASS(T,IfcRepresentationShapeItems)
|
||||
#define SHAPE(T) CLASS(T,TopoDS_Shape)
|
||||
#define WIRE(T) CLASS(T,TopoDS_Wire)
|
||||
#define FACE(T) CLASS(T,TopoDS_Shape)
|
||||
#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) \
|
||||
if (!processed && l->as<IfcSchema::T>()) { \
|
||||
processed = true; \
|
||||
@@ -21,6 +21,6 @@
|
||||
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) \
|
||||
if ( l->declaration().is(IfcSchema::T::Class()) ) return ST_SHAPELIST;
|
||||
#define SHAPE(T) \
|
||||
@@ -9,6 +9,6 @@
|
||||
if ( l->declaration().is(IfcSchema::T::Class()) ) return ST_FACE;
|
||||
#define CURVE(T) \
|
||||
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) \
|
||||
if (l->as<IfcSchema::T>()) { \
|
||||
try { \
|
||||
@@ -13,6 +13,6 @@
|
||||
} \
|
||||
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
|
||||
#endif
|
||||
#ifdef SHAPE
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "IfcRegisterUndef.h"
|
||||
#include "mapping_undefine.i"
|
||||
#define WIRE(T) \
|
||||
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