CFx SDK Documentation  2023 SP0
ModelerHistory.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 _OD_MODELERHISTORY_INCLUDED_
26 #define _OD_MODELERHISTORY_INCLUDED_
27 
28 #define STL_USING_MAP
29 #include "OdaSTL.h"
30 #include "RxObject.h"
31 #include "ModelerDefs.h"
32 #include "Db3dSolid.h"
33 #include "DbObject.h"
34 
35 #include "TD_PackPush.h"
36 
37 
44 {
45 protected:
47 public:
49 
50  virtual OdDbObjectId createShHistory( OdDb3dSolid const* pSolid, OdDbObjectPtr& pHistObj ) = 0;
51  virtual void getHistoryVariables( const OdDbObjectPtr& pHistObj, bool& bShowHistory, bool& bRecordHistory ) = 0;
52  virtual void setShowHistory( OdDbObjectPtr& pHistObj, bool bShowHistory ) = 0;
53  virtual void setRecordHistory( OdDbObjectPtr& pHistObj, bool bRecordHistory ) = 0;
54  virtual void clearHistory( OdDbObjectPtr& pHistObj ) = 0;
55 
56  virtual OdResult createBox( OdDb3dSolid* pSolid, double dXLen, double dYLen, double dZLen ) = 0;
57  virtual OdResult createFrustum( OdDb3dSolid* pSolid, double dHeight, double dXRadius, double dYRadius, double dTopXRadius ) = 0;
58  virtual OdResult createWedge( OdDb3dSolid* pSolid, double dXLen, double dYLen, double dZLen ) = 0;
59  virtual OdResult createPyramid( OdDb3dSolid* pSolid, double dHeight, int iSides, double dRadius, double dTopRadius ) = 0;
60  virtual OdResult createSphere( OdDb3dSolid* pSolid, double dRadius ) = 0;
61  virtual OdResult createTorus( OdDb3dSolid* pSolid, double dMajorRadius, double dMinorRadius ) = 0;
62 
63  virtual OdResult setSubentColor( OdDb3dSolid* pSolid, const OdDbSubentId &subentId, const OdCmColor &color ) = 0;
64  virtual OdResult setSubentMaterial( OdDb3dSolid* pSolid, const OdDbSubentId &subentId, OdDbObjectId matId ) = 0;
65 
66  virtual OdResult createLoftedSolid( OdDb3dSolid* pSolid, OdDbEntityPtrArray& crossSections, OdDbEntityPtrArray& guideCurves, OdDbEntity* pPathCurve, OdDbLoftOptions& loftOpt ) = 0;
67  virtual OdResult createRevolvedSolid( OdDb3dSolid* pSolid, OdDbEntity* pRevolveCurve, const OdGePoint3d& axisPoint, const OdGeVector3d& axisDir, double dAngleOfRevolution, double dStartAngle, OdDbRevolveOptions& revolveOpt ) = 0;
68  virtual OdResult createSweptSolid( OdDb3dSolid* pSolid, OdDbEntity* pSweepCurve, OdDbEntity* pPathCurve, const OdGeVector3d& directioVector, OdDbSweepOptions& sweepOpt ) = 0;
69 
70  virtual OdResult booleanOper( OdDb3dSolid* pSolid, OdDb3dSolid* pSecondEll,OdDb::BoolOperType operation) = 0;
71 
72  virtual OdResult postInDatabase( OdDbObjectId objSolidId ) = 0;
73  virtual OdResult subTransformBy( OdDb3dSolid* pSolid, const OdGeMatrix3d& xform ) = 0;
74 };
75 
80 
81 #include "TD_PackPop.h"
82 
83 #endif // _OD_MODELERHISTORY_INCLUDED_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbShModelerHistory > OdDbShModelerHistoryPtr
OdResult
Definition: OdResult.h:29
virtual void setShowHistory(OdDbObjectPtr &pHistObj, bool bShowHistory)=0
virtual void getHistoryVariables(const OdDbObjectPtr &pHistObj, bool &bShowHistory, bool &bRecordHistory)=0
virtual OdResult setSubentMaterial(OdDb3dSolid *pSolid, const OdDbSubentId &subentId, OdDbObjectId matId)=0
virtual OdResult createWedge(OdDb3dSolid *pSolid, double dXLen, double dYLen, double dZLen)=0
ODRX_DECLARE_MEMBERS(OdDbShModelerHistory)
virtual void setRecordHistory(OdDbObjectPtr &pHistObj, bool bRecordHistory)=0
virtual OdResult booleanOper(OdDb3dSolid *pSolid, OdDb3dSolid *pSecondEll, OdDb::BoolOperType operation)=0
virtual OdResult createBox(OdDb3dSolid *pSolid, double dXLen, double dYLen, double dZLen)=0
virtual OdResult createTorus(OdDb3dSolid *pSolid, double dMajorRadius, double dMinorRadius)=0
virtual OdDbObjectId createShHistory(OdDb3dSolid const *pSolid, OdDbObjectPtr &pHistObj)=0
virtual OdResult createRevolvedSolid(OdDb3dSolid *pSolid, OdDbEntity *pRevolveCurve, const OdGePoint3d &axisPoint, const OdGeVector3d &axisDir, double dAngleOfRevolution, double dStartAngle, OdDbRevolveOptions &revolveOpt)=0
virtual OdResult postInDatabase(OdDbObjectId objSolidId)=0
virtual OdResult createFrustum(OdDb3dSolid *pSolid, double dHeight, double dXRadius, double dYRadius, double dTopXRadius)=0
virtual OdResult createSweptSolid(OdDb3dSolid *pSolid, OdDbEntity *pSweepCurve, OdDbEntity *pPathCurve, const OdGeVector3d &directioVector, OdDbSweepOptions &sweepOpt)=0
virtual void clearHistory(OdDbObjectPtr &pHistObj)=0
virtual OdResult setSubentColor(OdDb3dSolid *pSolid, const OdDbSubentId &subentId, const OdCmColor &color)=0
virtual OdResult createLoftedSolid(OdDb3dSolid *pSolid, OdDbEntityPtrArray &crossSections, OdDbEntityPtrArray &guideCurves, OdDbEntity *pPathCurve, OdDbLoftOptions &loftOpt)=0
virtual OdResult createPyramid(OdDb3dSolid *pSolid, double dHeight, int iSides, double dRadius, double dTopRadius)=0
virtual OdResult subTransformBy(OdDb3dSolid *pSolid, const OdGeMatrix3d &xform)=0
virtual OdResult createSphere(OdDb3dSolid *pSolid, double dRadius)=0
BoolOperType
Definition: ModelerDefs.h:113