CFx SDK Documentation  2023 SP0
DbPointCloudCropping.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_POINTCLOUDCROPPING_
25 #define _OD_DB_POINTCLOUDCROPPING_
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 #include "Ge/GePlane.h"
33 
34 
35 class OdGiGeometry;
36 
45 {
46 public:
50  enum CropType
51  {
52  CT_INVALID = 0, //Box
53  CT_RECTANGLE, //Rectangular boundary
54  CT_POLYLINE, //Polyline boundary
55  CT_CIRCULAR //Circular bounfary
56  };
57 
62 
64 
69  bool isValid() const;
70 
74  OdInt16 length() const;
75 
79  CropType type() const;
80 
85 
89  void setInverted(const bool);
90 
94  bool isInverted() const;
95 
99  const OdGePoint3dArray& get() const;
100 
104  void set( const OdGePoint3dArray& points) ;
105 
109  bool getCropPlane( OdGePlane& plane ) const;
110 
114  void setCropPlane( const OdGePlane& plane ) ;
115 
119  void setInside(const bool);
120 
124  bool isInside() const;
125 
129  void clear();
130 
134  virtual void draw( OdGiGeometry &geom );
135 
137  void dwgOutFields( OdDbDwgFiler *pFiler ) const;
138 
140  void dxfOutFields( OdDbDxfFiler *pFiler, OdInt16 &dvfInt8, OdInt16 &dxfInt32, OdInt16 &dxfXCoord, OdInt16 &dxfNormalX ) const;
141 
142 
143 private:
144 
145  OdInt8 m_type;
146  bool m_isInside;
147  bool m_inverted;
148  OdGePlane m_plane;
149  OdGePoint3dArray m_points;
150 };
151 
152 #include "TD_PackPop.h"
153 
154 #endif //_OD_DB_POINTCLOUDCROPPING_
#define DBPOINTCLOUDOBJ_EXPORT
short OdInt16
signed char OdInt8
OdResult
Definition: OdResult.h:29
void set(const OdGePoint3dArray &points)
void setCropPlane(const OdGePlane &plane)
OdInt16 length() const
bool isInverted() const
void setInside(const bool)
OdResult dxfInFields(OdDbDxfFiler *pFiler)
void dwgOutFields(OdDbDwgFiler *pFiler) const
OdResult dwgInFields(OdDbDwgFiler *pFiler)
bool getCropPlane(OdGePlane &plane) const
virtual void draw(OdGiGeometry &geom)
void setCropType(CropType type)
void dxfOutFields(OdDbDxfFiler *pFiler, OdInt16 &dvfInt8, OdInt16 &dxfInt32, OdInt16 &dxfXCoord, OdInt16 &dxfNormalX) const
CropType type() const
void setInverted(const bool)
const OdGePoint3dArray & get() const
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
bool operator==(const BlockRefPath &rA, const BlockRefPath &rB)
DOM.