CFx SDK Documentation  2022 SP0
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
OdSmartPtr< OdDbViewRepImage > OdDbViewRepImagePtr
#define MODELDOCOBJ_EXPORT
OdResult
Definition: OdResult.h:29
double getHeight() const
void setHeight(double)
void setOwnerViewportId(const OdDbObjectId)
double getWidth() const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbObjectId ownerViewportId() const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
virtual ~OdDbViewRepImage()
ODDB_DECLARE_MEMBERS(OdDbViewRepImage)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setWidth(double)
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdGePoint3d const & centerPoint() const
void setCenterPoint(OdGePoint3d const &)