CFx SDK Documentation  2020SP3
DbViewRepImage.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_VIEWREPIMAGE_H
25 #define OD_VIEWREPIMAGE_H
26 
27 #include "DbEntity.h"
28 #include "ModelDocObjExports.h"
29 #include "Gi/GiImage.h"
30 #include "Gi/GiViewportDraw.h"
31 #include "Gi/GiRasterWrappers.h"
32 
33 #include "TD_PackPush.h"
34 
41 {
42 public:
44 
46  virtual ~OdDbViewRepImage();
47 
48 
49  OdGePoint3d const & centerPoint() const;
50  void setCenterPoint(OdGePoint3d const & );
51 
52  double getHeight() const;
53  void setHeight(double);
54 
55  double getWidth() const;
56  void setWidth(double);
57 
60 
61  /*
62  AcGeMatrix3d getModelCoordinate() const;
63  void setModelCoordinate(AcGeMatrix3d const & );
64 
65  unsigned char* getRawImageBytes() const;
66  void setRawImageBytes(unsigned char*);
67 
68  virtual void saveAs(AcGiWorldDraw*,enum AcDb::SaveType);
69 
70  void setImageData(AcGiImageBGRA32 const&);
71  void setImageData(unsigned char*);
72 
73  virtual enum Acad::ErrorStatus subTransformBy(AcGeMatrix3d const&);
74  virtual void subViewportDraw(AcGiViewportDraw*);
75  */
76 
77 protected:
78  // OdDbObject methods :
79  virtual OdResult dwgInFields(OdDbDwgFiler* pFiler);
80  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
81  virtual OdResult dxfInFields(OdDbDxfFiler* pFiler);
82  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
83 
84  virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
85  virtual void subViewportDraw(OdGiViewportDraw* pVd) const;
86 };
87 
92 
93 #include "TD_PackPop.h"
94 
95 #endif // OD_VIEWREPIMAGE_H
OdDbViewRepImage::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbViewRepImage::getHeight
double getHeight() const
OdResult
OdResult
Definition: OdResult.h:29
OdDbViewRepImagePtr
OdSmartPtr< OdDbViewRepImage > OdDbViewRepImagePtr
Definition: DbViewRepImage.h:91
OdDbViewRepImage::centerPoint
OdGePoint3d const & centerPoint() const
OdDbObjectId
Definition: DbObjectId.h:99
OdDbViewRepImage::setOwnerViewportId
void setOwnerViewportId(const OdDbObjectId)
OdDbViewRepImage::setWidth
void setWidth(double)
OdDbViewRepImage::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
TD_PackPop.h
OdDbViewRepImage::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbViewRepImage)
OdDbViewRepImage::getWidth
double getWidth() const
GiImage.h
OdDbViewRepImage::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
GiViewportDraw.h
ModelDocObjExports.h
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
DbEntity.h
OdDbViewRepImage::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbViewRepImage::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbViewRepImage::ownerViewportId
OdDbObjectId ownerViewportId() const
TD_PackPush.h
GiRasterWrappers.h
OdDbViewRepImage::subViewportDraw
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdDbEntity
Definition: DbEntity.h:90
OdDbViewRepImage
Definition: DbViewRepImage.h:41
MODELDOCOBJ_EXPORT
#define MODELDOCOBJ_EXPORT
Definition: ModelDocObjExports.h:33
OdDbViewRepImage::OdDbViewRepImage
OdDbViewRepImage()
OdDbViewRepImage::setCenterPoint
void setCenterPoint(OdGePoint3d const &)
OdDbViewRepImage::setHeight
void setHeight(double)
OdDbDwgFiler
Definition: DbFiler.h:1031
OdGiViewportDraw
Definition: GiViewportDraw.h:50
OdDbViewRepImage::~OdDbViewRepImage
virtual ~OdDbViewRepImage()