CFx SDK Documentation  2022 SP0
DbShHistory.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 ODDB_DBSHHISTORY_H
25 #define ODDB_DBSHHISTORY_H
26 
27 #include "TD_PackPush.h"
28 
29 #include <DbObject.h>
30 #include "TD_3DSolidHistoryDef.h"
31 #include "DbLoftOptions.h"
32 #include "DbRevolveOptions.h"
33 #include "DbSweepOptions.h"
34 
42 {
43 public:
45 
46  //OdDbShHistory(OdDbShHistory const &)
48  virtual ~OdDbShHistory();
49 
50  virtual OdResult dwgInFields( OdDbDwgFiler* pFiler );
51  virtual void dwgOutFields( OdDbDwgFiler* pFiler ) const;
52  virtual OdResult dxfInFields( OdDbDxfFiler* pFiler );
53  virtual void dxfOutFields( OdDbDxfFiler* pFiler ) const;
54 
55  virtual OdResult setShowHistory( bool bShowhistory );
56  virtual bool showHistory() const;
57  virtual int numNodes() const;
58 
59  virtual OdResult setRecordHistory( bool bRecordHistory );
60  virtual bool recordHistory() const;
61 
62  virtual void clearHistory();
63  virtual OdResult purgeGraph();
65 
66  virtual OdResult createBox( double dXLen, double dYLen, double dZLen/*, BODY*&*/);
67  //virtual OdResult createBrep(OdCmColor const &, OdDbObjectId,void *)
68  virtual OdResult createFrustum( double dHeight, double dXRadius, double dYRadius, double dTopXRadius/*, BODY*&*/);
69  virtual OdResult createSphere( double dRadius/*, BODY * &*/);
70  virtual OdResult createTorus( double dMajorRadius, double dMinorRadius/*, BODY * &*/);
71  virtual OdResult createWedge( double dXLen, double dYLen, double dZLen/*, BODY * &*/);
72  virtual OdResult createPyramid( double dHeight, int iSides, double dRadius, double dTopRadius/*, BODY * &*/);
73 
74  virtual OdResult setSubentColor( const OdDbSubentId &subentId, const OdCmColor &color );
75  virtual OdResult setSubentMaterial( const OdDbSubentId &subentId, OdDbObjectId matId );
76 
77  virtual OdResult createLoftedSolid(OdDbEntityPtrArray& crossSections, OdDbEntityPtrArray& guideCurves, OdDbEntity* pPathCurve, OdDbLoftOptions& loftOpt/*, BODY*&*/);
78  virtual OdResult createRevolvedSolid(OdDbEntity* pRevolveCurve, const OdGePoint3d& axisPoint, const OdGeVector3d& axisDir, double dAngleOfRevolution, double dStartAngle, OdDbRevolveOptions& revolveOpt/*, BODY*&*/);
79  virtual OdResult createSweptSolid(OdDbEntity* pSweepCurve, OdDbEntity* pPathCurve, const OdGeVector3d& directioVector, OdDbSweepOptions& sweepOpt/*, BODY * &*/);
80  //OdDbShBrep
81  virtual OdResult booleanOper( OdDbShHistory* pSecondEll, OdDb::BoolOperType operation );
82 
83  virtual OdResult postInDatabase(OdDbObjectId& objId, OdDbDatabase* pDatabase);
84  virtual OdResult subTransformBy( const OdGeMatrix3d& xform );
85 };
86 
91 
92 #include "TD_PackPop.h"
93 
94 #endif
95 
OdSmartPtr< OdDbShHistory > OdDbShHistoryPtr
Definition: DbShHistory.h:90
OdResult
Definition: OdResult.h:29
#define DB3DSOLIDHISTORY_EXPORT
virtual OdResult createWedge(double dXLen, double dYLen, double dZLen)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual OdResult createPyramid(double dHeight, int iSides, double dRadius, double dTopRadius)
virtual OdResult postInDatabase(OdDbObjectId &objId, OdDbDatabase *pDatabase)
virtual int numNodes() const
virtual OdResult createSweptSolid(OdDbEntity *pSweepCurve, OdDbEntity *pPathCurve, const OdGeVector3d &directioVector, OdDbSweepOptions &sweepOpt)
virtual OdResult setRecordHistory(bool bRecordHistory)
virtual OdResult setSubentColor(const OdDbSubentId &subentId, const OdCmColor &color)
ODDB_DECLARE_MEMBERS(OdDbShHistory)
virtual ~OdDbShHistory()
virtual OdResult createRevolvedSolid(OdDbEntity *pRevolveCurve, const OdGePoint3d &axisPoint, const OdGeVector3d &axisDir, double dAngleOfRevolution, double dStartAngle, OdDbRevolveOptions &revolveOpt)
virtual void clearHistory()
virtual OdResult createLoftedSolid(OdDbEntityPtrArray &crossSections, OdDbEntityPtrArray &guideCurves, OdDbEntity *pPathCurve, OdDbLoftOptions &loftOpt)
virtual OdResult createTorus(double dMajorRadius, double dMinorRadius)
virtual OdResult createBox(double dXLen, double dYLen, double dZLen)
virtual OdResult createSphere(double dRadius)
virtual OdResult setShowHistory(bool bShowhistory)
virtual OdResult setSubentMaterial(const OdDbSubentId &subentId, OdDbObjectId matId)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdResult purgeGraph()
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual bool showHistory() const
virtual OdResult getGraph(OdDbObjectId &)
virtual OdResult subTransformBy(const OdGeMatrix3d &xform)
virtual bool recordHistory() const
virtual OdResult booleanOper(OdDbShHistory *pSecondEll, OdDb::BoolOperType operation)
virtual OdResult createFrustum(double dHeight, double dXRadius, double dYRadius, double dTopXRadius)
BoolOperType
Definition: ModelerDefs.h:113