CFx SDK Documentation  2023 SP0
DbRevolvedSurface.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 #ifndef _DbRevolvedSurface_h_Included_
26 #define _DbRevolvedSurface_h_Included_
27 
28 #include "TD_PackPush.h"
29 #include "DbSurface.h"
30 #include "DbRevolveOptions.h"
31 
41 {
42 public:
45 
66  const OdGePoint3d& axisPnt, const OdGeVector3d& axisDir,
67  double revAngle, double startAngle,
68  OdDbRevolveOptions& revolveOptions, const OdStreamBuf *pSat = 0 );
69 
75 
81 
91  void setAxisPnt( const OdGePoint3d& pnt );
92 
97 
108  void setAxisVec( const OdGeVector3d& vec );
109 
113  double getRevolveAngle () const;
114 
124  void setRevolveAngle ( double ang );
125 
129  double getStartAngle () const;
130 
140  void setStartAngle (double startAng);
141 
148  void getRevolveOptions ( OdDbRevolveOptions& revolveOptions ) const;
149 
159  void setRevolveOptions ( const OdDbRevolveOptions& revolveOptions );
160 
173  void setRevolve ( const OdGePoint3d& axisPnt, const OdGeVector3d& axisVec,
174  double revAngle, const OdDbRevolveOptions& revolveOptions );
175 
177  const OdGeMatrix3d& xfm );
178 
179  // OdDbObject methods
180 
182  OdDbDwgFiler* pFiler);
183 
184  virtual void dwgOutFields(
185  OdDbDwgFiler* pFiler) const;
186 
188  OdDbDxfFiler* pFiler);
189 
190  virtual void dxfOutFields(
191  OdDbDxfFiler* pFiler) const;
192 
194  void* pClsid) const;
195 
196  virtual bool isDependent() const { return false; }
197 };
198 
203 
204 #include "TD_PackPop.h"
205 #endif //_DbRevolvedSurface_h_Included_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbRevolvedSurface > OdDbRevolvedSurfacePtr
OdResult
Definition: OdResult.h:29
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void setRevolve(const OdGePoint3d &axisPnt, const OdGeVector3d &axisVec, double revAngle, const OdDbRevolveOptions &revolveOptions)
OdDbEntity * getRevolveEntity() const
void getRevolveOptions(OdDbRevolveOptions &revolveOptions) const
double getRevolveAngle() const
void setRevolveAngle(double ang)
OdResult subTransformBy(const OdGeMatrix3d &xfm)
virtual OdResult createRevolvedSurface(OdDbEntity *pRevEnt, const OdGePoint3d &axisPnt, const OdGeVector3d &axisDir, double revAngle, double startAngle, OdDbRevolveOptions &revolveOptions, const OdStreamBuf *pSat=0)
OdGePoint3d getAxisPnt() const
void setAxisVec(const OdGeVector3d &vec)
void setRevolveOptions(const OdDbRevolveOptions &revolveOptions)
virtual bool isDependent() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void setAxisPnt(const OdGePoint3d &pnt)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdGeVector3d getAxisVec() const
virtual OdResult subGetClassID(void *pClsid) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
ODDB_DECLARE_MEMBERS(OdDbRevolvedSurface)
double getStartAngle() const
void setStartAngle(double startAng)