CFx SDK Documentation  2023 SP0
DbPointCloudDefEx.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 _ODDBPOINTCLOUDDEFEX_INCLUDED_
25 #define _ODDBPOINTCLOUDDEFEX_INCLUDED_
26 
27 
28 #include "DbPointCloudObjExports.h"
29 #include "StringArray.h"
30 #include "TD_PackPush.h"
31 
32 #include "DbObject.h"
33 
37 {
38 public:
40 
41  enum PropState
42  {
43  kNone = -1,
44  kSome = 0,
45  kAll = 1
46  };
47 
48  enum Property
49  {
50  kColor = 1,
52  kClassification = 3,
53  kNormal = 4,
54  kSegmentation = 5,
55  kGeoGraphic = 6
56  };
57 
62 
70 
78 
85  const OdChar * activeFileName() const;
86 
87 
94  OdResult setActiveFileName( const OdChar * pPathName );
95 
102  const OdChar * fileType() const;
103 
104  // Helper functions to access Point Cloud Ex Definition dictionary
111 
117 
122 
126  bool isLoaded() const;
127 
132 
136  void unload();
137 
143  int entityCount(bool *pbLocked) const;
144 
149 
153  double defaultHeight() const;
154 
158  double defaultLength() const;
159 
163  double defaultWidth() const;
164 
172 
176 
180 
184 
187  OdString getRcsFilePath( const OdString &guid) const;
188 
191  void getAllRcsFilePaths( OdStringArray &list ) const;
192 
196 
200  OdResult createThumbnailBitmap( BITMAPINFO*& pBmpInfo, int width, int height ) const;
201 
202 
203 
204  // File IO
206  virtual void dwgOutFields( OdDbDwgFiler * ) const;
208  virtual void dxfOutFields( OdDbDxfFiler * ) const;
209 
210  static int classVersion();
211 
212 };
213 
215 
219 {
220 public:
223 
224  static int classVersion();
225 
226  // File IO
228  virtual void dwgOutFields( OdDbDwgFiler * ) const;
230  virtual void dxfOutFields( OdDbDxfFiler * ) const;
231 
232  // Notifications
233  virtual void erased( OdDbObject const *, bool ); // not implemented
234  virtual void modified( OdDbObject const * );
235 
236  static bool isEnabled();
237  static void setEnable( bool );
238 private:
239  static bool m_bEnabled;
240 };
241 
243 
244 #include "TD_PackPop.h"
245 
246 #endif //_ODDBPOINTCLOUDDEFEX_INCLUDED_
OdSmartPtr< OdDbPointCloudDefEx > OdDbPointCloudDefExPtr
OdSmartPtr< OdDbPointCloudDefReactorEx > OdDbPointCloudDefReactorExPtr
#define DBPOINTCLOUDOBJ_EXPORT
unsigned int OdUInt32
wchar_t OdChar
OdResult
Definition: OdResult.h:29
double defaultHeight() const
double defaultWidth() const
PropState hasProperty(Property prop) const
bool isLoaded() const
OdString coordinateSystemName() const
virtual OdResult dwgInFields(OdDbDwgFiler *)
OdResult setActiveFileName(const OdChar *pPathName)
OdString getRcsFilePath(const OdString &guid) const
OdUInt32 totalScansCount() const
static OdDbDictionary * getPointCloudExDictionary(OdDbPointCloudDefEx *pDefEx)
const OdChar * activeFileName() const
ODDB_DECLARE_MEMBERS(OdDbPointCloudDefEx)
void getAllRcsFilePaths(OdStringArray &list) const
static int classVersion()
virtual OdResult dxfInFields(OdDbDxfFiler *)
virtual void dwgOutFields(OdDbDwgFiler *) const
static OdDbObjectId createPointCloudExDictionary(OdDbDatabase *pDb)
int entityCount(bool *pbLocked) const
static OdDbObjectId pointCloudExDictionary(const OdDbDatabase *pDb)
OdUInt64 totalPointsCount() const
OdResult extents(OdGeExtents3d &exts) const
OdResult createThumbnailBitmap(BITMAPINFO *&pBmpInfo, int width, int height) const
OdUInt32 totalRegionsCount() const
OdResult setSourceFileName(const OdString &)
double defaultLength() const
const OdChar * fileType() const
OdString sourceFileName() const
virtual void dxfOutFields(OdDbDxfFiler *) const
virtual OdResult dwgInFields(OdDbDwgFiler *)
virtual void modified(OdDbObject const *)
virtual void dwgOutFields(OdDbDwgFiler *) const
static void setEnable(bool)
virtual void erased(OdDbObject const *, bool)
virtual OdResult dxfInFields(OdDbDxfFiler *)
ODDB_DECLARE_MEMBERS(OdDbPointCloudDefReactorEx)
virtual void dxfOutFields(OdDbDxfFiler *) const
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
@ kNone
Light mode is inherited from the annotation.