CFx SDK Documentation  2023 SP0
GeEntity2d.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 
44 {
45 public:
47 
53  bool isKindOf(
54  OdGe::EntityId entType) const;
55 
60 
67  OdGeEntity2d* copy() const;
68 
69  OdGeEntity2d& operator =(
70  const OdGeEntity2d& entity);
71 
73  const OdGeEntity2d& entity) const;
74 
76  const OdGeEntity2d& entity) const;
77 
88  bool isEqualTo(
89  const OdGeEntity2d& other,
90  const OdGeTol& tol = OdGeContext::gTol) const;
91 
99  const OdGeMatrix2d& xfm);
100 
108  const OdGeVector2d& translateVec);
109 
118  double angle,
119  const OdGePoint2d& basePoint = OdGePoint2d::kOrigin);
120 
128  const OdGeLine2d& line);
129 
138  double scaleFactor,
139  const OdGePoint2d& basePoint = OdGePoint2d::kOrigin);
140 
147  bool isOn(
148  const OdGePoint2d& point,
149  const OdGeTol& tol = OdGeContext::gTol) const;
150 
152 protected:
155  void connectTo(OdGeEntity2dImpl*);
156 
157 private:
158  OdGeEntity2d(OdGeEntity2dImpl*);
159  OdGeEntity2dImpl* m_pImpl;
160  friend class OdGeEntity2dImpl;
161 };
162 
163 #include "TD_PackPop.h"
164 
165 #endif // OD_GE_ENTITY_2D_H
166 
tol
Definition: DimVarDefs.h:2287
#define GE_TOOLKIT_EXPORT
Definition: GeExport.h:49
void connectTo(OdGeEntity2dImpl *)
OdGeEntity2d & scaleBy(double scaleFactor, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
OdGeEntity2d & translateBy(const OdGeVector2d &translateVec)
OdGeEntity2d & transformBy(const OdGeMatrix2d &xfm)
OdGe::EntityId type() const
OdGeEntity2d * copy() const
bool isEqualTo(const OdGeEntity2d &other, const OdGeTol &tol=OdGeContext::gTol) const
OdGeEntity2d & rotateBy(double angle, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
OdGeEntity2d & mirror(const OdGeLine2d &line)
bool isKindOf(OdGe::EntityId entType) const
bool isOn(const OdGePoint2d &point, const OdGeTol &tol=OdGeContext::gTol) const
OdGeEntity2d(const OdGeEntity2d &)
static GE_STATIC_EXPORT const OdGePoint2d kOrigin
Definition: GePoint2d.h:80
Definition: GeTol.h:49
bool operator==(const BlockRefPath &rA, const BlockRefPath &rB)
DOM.
bool operator!=(const BlockRefPath &rA, const BlockRefPath &rB)
DOM.
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:60
EntityId
Definition: Ge.h:53