CFx SDK Documentation  2022 SP0
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
OdSmartPtr< OdDbViewSymbol > OdDbViewSymbolPtr
Definition: DbViewSymbol.h:149
#define MODELDOCOBJ_EXPORT
#define ODRX_ABSTRACT
OdResult
Definition: OdResult.h:29
OdDbObjectId symbolStyleId() const
void setScale(double val)
OdDbObjectId owningViewRep() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual ~OdDbViewSymbol()
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void setSymbolStyleId(const OdDbObjectId &styleId)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
double scale() const
OdResult setIdentifier(const OdString &sName)
OdResult getIdentifier(OdString &sName) const
virtual bool subWorldDraw(OdGiWorldDraw *pWorldDraw) const
ODDB_DECLARE_MEMBERS(OdDbViewSymbol)