CFx SDK Documentation 2024 SP0
|
#include <DbRasterImageDef.h>
Static Public Member Functions | |
static OdDbObjectId | createImageDictionary (OdDbDatabase *pDb) |
static OdDbObjectId | imageDictionary (OdDbDatabase *pDb) |
static OdString | suggestName (const OdDbDictionary *pImageDictionary, const OdString &strFilePath, int nMaxLength=kMaxSuggestNameSize) |
static int | classVersion () |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Additional Inherited Members | |
Protected Member Functions inherited from OdDbObject | |
OdDbObject () | |
virtual OdResult | subGetClassID (void *pClsid) const |
virtual OdDbObjectPtr | subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
virtual OdDbObjectPtr | subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const |
Protected Member Functions inherited from OdGiDrawable | |
OdGiDrawable () | |
virtual OdUInt32 | subSetAttributes (OdGiDrawableTraits *traits) const =0 |
virtual bool | subWorldDraw (OdGiWorldDraw *wd) const =0 |
virtual void | subViewportDraw (OdGiViewportDraw *vd) const =0 |
virtual OdUInt32 | subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const |
virtual OdUInt32 | subRegenSupportFlags () const |
Protected Attributes inherited from OdDbObject | |
OdDbObjectImpl * | m_pImpl |
This virtual base class defines raster image definition objects in an OdDbDatabase instance. Corresponding C++ library: ISM
<group OdDb_Classes>
Definition at line 65 of file DbRasterImageDef.h.
Definition at line 70 of file DbRasterImageDef.h.
anonymous enum |
Enumerator | |
---|---|
kMaxSuggestNameSize |
Definition at line 225 of file DbRasterImageDef.h.
OdDbRasterImageDef::OdDbRasterImageDef | ( | ) |
OdString OdDbRasterImageDef::activeFileName | ( | ) | const |
Returns the actual file name of the raster image associated with this raster image definition object.
|
static |
DOM-IGNORE-BEGIN DOM-IGNORE-END
Returns the version of the raster image associated with this raster image definition object.
|
inlinestatic |
Creates an image dictionary, if it is not already present, in the specified OdDbDatabase instance.
pDb | [in] Pointer to the database. |
DOM
Definition at line 517 of file DbRasterImageDef.h.
|
virtual |
Reads the .dwg file data of this object.
pFiler | [in] Filer object from which data are read. |
This function is called by dwgIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbObject.
|
virtual |
Writes the .dwg file data of this object.
pFiler | [in] Pointer to the filer to which data are written. |
This function is called by dwgIn() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbObject.
|
virtual |
Reads the DXF data of this object.
pFiler | [in] Pointer to the filer from which data are read. |
This function is called by dxfIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbObject.
|
virtual |
Writes the DXF data of this object.
pFiler | [in] Pointer to the filer to which data are to be written. |
This function is called by dxfOut() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbObject.
int OdDbRasterImageDef::entityCount | ( | bool * | pbLocked = NULL | ) | const |
Returns the number of raster images associated with this raster image definition object.
pbLocked | [in] If this value is not NULL, the value 'true' will be set at the pointer. |
|
virtual |
Returns the OdGiRasterImage object associated with this RasterImageDef object.
|
inlinestatic |
Returns the object ID of the image dictionary in the specified OdDbDatabase instance.
pDb | [in] Pointer to the database. |
Definition at line 529 of file DbRasterImageDef.h.
|
virtual |
Returns true if and only if the image file for this raster image definition object is loaded (DXF 280).
Loads the source image file for this raster image definition object.
modifyDatabase | [in] If and only if true, an undo recording will be done for this object. |
If the image file is currently loaded, the file will not be read.
"Lazy loading" implies that the image file will not be loaded until it is required.
OdDbRasterImageDef::ODDB_DECLARE_MEMBERS | ( | OdDbRasterImageDef | ) |
|
virtual |
Returns the default physical pixel size, in mm/pixel, of the image for this raster image definition object (DXF 10).
|
virtual |
Returns the resolution units for the image for this raster image definition object (DXF 281).
Sets the actual file name of the raster image associated with this raster image definition object.
pPathName | [in] Input actual file name. |
|
virtual |
Creates an image from the specified OdGiRasterImage object.
pImage | [in] Pointer to the RasterImage object. |
modifyDatabase | [in] If and only if true, marks the associated OdDbDatabase instance as modified. |
|
virtual |
Sets the default physical pixel size, in mm/pixel, of the image for this raster image definition object (DXF 10).
|
virtual |
Sets the resolution units for the image for this raster image definition object (DXF 281).
Sets the name of the source file containing the raster image for this raster image definition object (DXF 1).
pathName | [in] Path name. |
|
virtual |
Returns the XY pixel size of the image for this raster image definition (DXF 10).
|
virtual |
Returns the name of the source file containing the raster image for this raster image definition object (DXF 1).
|
virtual |
Called as the first operation as this object is being closed, for database -resident objects only.
When overriding this function:
1) If the OdDbObject's state is incorrect, throw exception.
2) Call parent class's subClose().
3) If other actions are required before close, do them.
The default implementation of this function does nothing. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
|
virtual |
Called as the first operation as this object is being erased or unerased.
erasing | [in] A copy of the erasing argument passed to erase(). |
Returns eOk if and only if erase() is to continue.
When overriding this function:
1) If the OdDbObject's state is incorrect, return something other than eOk.
2) If the parent class's subErase() returns anything other than eOk, immediately return it.
3) If other actions are required before erase, do them.
4) Return eOk.
If you must make changes to this object's state, either make them after step 2, or roll them back if step 2 returns other than eOk.
The default implementation of this function does nothing but return eOk. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
|
virtual |
Called as the first operation of the handOverTo function.
pNewObject | [in] Pointer to the object with which to replace this object in the database. |
This function is notified just before an object is to be handed over; giving this function the ability to cancel the handover.
When overriding this function:
1) If the OdDbObject's state is incorrect, throw exception.
2) Call parent class's subHandover().
3) If other actions are required before handover, do them.
The default implementation of this function does nothing. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
|
inlinestatic |
Modifies the original image filename to return a new image name suitable for an image dictionary.
pImageDictionary | [in] Pointer to the image dictionary. |
strFilePath | [in] New image file name. |
nMaxLength | [in] Max length of the name returned. |
Definition at line 536 of file DbRasterImageDef.h.
Unloads the image for this raster image definition object.
modifyDatabase | [in] If and only if true, an undo recording will be done for this object. |
void OdDbRasterImageDef::updateEntities | ( | ) | const |
Causes all raster images associated with this raster image definition object to be redrawn.