CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
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
27class OdGeMatrix2d;
28class OdGeLine2d;
29class OdGeEntity2dImpl;
30
31#include "Ge/GePoint2d.h"
32#include "OdHeap.h"
33
34#include "TD_PackPush.h"
35
44{
45public:
46//DOM-IGNORE-BEGIN
48//DOM-IGNORE-END
49
54
61 OdGe::EntityId entType) const;
62
67
75
84 OdGeEntity2d& operator =(
85 const OdGeEntity2d& entity);
86
96 const OdGeEntity2d& entity) const;
97
107 const OdGeEntity2d& entity) const;
108
120 const OdGeEntity2d& other,
121 const OdGeTol& tol = OdGeContext::gTol) const;
122
130 const OdGeMatrix2d& xfm);
131
139 const OdGeVector2d& translateVec);
140
149 double angle,
150 const OdGePoint2d& basePoint = OdGePoint2d::kOrigin);
151
159 const OdGeLine2d& line);
160
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
183protected:
186 void connectTo(OdGeEntity2dImpl*);
187
188private:
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
Definition: DimVarDefs.h:2287
#define GE_TOOLKIT_EXPORT
Definition: GeExport.h:49
bool operator!=(T left, const OdGiVariant::EnumType right)
Definition: GiVariant.h:403
bool operator==(T left, const OdGiVariant::EnumType right)
Definition: GiVariant.h:397
void connectTo(OdGeEntity2dImpl *)
OdGeEntity2d & transformBy(const OdGeMatrix2d &xfm)
OdGeEntity2d & mirror(const OdGeLine2d &line)
OdGeEntity2d & rotateBy(double angle, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
OdGe::EntityId type() const
OdGeEntity2d * copy() const
OdGeEntity2d & translateBy(const OdGeVector2d &translateVec)
bool isEqualTo(const OdGeEntity2d &other, const OdGeTol &tol=OdGeContext::gTol) const
OdGeEntity2d & scaleBy(double scaleFactor, const OdGePoint2d &basePoint=OdGePoint2d::kOrigin)
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:93
Definition: GeTol.h:49
static GE_STATIC_EXPORT OdGeTol gTol
Definition: GeGbl.h:65
EntityId
Definition: Ge.h:62