CFx SDK Documentation
2024 SP0
Loading...
Searching...
No Matches
SDK
CFx
dd_inc
Ge
GeEntity2d.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
#ifndef OD_GE_ENTITY_2D_H
25
#define OD_GE_ENTITY_2D_H
27
class
OdGeMatrix2d
;
28
class
OdGeLine2d
;
29
class
OdGeEntity2dImpl;
30
31
#include "
Ge/GePoint2d.h
"
32
#include "
OdHeap.h
"
33
34
#include "
TD_PackPush.h
"
35
43
class
GE_TOOLKIT_EXPORT
OdGeEntity2d
44
{
45
public
:
46
//DOM-IGNORE-BEGIN
47
ODRX_HEAP_OPERATORS
();
48
//DOM-IGNORE-END
49
53
~OdGeEntity2d
();
54
60
bool
isKindOf
(
61
OdGe::EntityId
entType)
const
;
62
66
OdGe::EntityId
type
()
const
;
67
74
OdGeEntity2d
*
copy
()
const
;
75
84
OdGeEntity2d
& operator =(
85
const
OdGeEntity2d
& entity);
86
95
bool
operator ==
(
96
const
OdGeEntity2d
& entity)
const
;
97
106
bool
operator !=
(
107
const
OdGeEntity2d
& entity)
const
;
108
119
bool
isEqualTo
(
120
const
OdGeEntity2d
& other,
121
const
OdGeTol
&
tol
=
OdGeContext::gTol
)
const
;
122
129
OdGeEntity2d
&
transformBy
(
130
const
OdGeMatrix2d
& xfm);
131
138
OdGeEntity2d
&
translateBy
(
139
const
OdGeVector2d
& translateVec);
140
148
OdGeEntity2d
&
rotateBy
(
149
double
angle,
150
const
OdGePoint2d
& basePoint =
OdGePoint2d::kOrigin
);
151
158
OdGeEntity2d
&
mirror
(
159
const
OdGeLine2d
& line);
160
168
OdGeEntity2d
&
scaleBy
(
169
double
scaleFactor,
170
const
OdGePoint2d
& basePoint =
OdGePoint2d::kOrigin
);
171
178
bool
isOn
(
179
const
OdGePoint2d
& point,
180
const
OdGeTol
&
tol
=
OdGeContext::gTol
)
const
;
181
182
//DOM-IGNORE-BEGIN
183
protected
:
184
OdGeEntity2d
();
185
OdGeEntity2d
(
const
OdGeEntity2d
&);
186
void
connectTo
(OdGeEntity2dImpl*);
187
188
private
:
189
OdGeEntity2d
(OdGeEntity2dImpl*);
190
OdGeEntity2dImpl* m_pImpl;
191
friend
class
OdGeEntity2dImpl;
192
//DOM-IGNORE-BEGIN
193
};
194
195
#include "
TD_PackPop.h
"
196
197
#endif
// OD_GE_ENTITY_2D_H
198
tol
tol
Definition:
DimVarDefs.h:2287
GE_TOOLKIT_EXPORT
#define GE_TOOLKIT_EXPORT
Definition:
GeExport.h:49
GePoint2d.h
operator!=
bool operator!=(T left, const OdGiVariant::EnumType right)
Definition:
GiVariant.h:403
operator==
bool operator==(T left, const OdGiVariant::EnumType right)
Definition:
GiVariant.h:397
OdHeap.h
TD_PackPop.h
TD_PackPush.h
OdGeEntity2d
Definition:
GeEntity2d.h:44
OdGeEntity2d::connectTo
void connectTo(OdGeEntity2dImpl *)
OdGeEntity2d::transformBy
OdGeEntity2d & transformBy(const OdGeMatrix2d &xfm)
OdGeEntity2d::mirror
OdGeEntity2d & mirror(const OdGeLine2d &line)
OdGeEntity2d::rotateBy
OdGeEntity2d & rotateBy(double angle, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
OdGeEntity2d::type
OdGe::EntityId type() const
OdGeEntity2d::copy
OdGeEntity2d * copy() const
OdGeEntity2d::translateBy
OdGeEntity2d & translateBy(const OdGeVector2d &translateVec)
OdGeEntity2d::isEqualTo
bool isEqualTo(const OdGeEntity2d &other, const OdGeTol &tol=OdGeContext::gTol) const
OdGeEntity2d::scaleBy
OdGeEntity2d & scaleBy(double scaleFactor, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
OdGeEntity2d::isKindOf
bool isKindOf(OdGe::EntityId entType) const
OdGeEntity2d::isOn
bool isOn(const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const
OdGeEntity2d::OdGeEntity2d
OdGeEntity2d(const OdGeEntity2d &)
OdGeEntity2d::ODRX_HEAP_OPERATORS
ODRX_HEAP_OPERATORS()
OdGeEntity2d::~OdGeEntity2d
~OdGeEntity2d()
OdGeEntity2d::OdGeEntity2d
OdGeEntity2d()
OdGeLine2d
Definition:
GeLine2d.h:43
OdGeMatrix2d
Definition:
GeMatrix2d.h:79
OdGePoint2d
Definition:
GePoint2d.h:63
OdGePoint2d::kOrigin
static GE_STATIC_EXPORT const OdGePoint2d kOrigin
Definition:
GePoint2d.h:93
OdGeTol
Definition:
GeTol.h:49
OdGeVector2d
Definition:
GeVector2d.h:51
OdGeContext::gTol
static GE_STATIC_EXPORT OdGeTol gTol
Definition:
GeGbl.h:65
OdGe::EntityId
EntityId
Definition:
Ge.h:62
Generated on Wed Apr 5 2023 17:29:16