CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbPointCloud.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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#ifndef _OD_DB_POINTCLOUD_
26#define _OD_DB_POINTCLOUD_
27
31#include "TD_PackPush.h"
32
33#include "DbEntity.h"
34
43{
44public:
45
47
52
57
58 // Properties
59
64
71 OdResult setTransformation(const OdGeMatrix3d& transformation);
72
79 bool getSavedFileName(OdString & fileName) const;
80
89 bool setSavedFileName(const OdString& fileName);
90
97 bool getIndexFile(OdString & fileName) const;
98
107 bool setIndexFile(const OdString& fileName);
108
115
123 bool getSourceFile(OdUInt32 index, OdString & fileName) const;
124
129
136 bool addSourceFile(const OdString& fileName);
137
142
148 void setCoordSys(const OdString& coordSys);
149
155 bool locked() const;
156
162 void setLocked(bool flag);
163
169 bool useEntityColor()const;
170
176 void setUseEntityColor(bool flag);
177
182
188 void setPointCloudDefId(const OdDbObjectId pointCloudDefId);
189
197
205 void setReactorId(const OdDbObjectId pointCloudDefReactorId);
206
207
212
221
222
227
235 void setExtents(const OdGeExtents3d & exts);
236
237 //Intensity
238
239
245 bool showIntensity() const;
246
254 OdResult setShowIntensity(const bool intensity);
255
256
257 //bool hasIntensity() const;
258
259
264
272 OdResult setIntensityScheme(const int schemeIndex);
273
282
283 // Clipping
284
290 bool showClipping() const;
291
299 OdResult setShowClipping(const bool clipping);
300
304 int clippingCount() const;
305
306
315
324
329
330
340
350
351 // File IO
352
373
390 virtual void dwgOutFields(OdDbDwgFiler *pFiler) const;
391
412
429 virtual void dxfOutFields(OdDbDxfFiler *pFiler) const;
430
431 // Rendering
432
433 virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
434
435 virtual void subViewportDraw(OdGiViewportDraw* pVd) const;
436
443 virtual OdResult subGetGeomExtents(OdGeExtents3d& extents) const;
444
453 //DOM-IGNORE-BEGIN
454#if 0
455 // Require investigation
456 bool clearSelection(const OdString&);
457 bool select(PointCloudSelectionDef const &, const OdString &);
458 bool selectNone();
459 bool selectionId(const OdString&, struct _GUID &);
460
461 bool hasIntensity() const;
462
463 IPointProcess * ProcessPoints(IPointProcessor *, OdDbExtents *);
464 IPointProcess * ProcessPoints(IPointProcessor *, OdPointCloudViewFrustum *);
465
466 bool closestPoint(OdGePoint3d const &, OdGePoint3d const &,unsigned long &) const;
467 void UsePointBuffer(IPointCloudDataBuffer *);
468
469 IPointCloudEngine * getEngine() const;
470 OdResult getNativeCloudExtent(OdDbExtents &) const;
471 bool getPointCloudFileVersion(int &,int &) const;
472 void getViewFrustum(OdGiViewport &,OdPointCloudViewFrustum &,bool) const;
473 bool hasProperty(wchar_t const *,bool &) const;
474 bool isValid() const;
475 void markDirty();
476 void onViewChanged();
477 IPointCloudDataBuffer * pointData() const;
478 bool readPoints(OdDbExtents &, unsigned long);
479 bool readPoints(OdPointCloudViewFrustum &, unsigned long);
480 bool readPoints(unsigned long);
481 OdResult setPointCloudFilter(IPointCloudFilter *);
482 class IOdPcPointFilter * setPointFilter(IOdPcPointFilter *);
483 void setVisibleSelType(enum IPointCloudDataFile::selType);
484 enum IPointCloudDataFile::selType visibleSelType() const;
485#endif
486 //DOM-IGNORE-END
487};
492
509 OdDbBlockTableRecord* pBlockToAdd,
510 OdDbPointCloudPtr& newPointCloud,
511 const OdString& indexFile,
512 const OdString& sourceFile,
514 double scale = 1.0,
515 double rotation = 0.0,
517 );
518
519#include "TD_PackPop.h"
520
521#endif
DBPOINTCLOUDOBJ_EXPORT OdResult oddbCreatePointCloudEntity(OdDbBlockTableRecord *pBlockToAdd, OdDbPointCloudPtr &newPointCloud, const OdString &indexFile, const OdString &sourceFile, const OdGePoint3d &location=OdGePoint3d::kOrigin, double scale=1.0, double rotation=0.0, const OdGeVector3d &vAxis=OdGeVector3d::kZAxis)
OdSmartPtr< OdDbPointCloud > OdDbPointCloudPtr
Definition: DbPointCloud.h:491
#define DBPOINTCLOUDOBJ_EXPORT
scale
Definition: DimVarDefs.h:1684
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
bool getSavedFileName(OdString &fileName) const
bool addClippingBoundary(OdDbPointCloudClipping const &boundary)
bool getSourceFile(OdUInt32 index, OdString &fileName) const
void clearSourceFiles()
void setCoordSys(const OdString &coordSys)
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
bool getIndexFile(OdString &fileName) const
void resetClippingBoundary()
OdDbPointCloudClipping const * getConstPointCloudClipping(int nInd) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
bool showClipping() const
void setUseEntityColor(bool flag)
ODDB_DECLARE_MEMBERS(OdDbPointCloud)
void setExtents(const OdGeExtents3d &exts)
void setReactorId(const OdDbObjectId pointCloudDefReactorId)
int getIntensityScheme() const
OdResult setTransformation(const OdGeMatrix3d &transformation)
bool removeClippingBoundary(int nInd)
OdString getCoordSys() const
bool showIntensity() const
OdDbObjectId pointCloudDefId() const
bool addSourceFile(const OdString &fileName)
OdInt64 getPointCount()
OdResult setIntensityScheme(const int schemeIndex)
bool setSavedFileName(const OdString &fileName)
OdResult setShowClipping(const bool clipping)
OdUInt32 getSourceFileCount() const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setLocked(bool flag)
bool locked() const
OdDbPointCloudIntensityStyle * pIntensityStyle()
const OdDbPointCloudIntensityStyle & intensityStyle() const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
bool setIndexFile(const OdString &fileName)
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
OdDbPointCloudClipping * getPointCloudClipping(int nInd)
bool useEntityColor() const
void setPointCount(const OdUInt64 count)
OdResult setShowIntensity(const bool intensity)
OdGeExtents3d extents() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
int clippingCount() const
void setPointCloudDefId(const OdDbObjectId pointCloudDefId)
OdDbObjectId reactorId() const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
OdGeMatrix3d transformation() const
static GE_STATIC_EXPORT const OdGePoint3d kOrigin
Definition: GePoint3d.h:106
static GE_STATIC_EXPORT const OdGeVector3d kZAxis
Definition: GeVector3d.h:103
Definition: Int64.h:43
GLuint index
Definition: gles2_ext.h:265
GLsizei GLsizei * count
Definition: gles2_ext.h:276
GLint location
Definition: gles2_ext.h:284