CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
IfcCurve.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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// IfcCurve.h: interface for the Od wrapper over IfcCurve and subtypes.
25//
27
28#ifndef _IFC_CURVE_H_
29#define _IFC_CURVE_H_
30
31#include "Ge/GePolyline3d.h"
32#include "Ge/GeCircArc3d.h"
33#include "Ge/GeEllipArc3d.h"
34#include "Ge/GeLineSeg3d.h"
36
38
42namespace OdIfc {
43
48 {
49 //DOM-IGNORE-BEGIN
51 //DOM-IGNORE-END
52
53 public:
54
59 virtual OdGe::EntityId entityId() const { return m_pCurve->type(); }
60
65 virtual OdGeCurve3d* getGeCurveCopy() const { return static_cast<OdGeCurve3d*>(m_pCurve->copy()); }
66
71 const OdGeCurve3d* getGeCurve() const { return m_pCurve.get(); }
72
79
84 inline virtual bool is3d() const { return m_is3d; }
85
91 inline void setIs3d(bool val) { m_is3d = val; }
92
93 //DOM-IGNORE-BEGIN
94 protected:
95
97
99
100 void getMatrix(OdIfcEntityPtr pPosition, OdGeMatrix3d& matr);
101
102 private:
103 bool m_is3d;
104 //DOM-IGNORE-END
105 };
106
111
112} // namespace
113
114#endif // _IFC_CURVE_H_
#define IFCGEOM_EXPORT
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
#define ODRX_DECLARE_MEMBERS(ClassName)
Definition: RxObject.h:112
void getMatrix(OdIfcEntityPtr pPosition, OdGeMatrix3d &matr)
OdGeMatrix3d m_transform
Definition: IfcCurve.h:96
virtual bool is3d() const
Definition: IfcCurve.h:84
OdGeCurve3dPtr m_pCurve
Definition: IfcCurve.h:98
const OdGeCurve3d * getGeCurve() const
Definition: IfcCurve.h:71
void setIs3d(bool val)
Definition: IfcCurve.h:91
virtual OdGeCurve3d * getGeCurveCopy() const
Definition: IfcCurve.h:65
virtual OdGe::EntityId entityId() const
Definition: IfcCurve.h:59
OdResult transfromBy(const OdGeMatrix3d &transform) ODRX_OVERRIDE
OdSmartPtr< OdIfcCurve > OdIfcCurvePtr
Definition: IfcCurve.h:110
EntityId
Definition: Ge.h:62