CFx SDK Documentation  2022 SP0
DbPoint.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 
25 
26 
27 #ifndef _OD_DB_POINT_
28 #define _OD_DB_POINT_
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbEntity.h"
33 
52 {
53 public:
55 
66  OdDbPoint( const OdGePoint3d& gePoint );
67 
68 
82 
83 
98  void setPosition( const OdGePoint3d& gePoint );
99 
100 
116  double thickness() const;
117 
118 
135  void setThickness( double vThickness );
136 
137 
151 
152 
167  void setNormal( const OdGeVector3d& geVector );
168 
169 
187  double ecsRotation() const;
188 
189 
210  void setEcsRotation( double vAngle );
211 
212 
224  virtual bool isPlanar() const { return true; }
225 
226 
244  virtual OdResult getPlane( OdGePlane& gePlane, OdDb::Planarity& gePlanarity ) const;
245 
246 
248  OdDbDwgFiler* pFiler);
249 
250  virtual void dwgOutFields(
251  OdDbDwgFiler* pFiler) const;
252 
254  OdDbDxfFiler* pFiler);
255 
256  virtual void dxfOutFields(
257  OdDbDxfFiler* pFiler) const;
258 
260  OdDbDxfFiler* pFiler);
261 
262  virtual void dxfOutFields_R12(
263  OdDbDxfFiler* pFiler) const;
264 
266  const OdGeMatrix3d& xfm);
267 
268  virtual bool subWorldDraw(
269  OdGiWorldDraw* pWd) const;
270 
271  virtual void subViewportDraw(
272  OdGiViewportDraw* pVd) const;
273 
275  OdGiDrawableTraits *pTraits) const;
276 
278  void* pClsid) const;
279 };
280 
289 
290 #include "TD_PackPop.h"
291 
292 #endif
293 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbPoint > OdDbPointPtr
Definition: DbPoint.h:288
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual void dxfOutFields_R12(OdDbDxfFiler *pFiler) const
OdDbPoint(const OdGePoint3d &gePoint)
double ecsRotation() const
void setNormal(const OdGeVector3d &geVector)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual OdResult dxfInFields_R12(OdDbDxfFiler *pFiler)
void setEcsRotation(double vAngle)
void setPosition(const OdGePoint3d &gePoint)
void setThickness(double vThickness)
virtual OdResult getPlane(OdGePlane &gePlane, OdDb::Planarity &gePlanarity) const
virtual OdResult subGetClassID(void *pClsid) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual bool isPlanar() const
Definition: DbPoint.h:224
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
double thickness() const
ODDB_DECLARE_MEMBERS(OdDbPoint)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdGePoint3d position() const
OdGeVector3d normal() const
Planarity
Definition: DbEntity.h:74