CFx SDK Documentation  2020SP3
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_
OdResult
OdResult
Definition: OdResult.h:29
OdGeVector3d
Definition: GeVector3d.h:54
OdDbShModelerHistory::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbShModelerHistory)
DbObject.h
OdDbShModelerHistory
Definition: ModelerHistory.h:44
OdRxObject
Definition: RxObject.h:564
OdDbObjectId
Definition: DbObjectId.h:99
OdDb3dSolid
Definition: Db3dSolid.h:77
OdaSTL.h
Db3dSolid.h
OdDbShModelerHistory::createLoftedSolid
virtual OdResult createLoftedSolid(OdDb3dSolid *pSolid, OdDbEntityPtrArray &crossSections, OdDbEntityPtrArray &guideCurves, OdDbEntity *pPathCurve, OdDbLoftOptions &loftOpt)=0
OdArray< OdDbEntityPtr >
TD_PackPop.h
OdDbShModelerHistory::getHistoryVariables
virtual void getHistoryVariables(const OdDbObjectPtr &pHistObj, bool &bShowHistory, bool &bRecordHistory)=0
OdDbShModelerHistory::setSubentMaterial
virtual OdResult setSubentMaterial(OdDb3dSolid *pSolid, const OdDbSubentId &subentId, OdDbObjectId matId)=0
RxObject.h
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDbShModelerHistory::setShowHistory
virtual void setShowHistory(OdDbObjectPtr &pHistObj, bool bShowHistory)=0
OdDbShModelerHistoryPtr
OdSmartPtr< OdDbShModelerHistory > OdDbShModelerHistoryPtr
Definition: ModelerHistory.h:79
OdDbShModelerHistory::createPyramid
virtual OdResult createPyramid(OdDb3dSolid *pSolid, double dHeight, int iSides, double dRadius, double dTopRadius)=0
OdDbShModelerHistory::createSweptSolid
virtual OdResult createSweptSolid(OdDb3dSolid *pSolid, OdDbEntity *pSweepCurve, OdDbEntity *pPathCurve, const OdGeVector3d &directioVector, OdDbSweepOptions &sweepOpt)=0
OdSmartPtr< OdDbObject >
OdGePoint3d
Definition: GePoint3d.h:55
OdDbShModelerHistory::subTransformBy
virtual OdResult subTransformBy(OdDb3dSolid *pSolid, const OdGeMatrix3d &xform)=0
OdDbShModelerHistory::createTorus
virtual OdResult createTorus(OdDb3dSolid *pSolid, double dMajorRadius, double dMinorRadius)=0
OdDbRevolveOptions
Definition: DbRevolveOptions.h:41
OdDbShModelerHistory::booleanOper
virtual OdResult booleanOper(OdDb3dSolid *pSolid, OdDb3dSolid *pSecondEll, OdDb::BoolOperType operation)=0
OdDbShModelerHistory::createSphere
virtual OdResult createSphere(OdDb3dSolid *pSolid, double dRadius)=0
TD_PackPush.h
OdDbLoftOptions
Definition: DbLoftOptions.h:41
OdDbShModelerHistory::createRevolvedSolid
virtual OdResult createRevolvedSolid(OdDb3dSolid *pSolid, OdDbEntity *pRevolveCurve, const OdGePoint3d &axisPoint, const OdGeVector3d &axisDir, double dAngleOfRevolution, double dStartAngle, OdDbRevolveOptions &revolveOpt)=0
OdDbShModelerHistory::postInDatabase
virtual OdResult postInDatabase(OdDbObjectId objSolidId)=0
OdDbEntity
Definition: DbEntity.h:90
OdDb::BoolOperType
BoolOperType
Definition: ModelerDefs.h:113
OdDbShModelerHistory::setSubentColor
virtual OdResult setSubentColor(OdDb3dSolid *pSolid, const OdDbSubentId &subentId, const OdCmColor &color)=0
ModelerDefs.h
OdDbShModelerHistory::setRecordHistory
virtual void setRecordHistory(OdDbObjectPtr &pHistObj, bool bRecordHistory)=0
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbShModelerHistory::clearHistory
virtual void clearHistory(OdDbObjectPtr &pHistObj)=0
OdDbShModelerHistory::createWedge
virtual OdResult createWedge(OdDb3dSolid *pSolid, double dXLen, double dYLen, double dZLen)=0
OdDbShModelerHistory::createFrustum
virtual OdResult createFrustum(OdDb3dSolid *pSolid, double dHeight, double dXRadius, double dYRadius, double dTopXRadius)=0
OdDbShModelerHistory::OdDbShModelerHistory
OdDbShModelerHistory()
Definition: ModelerHistory.h:46
OdDbSweepOptions
Definition: DbSweepOptions.h:41
OdDbShModelerHistory::createShHistory
virtual OdDbObjectId createShHistory(OdDb3dSolid const *pSolid, OdDbObjectPtr &pHistObj)=0
OdDbShModelerHistory::createBox
virtual OdResult createBox(OdDb3dSolid *pSolid, double dXLen, double dYLen, double dZLen)=0
OdCmColor
Definition: CmColor.h:59
OdDbSubentId
Definition: DbBaseSubentId.h:72