27#ifndef __DBRASTERIMAGEDEF_H
28#define __DBRASTERIMAGEDEF_H
46#define ISM_EXPORT OD_TOOLKIT_EXPORT
47#define ISM_EXPORT_STATIC OD_STATIC_EXPORT
49#define ISM_EXPORT OD_TOOLKIT_IMPORT
50#define ISM_EXPORT_STATIC OD_STATIC_IMPORT
124 bool modifyDatabase =
true);
136 bool modifyDatabase =
true);
227 kMaxSuggestNameSize = 2049
238 const OdString& strFilePath,
int nMaxLength = kMaxSuggestNameSize);
340 bool erasing =
true);
435 bool cancelAllowed ) = 0;
449 OdDbRasterImageDefFileAccessReactor() {}
479 const OdString& pActivePath,
bool& replacePath,
OdString& replacementPath) = 0;
492 bool& replacePath,
OdString& replacementPath) = 0;
521 OdDbObjectId ImgDictId = pRootDict->getAt(ACAD_IMAGE_DICT);
524 ImgDictId = pRootDict->setAt(ACAD_IMAGE_DICT, pImgDict);
533 return pDict->getAt(ACAD_IMAGE_DICT);
OdSmartPtr< OdDbRasterImageDef > OdDbRasterImageDefPtr
OdSmartPtr< OdDbRasterImageDefReactor > OdDbRasterImageDefReactorPtr
#define ODRX_DECLARE_MEMBERS(ClassName)
OdDbObjectId getNamedObjectsDictionaryId() const
OdString suggestName(const OdString &strFilePath, const int nMaxLength=kMaxSuggestNameSize) const
OdDbObjectPtr safeOpenObject(OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedOne=false) const
OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual void unload(bool modifyDatabase=true)
virtual void setImage(OdGiRasterImage *pImage, bool modifyDatabase=true)
virtual OdString sourceFileName() const
void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual void setResolutionUnits(enum OdGiRasterImage::Units)
virtual OdGeVector2d resolutionMMPerPixel() const
virtual void subHandOverTo(OdDbObject *pNewObject)
static int classVersion()
virtual OdGiRasterImage::Units resolutionUnits() const
virtual OdGeVector2d size() const
OdGiRasterImage::Units Units
OdString activeFileName() const
static OdDbObjectId imageDictionary(OdDbDatabase *pDb)
static OdString suggestName(const OdDbDictionary *pImageDictionary, const OdString &strFilePath, int nMaxLength=kMaxSuggestNameSize)
static OdDbObjectId createImageDictionary(OdDbDatabase *pDb)
OdResult setActiveFileName(const OdString &pPathName)
void updateEntities() const
virtual OdGiRasterImagePtr image(bool load=true)
ODDB_DECLARE_MEMBERS(OdDbRasterImageDef)
void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult setResolutionMMPerPixel(const OdGeVector2d &)
virtual OdResult setSourceFileName(const OdString &pathName)
OdResult subErase(bool erasing)
virtual OdResult load(bool modifyDatabase=true)
virtual bool isLoaded() const
int entityCount(bool *pbLocked=NULL) const
OdResult dxfInFields(OdDbDxfFiler *pFiler)
void dxfOutFields(OdDbDxfFiler *pFiler) const
void erased(const OdDbObject *pObject, bool erasing=true)
OdDbRasterImageDefReactor()
void dwgOutFields(OdDbDwgFiler *pFiler) const
static int classVersion()
ODDB_DECLARE_MEMBERS(OdDbRasterImageDefReactor)
void modified(const OdDbObject *pObject)
OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual bool onDeleteImage(const OdDbRasterImageDef *pImageDef, DeleteImageEvent event, bool cancelAllowed)
OdResult dxfInFields(OdDbDxfFiler *pFiler)
static void setEnable(bool enable)
OdDbRasterImageDefTransReactor()
ODRX_DECLARE_MEMBERS(OdDbRasterImageDefTransReactor)
virtual bool onDeleteImage(const OdDbRasterImageDef *pImageDef, OdDbRasterImageDefReactor::DeleteImageEvent event, bool cancelAllowed)=0