CFx SDK Documentation  2022 SP0
DbOle2Frame.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 
26 
27 #ifndef _OD_DB_OLE2FRAME_
28 #define _OD_DB_OLE2FRAME_
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbOleFrame.h"
33 #include "Ge/GePoint3d.h"
34 
35 class OdOleItemHandler;
36 class COleClientItem;
37 
41 {
42 public:
47 };
48 
58 {
59 public:
61 
63 
65  OdDbDwgFiler* pFiler);
66 
68  OdDbDwgFiler* pFiler) const;
69 
71  OdDbDxfFiler* pFiler);
72 
74  OdDbDxfFiler* pFiler) const;
75 
77  OdGiWorldDraw* pWd) const ODRX_OVERRIDE;
78 
80  OdGiViewportDraw* pVd) const ODRX_OVERRIDE;
81 
83  const OdGeMatrix3d& xfm) ODRX_OVERRIDE;
84 
91  point3d) const;
92 
98  void position(
99  OdRectangle3d& rect3d) const;
100 
107  const OdRectangle3d& rect3d);
108 
117 
118  enum Type
119  {
120  kUnknown = 0,
121  kLink = 1,
122  kEmbedded = 2,
123  kStatic = 3
124  };
139  Type getType() const;
140 
151 
162 
164  {
165  kMonochrome = 0, // e.g., spreadsheet
166  kLowGraphics = 1, // e.g., color text & pie charts
167  kHighGraphics = 2, // e.g., photograph
168  kAutomatic = 3 // e.g., Automatic
169  };
170 
188 
208  PlotQuality quality);
209 
214 
221  OdStreamBuf& streamBuf) const;
222 
230  OdUInt32 nSize,
231  OdStreamBuf& streamBuf);
232 
233  OdResult subGetClassID(void* pClsid) const;
234 
239 
240 
248 
249  void subClose();
250 
262 
274 
286 
294  void unhandled_setUnknown(OdInt32 unk0 = 0, OdUInt8 unk1 = 0x80, OdUInt8 unk2 = 0x55);
295 
306 
317 
326 
327  // New properties
328 
334  void reset(bool bInitSize = false);
335 
339  bool autoOutputQuality() const;
340 
346  void setAutoOutputQuality(bool bFlag);
347 
351  double rotation() const;
352 
358  void setRotation(double fAngle);
359 
363  double wcsWidth() const;
364 
370  void setWcsWidth(double fWidth);
371 
375  double wcsHeight() const;
376 
382  void setWcsHeight(double fHeight);
383 
387  double scaleWidth() const;
388 
394  void setScaleWidth(double fScale);
395 
399  double scaleHeight() const;
400 
406  void setScaleHeight(double fScale);
407 
411  bool lockAspect() const;
412 
418  void setLockAspect(bool bLockAspect);
419 
426  COleClientItem * getOleClientItem() const;
427 
428  virtual OdResult subGetTransformedCopy(const OdGeMatrix3d& mat, OdDbEntityPtr& pCopy) const;
430 };
431 
436 
437 #include "TD_PackPop.h"
438 
439 #endif
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbOle2Frame > OdDbOle2FramePtr
Definition: DbOle2Frame.h:435
unsigned int OdUInt32
unsigned short OdUInt16
int OdInt32
unsigned char OdUInt8
#define ODRX_SEALED_VIRTUAL
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
void position(OdRectangle3d &rect3d) const
double scaleHeight() const
void getCompoundDocument(OdStreamBuf &streamBuf) const
void setWcsWidth(double fWidth)
void setWcsHeight(double fHeight)
bool autoOutputQuality() const
void setRotation(double fAngle)
const OdOleItemHandler * itemHandler() const
void setScaleWidth(double fScale)
void reset(bool bInitSize=false)
ODRX_SEALED_VIRTUAL OdResult subTransformBy(const OdGeMatrix3d &xfm) ODRX_OVERRIDE
PlotQuality outputQuality() const
void setPosition(const OdRectangle3d &rect3d)
double wcsHeight() const
ODDB_DECLARE_MEMBERS(OdDbOle2Frame)
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &mat, OdDbEntityPtr &pCopy) const
OdUInt16 unhandled_himetricWidth() const
OdUInt8 unhandled_unknown1() const
void setAutoOutputQuality(bool bFlag)
Type getType() const
void setOutputQuality(PlotQuality quality)
OdUInt32 getCompoundDocumentDataSize() const
void subSetDatabaseDefaults(OdDbDatabase *pDb, bool)
OdResult dwgInFields(OdDbDwgFiler *pFiler)
void getLocation(OdGePoint3d &point3d) const
OdResult subGetClassID(void *pClsid) const
ODRX_SEALED_VIRTUAL bool subWorldDraw(OdGiWorldDraw *pWd) const ODRX_OVERRIDE
OdInt32 unhandled_unknown0() const
double wcsWidth() const
void dwgOutFields(OdDbDwgFiler *pFiler) const
bool lockAspect() const
void setScaleHeight(double fScale)
void unhandled_setHimetricSize(OdUInt16 w, OdUInt16 h)
OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdString getUserType() const
OdString getLinkPath() const
void unhandled_setUnknown(OdInt32 unk0=0, OdUInt8 unk1=0x80, OdUInt8 unk2=0x55)
double scaleWidth() const
COleClientItem * getOleClientItem() const
double rotation() const
ODRX_SEALED_VIRTUAL void subViewportDraw(OdGiViewportDraw *pVd) const ODRX_OVERRIDE
void setCompoundDocument(OdUInt32 nSize, OdStreamBuf &streamBuf)
OdUInt8 unhandled_unknown2() const
void setLockAspect(bool bLockAspect)
OdUInt16 unhandled_himetricHeight() const
void dxfOutFields(OdDbDxfFiler *pFiler) const
OdOleItemHandler * getItemHandler()
OdString getLinkName() const
OdGePoint3d upRight
Definition: DbOle2Frame.h:44
OdGePoint3d lowRight
Definition: DbOle2Frame.h:46
OdGePoint3d upLeft
Definition: DbOle2Frame.h:43
OdGePoint3d lowLeft
Definition: DbOle2Frame.h:45
GLfloat GLfloat GLfloat GLfloat w
Definition: gles2_ext.h:320