CFx SDK Documentation  2023 SP0
DbPointCloudDef.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 _ODDBPOINTCLOUDDEF_INCLUDED_
25 #define _ODDBPOINTCLOUDDEF_INCLUDED_ /* { Secret} */
26 
27 #include "DbPointCloudObjExports.h"
28 #include "TD_PackPush.h"
29 
30 #include "DbObject.h"
31 
46 {
47 public:
49 
54 
55  // Properties
63 
71 
78  OdString fileType(void) const;
79 
80 
88 
89 
97 
98 
102  bool isLoaded() const;
103 
104 
108  OdResult load(bool bModifyDatabase);
109 
113  void unload(bool bModifyDatabase);
114 
120  int entityCount(bool *) const;
121 
126 
130  double defaultHeight() const;
131 
135  double defaultLength() const;
136 
140  double defaultWidth() const;
141 
142 
150 
156  void setExtents(const OdGeExtents3d &);
157 
158  // File IO
159 
161  virtual void dwgOutFields(OdDbDwgFiler *) const;
163  virtual void dxfOutFields(OdDbDxfFiler *) const;
164 
165  static int classVersion();
166 
167  // Helper functions to access Point Cloud Definition dictionary
174 
180 
181 #if 0
182  OdResult createThumbnailBitmap(struct tagBITMAPINFO * &,int,int) const;
183  bool getPointCloudFileVersion(int &,int &) const;
184  bool hasProperty(const OdString&,bool &) const;
185  bool saveToVersion(const OdString&,int);
186 #endif
187 
188 // OdDbObject overridden methods
189  virtual OdResult subErase(bool erasing) ODRX_OVERRIDE;
190  virtual void subClose() ODRX_OVERRIDE;
191  virtual void subHandOverTo(OdDbObject* pNewObj) ODRX_OVERRIDE;
192  virtual OdDbObjectPtr subWblockClone(OdDbIdMapping& idMap, OdDbObject* owner, bool bPrimary) const ODRX_OVERRIDE;
193 };
194 
199 
200 
209 {
210 public:
213 
214  static int classVersion();
215 
216  // File IO
218  virtual void dwgOutFields(OdDbDwgFiler *) const;
220  virtual void dxfOutFields(OdDbDxfFiler *) const;
221 
222  // Notifications
223  virtual void erased(OdDbObject const * , bool) ; // not implemented
224  virtual void modified(OdDbObject const * ) ;
225 
226  static bool isEnabled();
227  static void setEnable(bool);
228 private:
229  static bool m_bEnabled;
230 };
232 
233 
234 #include "TD_PackPop.h"
235 
236 #endif
OdSmartPtr< OdDbPointCloudDefReactor > OdDbPointCloudDefReactorPtr
#define DBPOINTCLOUDOBJ_EXPORT
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
OdString sourceFileName() const
OdResult load(bool bModifyDatabase)
void setExtents(const OdGeExtents3d &)
OdUInt64 totalPointsCount() const
OdResult setSourceFileName(const OdString &)
bool isLoaded() const
void unload(bool bModifyDatabase)
static int classVersion()
virtual OdResult dwgInFields(OdDbDwgFiler *)
virtual OdResult dxfInFields(OdDbDxfFiler *)
OdResult getNativeCloudExtent(OdGeExtents3d &) const
double defaultHeight() const
virtual OdResult subErase(bool erasing) ODRX_OVERRIDE
OdString fileType(void) const
OdString activeFileName() const
OdResult setActiveFileName(const OdString &)
ODDB_DECLARE_MEMBERS(OdDbPointCloudDef)
int entityCount(bool *) const
static OdDbObjectId pointCloudDictionary(const OdDbDatabase &)
virtual void dwgOutFields(OdDbDwgFiler *) const
double defaultWidth() const
virtual void subClose() ODRX_OVERRIDE
static OdDbObjectId createPointCloudDictionary(OdDbDatabase &)
double defaultLength() const
virtual void dxfOutFields(OdDbDxfFiler *) const
static void setEnable(bool)
virtual OdResult dxfInFields(OdDbDxfFiler *)
virtual void dwgOutFields(OdDbDwgFiler *) const
virtual void erased(OdDbObject const *, bool)
virtual OdResult dwgInFields(OdDbDwgFiler *)
ODDB_DECLARE_MEMBERS(OdDbPointCloudDefReactor)
virtual void modified(OdDbObject const *)
virtual void dxfOutFields(OdDbDxfFiler *) const