CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FMContoursBase.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 __FMCONTOURSBASE_H__
25#define __FMCONTOURSBASE_H__
26
27#include "FMGeometry.h"
28#include <Ge/GePoint2d.h>
29#include "DoubleArray.h"
30
31namespace FacetModeler
32{
40 enum Result
41 {
43 erOk = 0,
44
47
50
53
56
59
62
65
67 erErrors = 0x1000,
68
71
74
77
80
83
86
89
92
95
98
101
104
107
110
113
116
119
122
125
128
131 };
132
139 inline bool isOk(Result eRes)
140 {
141 return eRes < erErrors;
142 };
143
150 inline bool isWarning(Result eRes)
151 {
152 return eRes < erErrors && eRes >= erWarnings;
153 };
154
161 inline bool isError(Result eRes)
162 {
163 return eRes >= erErrors;
164 };
165
170 {
173
176
179
182 };
183
188 {
191
194
197
200 };
201
206 {
209
212
215 };
216
221 {
224
227
231
234 };
235
236 //DOM-IGNORE-BEGIN
238 {
243 };
244
246 {
251 };
252 //DOM-IGNORE-END
253
258 {
259 public:
263 enum Types
264 {
266 eitNone = 0,
267
270
273
275 eitTouch
276 };
277
281 Intersection() : dParamA(0), dParamB(0), eType(eitNone)
282 { }
283
287 Intersection(const OdGePoint2d& rPt, double dPA = 0, double dPB = 0, Types eIT = eitNone)
288 : ptPoint(rPt), dParamA(dPA), dParamB(dPB), eType(eIT)
289 { }
290
297 {
298 std::swap(dParamA, dParamB);
299 return *this;
300 };
301
309 inline static bool lessParamA(const Intersection& rI1, const Intersection& rI2)
310 {
311 return rI1.dParamA < rI2.dParamA;
312 };
313
321 inline static bool lessParamB(const Intersection& rI1, const Intersection& rI2)
322 {
323 return rI1.dParamB < rI2.dParamB;
324 };
325
326 public:
329
332
335
338 };
339};
340
341#endif //__FMCONTOURSBASE_H__
double OdDouble
Definition: DoubleArray.h:31
#define FMGEOMETRY_API
static bool lessParamA(const Intersection &rI1, const Intersection &rI2)
Intersection & swapParams()
static bool lessParamB(const Intersection &rI1, const Intersection &rI2)
Intersection(const OdGePoint2d &rPt, double dPA=0, double dPB=0, Types eIT=eitNone)
bool isOk(Result eRes)
bool isWarning(Result eRes)
bool isError(Result eRes)