CFx SDK Documentation
2020SP3
|
#include <DbPointCloudClipping.h>
Public Types | |
enum | ClipType { CT_BOX = 1, CT_RECTANGLE = 2, CT_POLYLINE = 3 } |
Public Member Functions | |
OdDbPointCloudClipping () | |
bool | operator== (const OdDbPointCloudClipping &) const |
bool | isValid () const |
OdInt16 | length () const |
void | setBox (OdGePoint3d const &, OdGePoint3d const &) |
void | setRectangle (OdGePoint2d const &, OdGePoint2d const &) |
void | setBoundary (const OdGePoint2dArray &) |
OdResult | dwgInFields (OdDbDwgFiler *pFiler) |
void | dwgOutFields (OdDbDwgFiler *pFiler) const |
OdResult | dxfInFields (OdDbDxfFiler *pFiler) |
void | dxfOutFields (OdDbDxfFiler *pFiler, int &ind1, int &ind2, int &ind3) const |
ClipType | type () const |
void | setZMax (const double) |
void | setZMin (const double) |
double | zMax () const |
double | zMin () const |
void | setInverted (const bool) |
bool | isInverted () const |
const OdGePoint2dArray & | vertices () const |
This class represents clipping boundaries for point cloud entities.
Corresponding C++ library: AcDbPointCloudObj
<group OdDbPointCloud_Classes>
Definition at line 41 of file DbPointCloudClipping.h.
Defines clipping boundary types.
Enumerator | |
---|---|
CT_BOX | |
CT_RECTANGLE | |
CT_POLYLINE |
Definition at line 47 of file DbPointCloudClipping.h.
OdDbPointCloudClipping::OdDbPointCloudClipping | ( | ) |
Default constructor. Creates an OdDbPointCloudClipping instance.
OdResult OdDbPointCloudClipping::dwgInFields | ( | OdDbDwgFiler * | pFiler | ) |
void OdDbPointCloudClipping::dwgOutFields | ( | OdDbDwgFiler * | pFiler | ) | const |
OdResult OdDbPointCloudClipping::dxfInFields | ( | OdDbDxfFiler * | pFiler | ) |
void OdDbPointCloudClipping::dxfOutFields | ( | OdDbDxfFiler * | pFiler, |
int & | ind1, | ||
int & | ind2, | ||
int & | ind3 | ||
) | const |
bool OdDbPointCloudClipping::isInverted | ( | ) | const |
Returns true if only the boundary is inverted.
bool OdDbPointCloudClipping::isValid | ( | ) | const |
Check whether the boundary is valid. Returns true only if a number of vertices matches the boundary type: box or rectangular boundary must have two vertices, polygonal - at least 3 vertices.
OdInt16 OdDbPointCloudClipping::length | ( | ) | const |
Returns the number of vertices of this clipping boundary.
bool OdDbPointCloudClipping::operator== | ( | const OdDbPointCloudClipping & | ) | const |
void OdDbPointCloudClipping::setBoundary | ( | const OdGePoint2dArray & | ) |
Sets this clipping boundary to a polygonal clipping boundary with the specified vertices.
points | [in] - Array of vertices. |
void OdDbPointCloudClipping::setBox | ( | OdGePoint3d const & | , |
OdGePoint3d const & | |||
) |
Sets this clipping boundary to a parallelepiped clipping boundary with the specified diagonal vertices.
p1 | [in] - First corner. |
p2 | [in] - Second corner. |
void OdDbPointCloudClipping::setInverted | ( | const bool | ) |
Sets the boundary to inverted.
void OdDbPointCloudClipping::setRectangle | ( | OdGePoint2d const & | , |
OdGePoint2d const & | |||
) |
Sets this clipping boundary to a rectangle clipping boundary with the specified diagonal vertices.
p1 | [in] - First vertex. |
p2 | [in] - Second vertex. |
void OdDbPointCloudClipping::setZMax | ( | const double | ) |
Sets the maximum value of Z-coordinate.
void OdDbPointCloudClipping::setZMin | ( | const double | ) |
Sets the minimum value of Z-coordinate.
ClipType OdDbPointCloudClipping::type | ( | ) | const |
Returns the type of this clipping boundary.
const OdGePoint2dArray& OdDbPointCloudClipping::vertices | ( | ) | const |
Returns closed boundary
double OdDbPointCloudClipping::zMax | ( | ) | const |
Returns the minimum value of Z-coordinate.
double OdDbPointCloudClipping::zMin | ( | ) | const |
Returns the minimum value of Z-coordinate.