CFx SDK Documentation  2023 SP0
GiRectIntersDetector.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 
25 
26 
27 #ifndef __ODGIRECTINTERSDETECTOR__
28 #define __ODGIRECTINTERSDETECTOR__
29 
30 
31 #include "Gi/GiConveyorNode.h"
32 #include "Ge/GeDoubleArray.h"
33 #include "Ge/GePoint2dArray.h"
34 
35 class OdGiDeviation;
37 
38 #include "TD_PackPush.h"
39 
48 {
49 public:
51 
52  virtual void set(const OdGePoint2d* points, // points defining sides of clipping prism perpendicular to XY
53  bool bClipLowerZ = false, // number of points is always two
54  double dLowerZ = 0.0,
55  bool bClipUpperZ = false,
56  double dUpperZ = 0.0) = 0;
57 
58  virtual void set(const OdGePoint2dArray& points, // points defining sides of clipping prism perpendicular to XY
59  bool bClipLowerZ = false, // number of points is always two
60  double dLowerZ = 0.0,
61  bool bClipUpperZ = false,
62  double dUpperZ = 0.0) = 0;
63 
64  virtual void get(OdGePoint2dArray& points,
65  bool& bClipLowerZ,
66  double& dLowerZ,
67  bool& bClipUpperZ,
68  double& dUpperZ) const = 0;
69 
72  virtual void setDeviation(const OdGeDoubleArray& deviations) = 0;
73 
76  virtual void setDeviation(const OdGiDeviation* pDeviation) = 0;
77 
80  virtual void setDrawContext(OdGiConveyorContext* pDrawCtx) = 0;
81 };
82 
84 
85 #include "TD_PackPop.h"
86 
87 #endif //#ifndef __ODGIRECTINTERSDETECTOR__
#define ODGI_EXPORT
Definition: GiExport.h:35
OdSmartPtr< OdGiRectIntersDetector > OdGiRectIntersDetectorPtr
virtual void get(OdGePoint2dArray &points, bool &bClipLowerZ, double &dLowerZ, bool &bClipUpperZ, double &dUpperZ) const =0
virtual void set(const OdGePoint2dArray &points, bool bClipLowerZ=false, double dLowerZ=0.0, bool bClipUpperZ=false, double dUpperZ=0.0)=0
ODRX_DECLARE_MEMBERS(OdGiRectIntersDetector)
virtual void setDeviation(const OdGiDeviation *pDeviation)=0
virtual void setDeviation(const OdGeDoubleArray &deviations)=0
virtual void setDrawContext(OdGiConveyorContext *pDrawCtx)=0
virtual void set(const OdGePoint2d *points, bool bClipLowerZ=false, double dLowerZ=0.0, bool bClipUpperZ=false, double dUpperZ=0.0)=0