CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbPointCloudCropping.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 _OD_DB_POINTCLOUDCROPPING_
25#define _OD_DB_POINTCLOUDCROPPING_
26
27#include "TD_PackPush.h"
29#include "DbObject.h"
30#include "Ge/GePoint3d.h"
31#include "Ge/GePoint2dArray.h"
32#include "Ge/GePlane.h"
33
34
35class OdGiGeometry;
36
45{
46public:
51 {
52 CT_INVALID = 0, //Box
53 CT_RECTANGLE, //Rectangular boundary
54 CT_POLYLINE, //Polyline boundary
55 CT_CIRCULAR //Circular bounfary
56 };
57
62
68
70
75 bool isValid() const;
76
80 OdInt16 length() const;
81
85 CropType type() const;
86
91
95 void setInverted(const bool);
96
100 bool isInverted() const;
101
105 const OdGePoint3dArray& get() const;
106
110 void set( const OdGePoint3dArray& points) ;
111
115 bool getCropPlane( OdGePlane& plane ) const;
116
120 void setCropPlane( const OdGePlane& plane ) ;
121
125 void setInside(const bool);
126
130 bool isInside() const;
131
135 void clear();
136
140 virtual void draw( OdGiGeometry &geom );
141
143 void dwgOutFields( OdDbDwgFiler *pFiler ) const;
144
146 void dxfOutFields( OdDbDxfFiler *pFiler, OdInt16 &dvfInt8, OdInt16 &dxfInt32, OdInt16 &dxfXCoord, OdInt16 &dxfNormalX ) const;
147
148
149private:
150
151 OdInt8 m_type;
152 bool m_isInside;
153 bool m_inverted;
154 OdGePlane m_plane;
155 OdGePoint3dArray m_points;
156};
157
158#include "TD_PackPop.h"
159
160#endif //_OD_DB_POINTCLOUDCROPPING_
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > > OdGePoint3dArray
#define DBPOINTCLOUDOBJ_EXPORT
bool operator==(T left, const OdGiVariant::EnumType right)
Definition GiVariant.h:399
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)
virtual ~OdDbPointCloudCropping()
void setCropType(CropType type)
void dxfOutFields(OdDbDxfFiler *pFiler, OdInt16 &dvfInt8, OdInt16 &dxfInt32, OdInt16 &dxfXCoord, OdInt16 &dxfNormalX) const
const OdGePoint3dArray & get() const
CropType type() const
void setInverted(const bool)