CFx SDK Documentation  2020SP3
DbViewSymbol.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 OD_VIEWSYMBOL_H
25 #define OD_VIEWSYMBOL_H
26 
27 #include "DbEntity.h"
28 #include "ModelDocObjExports.h"
29 
30 #include "TD_PackPush.h"
31 
39 {
40  //friend class OdDbViewSymbolSystemInternals;
41 public:
43  virtual ~OdDbViewSymbol();
44 
49 
55  void setSymbolStyleId(const OdDbObjectId& styleId);
56 
60  double scale() const;
61 
67  void setScale(double val);
68 
78 
88 
89 protected:
90  // Internal use only methods:
92  //void setOwningViewRep(const OdDbObjectId& owner);
93  //OdResult createDefinition(class OdRxSymbolSketch* pSketchObject);
94  //OdResult exportSymbolGeometry(OdArray<OdGeCurve3d*>& geomArr, const OdDbObjectId& viewRepId);
95  //OdResult setSymbolGeometry(const OdDbObjectIdArray& entIds);
96  //OdResult setSymbolGeometry(const OdArray<OdDbObject*>& entities);
97  //OdResult updateDefinition();
98 
99 protected:
100  // OdGiDrawable methods :
101  virtual bool subWorldDraw(OdGiWorldDraw* pWorldDraw) const;
102 
103  // OdDbObject methods :
105  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
107  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
108 
109  //virtual void audit(OdDbAuditInfo* pAuditInfo);
110  //virtual OdResult subErase(bool erasing);
111  //virtual void objectClosed(const OdDbObjectId& objectId);
112  //virtual void subClose();
113 
114  //OdDbEntity methods :
115  //virtual void subSetDatabaseDefaults(OdDbDatabase* pDb, bool doSubents);
116  //virtual OdResult subGetGeomExtents(OdGeExtents3d& extents) const;
117  //virtual OdResult subGetOsnapPoints(OdDb::OsnapMode osnapMode,
118  // OdGsMarker gsSelectionMark,
119  // const OdGePoint3d& pickPoint,
120  // const OdGePoint3d& lastPoint,
121  // const OdGeMatrix3d& xWorldToEye,
122  // OdGePoint3dArray& snapPoints) const;
123  //virtual OdResult subTransformBy(const OdGeMatrix3d& xfm);
124  //virtual void subGripStatus(const OdDb::GripStat status);
125  //virtual OdResult subGetGripPoints(OdDbGripDataPtrArray& grips,
126  // const double curViewUnitSize,
127  // const int gripSize,
128  // const OdGeVector3d& curViewDir,
129  // const int bitFlags) const;
130  //virtual OdResult subMoveGripPointsAt(const OdDbVoidPtrArray& grips,
131  // const OdGeVector3d& offset,
132  // int bitFlags);
133  //virtual OdResult subGetClassID(void* pClsid) const;
134  //virtual void subList() const;
135  //virtual void saveAs(OdGiWorldDraw* pWd, OdDb::DwgVersion ver) const;
136 
137 protected:
138  // Makes OdDbViewSymbol an abstract class.
140 
141 //private:
142 //friend class OdDbAssocViewSymbolConstrGrpPE;
143 //class OdDbViewSymbolImp* m_pImpl;
144 };
145 
150 
151 #include "TD_PackPop.h"
152 
153 #endif // OD_VIEWSYMBOL_H
OdResult
OdResult
Definition: OdResult.h:29
OdString
Definition: OdString.h:95
OdDbViewSymbol::~OdDbViewSymbol
virtual ~OdDbViewSymbol()
OdDbViewSymbol::scale
double scale() const
OdDbViewSymbol::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbViewSymbol::owningViewRep
OdDbObjectId owningViewRep() const
OdDbViewSymbol::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbViewSymbol::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbObjectId
Definition: DbObjectId.h:99
TD_PackPop.h
OdDbViewSymbol
Definition: DbViewSymbol.h:39
OdDbViewSymbol::setScale
void setScale(double val)
ModelDocObjExports.h
OdSmartPtr
Definition: SmartPtr.h:58
DbEntity.h
OdDbViewSymbol::setSymbolStyleId
void setSymbolStyleId(const OdDbObjectId &styleId)
OdDbDxfFiler
Definition: DbFiler.h:194
TD_PackPush.h
OdDbViewSymbol::symbolStyleId
OdDbObjectId symbolStyleId() const
ODRX_ABSTRACT
#define ODRX_ABSTRACT
Definition: OdPlatformSettings.h:117
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbEntity
Definition: DbEntity.h:90
OdDbViewSymbolPtr
OdSmartPtr< OdDbViewSymbol > OdDbViewSymbolPtr
Definition: DbViewSymbol.h:149
MODELDOCOBJ_EXPORT
#define MODELDOCOBJ_EXPORT
Definition: ModelDocObjExports.h:33
OdDbViewSymbol::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbViewSymbol)
OdDbViewSymbol::OdDbViewSymbol
OdDbViewSymbol()
OdDbViewSymbol::setIdentifier
OdResult setIdentifier(const OdString &sName)
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbViewSymbol::getIdentifier
OdResult getIdentifier(OdString &sName) const
OdDbViewSymbol::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const
OdDbViewSymbol::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)