CFx SDK Documentation  2023 SP0
DbPointCloudClipping.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_DB_POINTCLOUDCLIPPING_
25 #define _OD_DB_POINTCLOUDCLIPPING_
26 
27 #include "TD_PackPush.h"
28 #include "DbPointCloudObjExports.h"
29 #include "DbObject.h"
30 #include "Ge/GePoint3d.h"
31 #include "Ge/GePoint2dArray.h"
32 
33 
42 {
43 public:
47  enum ClipType
48  {
49  CT_BOX = 1, //Box
50  CT_RECTANGLE = 2, //Rectangular boundary
51  CT_POLYLINE = 3 //Polyline boundary
52  };
53 
58 
60 
65  bool isValid() const;
66 
70  OdInt16 length() const;
71 
72 
79  void setBox(OdGePoint3d const &, OdGePoint3d const &);
80 
87  void setRectangle(OdGePoint2d const &, OdGePoint2d const &);
88 
95 
97  void dwgOutFields(OdDbDwgFiler *pFiler) const;
98 
100  void dxfOutFields(OdDbDxfFiler *pFiler, int &ind1, int &ind2, int &ind3) const;
101 
105  ClipType type() const;
106 
110  void setZMax(const double);
111 
115  void setZMin(const double);
116 
120  double zMax() const;
121 
125  double zMin() const;
126 
127 
131  void setInverted(const bool);
132 
136  bool isInverted() const;
137 
141  const OdGePoint2dArray& vertices() const;
142 
143 
144 private:
145 
146  OdInt16 m_type;
147  bool m_inverted;
148  double m_zMax;
149  double m_zMin;
150 
151  OdGePoint2dArray m_points;
152 };
153 
154 #include "TD_PackPop.h"
155 
156 #endif
#define DBPOINTCLOUDOBJ_EXPORT
short OdInt16
OdResult
Definition: OdResult.h:29
void setZMin(const double)
OdInt16 length() const
double zMin() const
OdResult dwgInFields(OdDbDwgFiler *pFiler)
void dxfOutFields(OdDbDxfFiler *pFiler, int &ind1, int &ind2, int &ind3) const
void setZMax(const double)
OdResult dxfInFields(OdDbDxfFiler *pFiler)
bool isInverted() const
const OdGePoint2dArray & vertices() const
void setInverted(const bool)
ClipType type() const
void setBox(OdGePoint3d const &, OdGePoint3d const &)
double zMax() const
void setBoundary(const OdGePoint2dArray &)
void dwgOutFields(OdDbDwgFiler *pFiler) const
void setRectangle(OdGePoint2d const &, OdGePoint2d const &)
bool operator==(const BlockRefPath &rA, const BlockRefPath &rB)
DOM.