CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
IfcModelProcessor.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef _IFC_MODEL_PROCESSOR_H
25#define _IFC_MODEL_PROCESSOR_H
26
27#include "IfcBuildOptions.h"
28
29#include "IfcModel.h"
30#include "IfcEntity.h"
31#include "IfcModelOps.h"
32
33#include "daiObjectId.h"
34#include "daiObjectSDAI.h"
35
36#include "daiUtils/daiModelProcessor.h"
37
38namespace OdIfc {
42 namespace ModelOps {
47 {
48 public:
49
54
59 IfcModelProcessor(const OdDAI::ModelPtr targetModel);
60
65 void setTargetLocation(OdGePoint3d targetPoint);
66
71 void setTargetOffset(OdGePoint3d targetOffset);
72
79 OdDAIObjectId ifcCloneTo(const OdDAIObjectId& sourceProduct, const OdDAIObjectId& targetProduct);
80
87 OdDAIObjectId cloneContainedInRelAggregate(const OdDAIObjectId& sourceProduct, const OdDAIObjectId& targetProduct);
88
95 OdDAIObjectId cloneContainedInSpatialStructure(const OdDAIObjectId& sourceProduct, const OdDAIObjectId& targetProduct);
96
103 OdDAIObjectId cloneProductShallow(const OdDAIObjectId& sourceProduct, const OdDAIObjectId& targetProduct);
104
110 OdDAIObjectId getAbsolutePlacement(const OdDAI::ApplicationInstancePtr instance);
111
118 OdDAIObjectId ifcCombineWith(const OdDAI::ModelPtr sourceModel, OdIfc::ModelOps::MergeLevel level);
119
120 private:
121 void processLocation(OdDAI::ModelOps::DaiStrategy & cloneStrategy, const OdDAIObjectId & clonedProductId);
122
123 OdDAI::ModelPtr m_sourceModel;
124 OdDAI::ModelPtr m_targetModel;
125 OdDAI::ModelOps::ModelCtxPtr m_context;
126
127 };
128
129 }
130}
131
132
133#endif // _IFC_MODEL_PROCESSOR_H
#define IFCCORE_EXPORT
OdDAIObjectId getAbsolutePlacement(const OdDAI::ApplicationInstancePtr instance)
void setTargetOffset(OdGePoint3d targetOffset)
OdDAIObjectId ifcCloneTo(const OdDAIObjectId &sourceProduct, const OdDAIObjectId &targetProduct)
OdDAIObjectId cloneContainedInSpatialStructure(const OdDAIObjectId &sourceProduct, const OdDAIObjectId &targetProduct)
OdDAIObjectId cloneContainedInRelAggregate(const OdDAIObjectId &sourceProduct, const OdDAIObjectId &targetProduct)
OdDAIObjectId cloneProductShallow(const OdDAIObjectId &sourceProduct, const OdDAIObjectId &targetProduct)
IfcModelProcessor(const OdDAI::ModelPtr targetModel)
OdDAIObjectId ifcCombineWith(const OdDAI::ModelPtr sourceModel, OdIfc::ModelOps::MergeLevel level)
void setTargetLocation(OdGePoint3d targetPoint)
GLint level
Definition gles2_ext.h:110