CFx SDK Documentation  2022 SP0
DbPointCloudEx.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 _OD_DB_POINTCLOUDEX_
25 #define _OD_DB_POINTCLOUDEX_
26 
27 #include "DbPointCloudObjExports.h"
28 #include "DbPointCloudCropping.h"
30 #include "TD_PackPush.h"
31 
32 #include "DbEntity.h"
33 
42 {
43 public:
44 
46 
51 
56 
61 
67  void setPointCloudDefExId( const OdDbObjectId pointCloudDefExId );
68 
77 
86  void setReactorId( const OdDbObjectId pointCloudDefReactorExId );
87 
91  bool locked() const;
92 
96  void setLocked( bool bLocked );
97 
101  double scale() const;
102 
106  void setScale( double scale );
107 
111  double rotation() const;
112 
116  void setRotation( double newRotation );
117 
122 
126  void setLocation( OdGePoint3d newLocation );
127 
131  void getNativeCloudExtent( OdGeExtents3d extents ) const;
132 
136  unsigned int getVisiblePointCount( OdGeExtents3d extents );
137 
141  unsigned int getLoadedVisiblePointCount( OdGeExtents3d extents );
142 
147 
151  bool getActiveFileName( OdString& fileName ) const;
152 
156  bool setActiveFileName( const OdChar* strActiveFileName );
157 
162 
167 
168  //
169 
174 
179 
184 
189 
194 
198  bool getCroppingInvert() const;
199 
203  OdResult setCroppingInvert( bool bInvert );
204 
209 
213  bool showCropping() const;
214 
223  OdResult setShowCropping( bool bShowCropping );
224 
225  //
226 
228  {
229  kTrueColor = 1,
234  kClassificationRamp
235  };
236 
241 
246 
247  //
248 
253 
258 
263 
268 
269  //
270 
272  {
273  kUseMinMaxColors = 0,
275  kHidePoints
276  };
277 
282 
286  void setShowIntensityAsGradient( bool bShowAsGradient );
287 
292 
297 
302 
307 
312 
317 
321  void setShowElevationAsGradient( bool bShowAsGradient );
322 
326  double minElevation() const;
327 
331  double maxElevation() const;
332 
336  OdResult setMinMaxElevation( double min, double max );
337 
342 
346  void setElevationApplyToFixedRange( bool bFixedRange );
347 
352 
357 
358 
359 
361  bool subWorldDraw( OdGiWorldDraw* pWd ) const;
362  void subViewportDraw( OdGiViewportDraw* pVd ) const;
363 
364  // File IO
366  virtual void dwgOutFields( OdDbDwgFiler * ) const;
368  virtual void dxfOutFields( OdDbDxfFiler * ) const;
369 
370 };
371 
373 
374 #include "TD_PackPop.h"
375 
376 
377 #endif //_OD_DB_POINTCLOUDEX_
OdSmartPtr< OdDbPointCloudEx > OdDbPointCloudExPtr
#define DBPOINTCLOUDOBJ_EXPORT
scale
Definition: DimVarDefs.h:1684
int OdInt32
wchar_t OdChar
OdResult
Definition: OdResult.h:29
OdString getPointCloudName() const
OdResult setMinMaxElevation(double min, double max)
ODDB_DECLARE_MEMBERS(OdDbPointCloudEx)
bool subWorldDraw(OdGiWorldDraw *pWd) const
OdResult setInCreatingCroppingMode(bool bCreating)
OdDbObjectId pointCloudDefExId() const
OdString getColorSchemeForStylization(StylizationType type) const
double scale() const
virtual void dwgOutFields(OdDbDwgFiler *) const
void subViewportDraw(OdGiViewportDraw *pVd) const
void setIntensityOutOfRangeBehavior(DisplayOptionOutOfRange displayOption)
unsigned int getVisiblePointCount(OdGeExtents3d extents)
void setElevationApplyToFixedRange(bool bFixedRange)
bool showCropping() const
void setReactorId(const OdDbObjectId pointCloudDefReactorExId)
OdString getCurrentColorScheme() const
OdResult setColorSchemeForStylization(const OdString &guid, StylizationType type)
void setShowIntensityAsGradient(bool bShowAsGradient)
OdResult subTransformBy(const OdGeMatrix3d &xform)
void setRotation(double newRotation)
OdResult setMinMaxIntensity(OdInt32 min, OdInt32 max)
OdResult setCurrentColorScheme(const OdString &guid)
double rotation() const
bool getActiveFileName(OdString &fileName) const
virtual OdResult dxfInFields(OdDbDxfFiler *)
void setLocation(OdGePoint3d newLocation)
void setShowElevationAsGradient(bool bShowAsGradient)
bool showElevationAsGradient() const
void setPointCloudDefExId(const OdDbObjectId pointCloudDefExId)
bool elevationApplyToFixedRange() const
bool showIntensityAsGradient() const
virtual OdResult dwgInFields(OdDbDwgFiler *)
void setElevationOutOfRangeBehavior(DisplayOptionOutOfRange displayOption)
bool setActiveFileName(const OdChar *strActiveFileName)
DisplayOptionOutOfRange elevationOutOfRangeBehavior() const
OdInt32 maxIntensity() const
double maxElevation() const
virtual void dxfOutFields(OdDbDxfFiler *) const
OdGePoint3d location() const
OdResult clearCropping()
unsigned int getDisplayedVisiblePointCount(OdGeExtents3d extents)
OdResult setShowCropping(bool bShowCropping)
StylizationType stylizationType() const
bool getCroppingInvert() const
OdDbPointCloudCropping * getConstPointCloudCropping(int index)
bool locked() const
OdResult setStylizationType(StylizationType type)
OdDbObjectId reactorId() const
double minElevation() const
void getNativeCloudExtent(OdGeExtents3d extents) const
unsigned int getLoadedVisiblePointCount(OdGeExtents3d extents)
OdResult setPointCloudName(const OdString &name)
OdInt32 minIntensity() const
DisplayOptionOutOfRange intensityOutOfRangeBehavior() const
void setScale(double scale)
void addCroppingBoundary(OdDbPointCloudCropping const &boundary)
OdResult removeLastCropping()
OdResult setCroppingInvert(bool bInvert)
OdDbPointCloudCropping const * getConstPointCloudCropping(int index) const
void setLocked(bool bLocked)
GLuint index
Definition: gles2_ext.h:265
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
const T & min(const T &x, const T &y)
const T & max(const T &x, const T &y)