CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
GsColDetReactor.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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 __GS_COLLISION_DETECTION_REACTOR_H_INCLUDED_
25#define __GS_COLLISION_DETECTION_REACTOR_H_INCLUDED_
26
27class OdGiPathNode;
28
29#include "TD_PackPush.h"
30
31#include "Ge/GeTol.h"
32
45{
46public:
47 enum
48 {
49 kNotImplemented = 0x80000000,
52 };
62 virtual OdUInt32 collisionDetected(const OdGiPathNode* /*pPathNode1*/, const OdGiPathNode* /*pPathNode2*/)
63 {
65 }
66
77 virtual OdUInt32 collisionDetected( const OdGiPathNode* pPathNode1, const OdGiPathNode* pPathNode2, double dDistance )
78 {
79 return collisionDetected( pPathNode1, pPathNode2 );
80 }
81};
82
92{
93//DOM-IGNORE-BEGIN
94protected:
109//DOM-IGNORE-END
110public:
115
120 void setIntersectionOnly( bool bSet ) { SETBIT( m_flags, kIntersectionOnly, bSet ); }
121
128
134
141
146 void setIgnoreViewExtents( bool bSet ) { SETBIT( m_flags, kIgnoreViewExtents, bSet ); }
147
173
182 const OdGeTol& toleranceOverride() const { return m_tolerance; }
187 void setCalculateDistance( bool bSet ) { SETBIT( m_flags, kCalculateDistance, bSet ); }
197 void setCheckAll( bool bSet ) { SETBIT( m_flags, kCheckAll, bSet ); }
202 bool getCheckAll() const { return GETBIT( m_flags, kCheckAll ); }
207 void setClearance( double c ) { m_clearance = c; }
212 double getClearance() const { return m_clearance; }
218 void setProcessSingleList( bool bSet ) { SETBIT( m_flags, kProcessSingleList, bSet ); }
225};
226
227#include "TD_PackPop.h"
228
229#endif // __GS_COLLISION_DETECTION_REACTOR_H_INCLUDED_
tol
unsigned int OdUInt32
unsigned char OdUInt8
#define SETBIT(flags, bit, value)
Definition OdaDefs.h:516
#define GETBIT(flags, bit)
Definition OdaDefs.h:517
#define SETBIT_1(flags, bit)
Definition OdaDefs.h:520
void setToleranceOverride(const OdGeTol &tol)
void setIntersectionWithModel(bool bSet)
const OdGeTol & toleranceOverride() const
virtual OdUInt32 collisionDetected(const OdGiPathNode *pPathNode1, const OdGiPathNode *pPathNode2, double dDistance)
virtual OdUInt32 collisionDetected(const OdGiPathNode *, const OdGiPathNode *)