CFx SDK Documentation  2022 SP0
DbShModelerHistoryImpl.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_DBSHMODELERHISTORY_H
25 #define ODDB_DBSHMODELERHISTORY_H
26 
27 #include "TD_PackPush.h"
28 
29 #include <DbObject.h>
30 #include "ModelerHistory.h"
31 #include "../Entities/Db3dSolidImpl.h"
32 
40 {
41 protected:
44 
45  inline void historyObject(OdDb3dSolidImpl* p3dSolidImpl);
46 public:
48 
49  virtual OdDbObjectId createShHistory( OdDb3dSolid const* pSolid, OdDbObjectPtr& pHistObj );
50  virtual void getHistoryVariables( const OdDbObjectPtr& pHistObj, bool& bShowHistory, bool& bRecordHistory );
51  virtual void setShowHistory( OdDbObjectPtr& pHistObj, bool bShowHistory );
52  virtual void setRecordHistory( OdDbObjectPtr& pHistObj, bool bRecordHistory );
53  virtual void clearHistory( OdDbObjectPtr& pHistObj );
54 
55  virtual OdResult createBox( OdDb3dSolid* pSolid, double dXLen, double dYLen, double dZLen/*, BODY*&*/);
56  //virtual OdResult createBrep(OdCmColor const &, OdDbObjectId,void *)
57  virtual OdResult createFrustum( OdDb3dSolid* pSolid, double dHeight, double dXRadius, double dYRadius, double dTopXRadius/*, BODY*&*/);
58  virtual OdResult createSphere( OdDb3dSolid* pSolid, double dRadius/*, BODY * &*/);
59  virtual OdResult createTorus( OdDb3dSolid* pSolid, double dMajorRadius, double dMinorRadius/*, BODY * &*/);
60  virtual OdResult createWedge( OdDb3dSolid* pSolid, double dXLen, double dYLen, double dZLen/*, BODY * &*/);
61  virtual OdResult createPyramid( OdDb3dSolid* pSolid, double dHeight, int iSides, double dRadius, double dTopRadius/*, BODY * &*/);
62 
63  virtual OdResult setSubentColor( OdDb3dSolid* pSolid, const OdDbSubentId &subentId, const OdCmColor &color );
64  virtual OdResult setSubentMaterial( OdDb3dSolid* pSolid, const OdDbSubentId &subentId, OdDbObjectId matId );
65 
66  virtual OdResult createLoftedSolid( OdDb3dSolid* pSolid, OdDbEntityPtrArray& crossSections, OdDbEntityPtrArray& guideCurves, OdDbEntity* pPathCurve, OdDbLoftOptions& loftOpt );
67  virtual OdResult createRevolvedSolid( OdDb3dSolid* pSolid, OdDbEntity* pRevolveCurve, const OdGePoint3d& axisPoint, const OdGeVector3d& axisDir, double dAngleOfRevolution, double dStartAngle, OdDbRevolveOptions& revolveOpt );
68  virtual OdResult createSweptSolid( OdDb3dSolid* pSolid, OdDbEntity* pSweepCurve, OdDbEntity* pPathCurve, const OdGeVector3d& directioVector, OdDbSweepOptions& sweepOpt );
69 
70  virtual OdResult booleanOper( OdDb3dSolid* pSolid, OdDb3dSolid* pSecondEll,OdDb::BoolOperType operation);
71 
72  virtual OdResult postInDatabase( OdDbObjectId objSolidId );
73  virtual OdResult subTransformBy( OdDb3dSolid* pSolid, const OdGeMatrix3d& xform );
74  //FELIX_CHANGE_BEGIN
75 public:
77  //FELIX_CHANGE_END
78 };
79 
83 //typedef OdSmartPtr<OdDbShModelerHistoryImpl>OdDbShModelerHistoryImplPtr;
84 
85 #include "TD_PackPop.h"
86 
87 #endif
88 
OdResult
Definition: OdResult.h:29
virtual OdResult booleanOper(OdDb3dSolid *pSolid, OdDb3dSolid *pSecondEll, OdDb::BoolOperType operation)
virtual OdResult createPyramid(OdDb3dSolid *pSolid, double dHeight, int iSides, double dRadius, double dTopRadius)
virtual OdDbObjectId createShHistory(OdDb3dSolid const *pSolid, OdDbObjectPtr &pHistObj)
virtual OdResult createBox(OdDb3dSolid *pSolid, double dXLen, double dYLen, double dZLen)
virtual OdResult createFrustum(OdDb3dSolid *pSolid, double dHeight, double dXRadius, double dYRadius, double dTopXRadius)
virtual ~OdDbShModelerHistoryImpl()
virtual OdResult createSweptSolid(OdDb3dSolid *pSolid, OdDbEntity *pSweepCurve, OdDbEntity *pPathCurve, const OdGeVector3d &directioVector, OdDbSweepOptions &sweepOpt)
virtual OdResult setSubentColor(OdDb3dSolid *pSolid, const OdDbSubentId &subentId, const OdCmColor &color)
virtual void getHistoryVariables(const OdDbObjectPtr &pHistObj, bool &bShowHistory, bool &bRecordHistory)
ODDB_DECLARE_MEMBERS(OdDbShModelerHistoryImpl)
virtual void setRecordHistory(OdDbObjectPtr &pHistObj, bool bRecordHistory)
virtual OdResult createLoftedSolid(OdDb3dSolid *pSolid, OdDbEntityPtrArray &crossSections, OdDbEntityPtrArray &guideCurves, OdDbEntity *pPathCurve, OdDbLoftOptions &loftOpt)
virtual OdResult setSubentMaterial(OdDb3dSolid *pSolid, const OdDbSubentId &subentId, OdDbObjectId matId)
virtual OdResult postInDatabase(OdDbObjectId objSolidId)
void historyObject(OdDb3dSolidImpl *p3dSolidImpl)
OdDbObjectPtr getHistory(const OdDb3dSolid *pSolid)
virtual OdResult createSphere(OdDb3dSolid *pSolid, double dRadius)
virtual OdResult subTransformBy(OdDb3dSolid *pSolid, const OdGeMatrix3d &xform)
virtual OdResult createWedge(OdDb3dSolid *pSolid, double dXLen, double dYLen, double dZLen)
virtual OdResult createTorus(OdDb3dSolid *pSolid, double dMajorRadius, double dMinorRadius)
virtual void setShowHistory(OdDbObjectPtr &pHistObj, bool bShowHistory)
virtual OdResult createRevolvedSolid(OdDb3dSolid *pSolid, OdDbEntity *pRevolveCurve, const OdGePoint3d &axisPoint, const OdGeVector3d &axisDir, double dAngleOfRevolution, double dStartAngle, OdDbRevolveOptions &revolveOpt)
virtual void clearHistory(OdDbObjectPtr &pHistObj)
BoolOperType
Definition: ModelerDefs.h:113