CFx SDK Documentation  2023 SP0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
OdDbRasterVariables Class Reference

#include <DbRasterVariables.h>

Inheritance diagram for OdDbRasterVariables:
OdDbObject OdGiDrawable OdRxObject

Public Types

enum  FrameSettings {
  kImageFrameInvalid = -1 , kImageFrameOff = 0 , kImageFrameAbove = 1 , kImageFrameBelow = 2 ,
  kImageFrameOnNoPlot = 3
}
 
enum  ImageQuality { kImageQualityInvalid = -1 , kImageQualityDraft = 0 , kImageQualityHigh = 1 }
 
- Public Types inherited from OdGiDrawable
enum  SetAttributesFlags {
  kDrawableNone = 0 , kDrawableIsAnEntity = 1 , kDrawableUsesNesting = 2 , kDrawableIsCompoundObject = 4 ,
  kDrawableViewIndependentViewportDraw = 8 , kDrawableIsInvisible = 16 , kDrawableHasAttributes = 32 , kDrawableRegenTypeDependantGeometry = 64 ,
  kDrawableIsDimension = (kDrawableIsAnEntity + kDrawableIsCompoundObject + 128) , kDrawableRegenDraw = 256 , kDrawableStandardDisplaySingleLOD = 512 , kDrawableShadedDisplaySingleLOD = 1024 ,
  kDrawableViewDependentViewportDraw = 2048 , kDrawableBlockDependentViewportDraw = 4096 , kDrawableIsExternalReference = 8192 , kDrawableNotPlottable = 16384 ,
  kLastFlag = kDrawableNotPlottable
}
 
enum  DrawableType {
  kGeometry = 0 , kDistantLight = 1 , kPointLight = 2 , kSpotLight = 3 ,
  kAmbientLight , kSolidBackground , kGradientBackground , kImageBackground ,
  kGroundPlaneBackground , kViewport , kWebLight , kSkyBackground ,
  kImageBasedLightingBackground
}
 

Public Member Functions

 ODDB_DECLARE_MEMBERS (OdDbRasterVariables)
 
 OdDbRasterVariables ()
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
virtual FrameSettings imageFrame () const
 
virtual void setImageFrame (FrameSettings imageFrame)
 
virtual ImageQuality imageQuality () const
 
virtual void setImageQuality (ImageQuality imageQuality)
 
virtual OdDbRasterImageDef::Units userScale () const
 
virtual void setUserScale (OdDbRasterImageDef::Units units)
 
- Public Member Functions inherited from OdDbObject
 ODDB_DECLARE_MEMBERS (OdDbObject)
 
 ~OdDbObject ()
 
void addRef ()
 
void release ()
 
long numRefs () const
 
OdDbObjectId objectId () const
 
OdDbHandle getDbHandle () const
 
OdDbHandle handle () const
 
OdDbObjectId ownerId () const
 
virtual void setOwnerId (OdDbObjectId ownerId)
 
OdDbDatabasedatabase () const
 
void createExtensionDictionary ()
 
OdDbObjectId extensionDictionary () const
 
bool releaseExtensionDictionary ()
 
OdDbXrecordPtr createXrecord (const OdString &xrecordName, OdDb::DuplicateRecordCloning style=OdDb::kDrcIgnore)
 
void upgradeOpen ()
 
void downgradeOpen ()
 
void cancel ()
 
virtual OdResult subOpen (OdDb::OpenMode mode)
 
virtual void subClose ()
 
OdResult erase (bool eraseIt=true)
 
virtual OdResult subErase (bool erasing)
 
void handOverTo (OdDbObject *pNewObject, bool keepXData=true, bool keepExtDict=true)
 
virtual void subHandOverTo (OdDbObject *pNewObject)
 
void swapIdWith (OdDbObjectId otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void audit (OdDbAuditInfo *pAuditInfo)
 
void dwgIn (OdDbDwgFiler *pFiler)
 
void dwgOut (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfIn (OdDbDxfFiler *pFiler)
 
virtual void dxfOut (OdDbDxfFiler *pFiler) const
 
virtual OdResult dxfInFields_R12 (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual OdDb::DuplicateRecordCloning mergeStyle () const
 
virtual OdResBufPtr xData (const OdString &regappName=OdString::kEmpty) const
 
virtual void setXData (const OdResBuf *pRb)
 
bool isEraseStatusToggled () const
 
bool isErased () const
 
bool isReadEnabled () const
 
bool isWriteEnabled () const
 
bool isNotifyEnabled () const
 
bool isModified () const
 
bool isModifiedXData () const
 
bool isModifiedGraphics () const
 
bool isNewObject () const
 
bool isNotifying () const
 
bool isUndoing () const
 
bool isReallyClosing () const
 
bool isDBRO () const
 
void assertReadEnabled () const
 
void assertWriteEnabled (bool autoUndo=true, bool recordModified=true)
 
void assertNotifyEnabled () const
 
void disableUndoRecording (bool disable)
 
bool isUndoRecordingDisabled () const
 
OdDbDwgFilerundoFiler ()
 
virtual void applyPartialUndo (OdDbDwgFiler *pUndoFiler, OdRxClass *pClassObj)
 
void addReactor (OdDbObjectReactor *pReactor) const
 
void removeReactor (OdDbObjectReactor *pReactor) const
 
virtual void addPersistentReactor (const OdDbObjectId &objId)
 
virtual void removePersistentReactor (const OdDbObjectId &objId)
 
bool hasPersistentReactor (const OdDbObjectId &objId) const
 
OdDbObjectIdArray getPersistentReactors () const
 
OdDbObjectReactorArray getTransientReactors () const
 
virtual void recvPropagateModify (const OdDbObject *pSubObj)
 
virtual void xmitPropagateModify () const
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr deepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr wblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
virtual void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
 
void setOdDbObjectIdsInFlux ()
 
bool isOdDbObjectIdsInFlux () const
 
virtual void copied (const OdDbObject *pObject, const OdDbObject *pNewObject)
 
virtual void erased (const OdDbObject *pObject, bool erasing=true)
 
virtual void goodbye (const OdDbObject *pObject)
 
virtual void openedForModify (const OdDbObject *pObject)
 
virtual void modified (const OdDbObject *pObject)
 
virtual void subObjModified (const OdDbObject *pObject, const OdDbObject *pSubObj)
 
virtual void modifyUndone (const OdDbObject *pObject)
 
virtual void modifiedXData (const OdDbObject *pObject)
 
virtual void unappended (const OdDbObject *pObject)
 
virtual void reappended (const OdDbObject *pObject)
 
bool isAProxy () const
 
virtual void objectClosed (const OdDbObjectId &objectId)
 
virtual void modifiedGraphics (const OdDbObject *pObject)
 
virtual void copyFrom (const OdRxObject *pSource)
 
bool hasSaveVersionOverride () const
 
void setHasSaveVersionOverride (bool hasSaveVersionOverride)
 
virtual OdDb::DwgVersion getObjectSaveVersion (const OdDbFiler *pFiler, OdDb::MaintReleaseVer *pMaintVer=0) const
 
virtual OdDbObjectPtr decomposeForSave (OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
virtual OdDbObjectPtr decomposeForSave (OdDb::SaveType format, OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
void convertForSave (OdDb::DwgVersion ver)
 
virtual void composeForLoad (OdDb::SaveType format, OdDb::DwgVersion version, OdDbAuditInfo *pAuditInfo)
 
virtual OdGiDrawabledrawable ()
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual bool subWorldDraw (OdGiWorldDraw *pWd) const
 
virtual void subViewportDraw (OdGiViewportDraw *pVd) const
 
virtual bool isPersistent () const
 
virtual OdDbStub * id () const
 
ODRX_SEALED_VIRTUAL OdResult getClassID (void *pClsid) const ODRX_SEALED
 
void setGsNode (OdGsCache *pNode)
 
OdGsCachegsNode () const
 
void xDataTransformBy (const OdGeMatrix3d &xfm)
 
bool hasFields () const
 
OdDbObjectId getField (const OdString &fieldName) const
 
OdDbObjectPtr getField (const OdString &fieldName, OdDb::OpenMode mode) const
 
virtual OdDbObjectId setField (const OdString &fieldName, OdDbField *pField)
 
virtual OdResult removeField (OdDbObjectId fieldId)
 
virtual OdDbObjectId removeField (const OdString &fieldName)
 
OdDbObjectId getFieldDictionary () const
 
OdDbObjectPtr getFieldDictionary (OdDb::OpenMode mode) const
 
virtual OdRxClasssaveAsClass (OdRxClass *pClass) const
 
- Public Member Functions inherited from OdGiDrawable
 ODRX_DECLARE_MEMBERS (OdGiDrawable)
 
virtual DrawableType drawableType () const
 
ODRX_SEALED_VIRTUAL OdUInt32 setAttributes (OdGiDrawableTraits *pTraits) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool worldDraw (OdGiWorldDraw *pWd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void viewportDraw (OdGiViewportDraw *pVd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdUInt32 viewportDrawLogicalFlags (OdGiViewportDraw *pVd) const ODRX_SEALED
 
virtual OdResult getGeomExtents (OdGeExtents3d &extents) const
 
ODRX_SEALED_VIRTUAL OdUInt32 regenSupportFlags () const ODRX_SEALED
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static OdDbRasterVariablesPtr openRasterVariables (OdDbDatabase *pDb, OdDb::OpenMode openMode=OdDb::kForRead)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

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 subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const
 
virtual OdUInt32 subRegenSupportFlags () const
 
- Protected Attributes inherited from OdDbObject
OdDbObjectImplm_pImpl
 

Detailed Description

This class represents RasterVariables objects in an OdDbDatabase instance.

See also
TD_Db
Remarks
RasterVariables objects contain settings applicable to raster images.
A single instance of this class is stored with every OdDbDatabase that contains raster images.

<group OdDb_Classes>

Definition at line 50 of file DbRasterVariables.h.

Member Enumeration Documentation

◆ FrameSettings

Enumerator
kImageFrameInvalid 
kImageFrameOff 
kImageFrameAbove 
kImageFrameBelow 
kImageFrameOnNoPlot 

Definition at line 58 of file DbRasterVariables.h.

◆ ImageQuality

Enumerator
kImageQualityInvalid 
kImageQualityDraft 
kImageQualityHigh 

Definition at line 68 of file DbRasterVariables.h.

Constructor & Destructor Documentation

◆ OdDbRasterVariables()

OdDbRasterVariables::OdDbRasterVariables ( )

Member Function Documentation

◆ dwgInFields()

virtual OdResult OdDbRasterVariables::dwgInFields ( OdDbDwgFiler pFiler)
virtual

Reads the .dwg file data of this object.

Parameters
pFiler[in] Filer object from which data are read.
Returns
Returns the filer status.

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.

◆ dwgOutFields()

virtual void OdDbRasterVariables::dwgOutFields ( OdDbDwgFiler pFiler) const
virtual

Writes the .dwg file data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are written.
Remarks

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.

◆ dxfInFields()

virtual OdResult OdDbRasterVariables::dxfInFields ( OdDbDxfFiler pFiler)
virtual

Reads the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer from which data are read.
Returns
Returns the filer status.

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.

◆ dxfOutFields()

virtual void OdDbRasterVariables::dxfOutFields ( OdDbDxfFiler pFiler) const
virtual

Writes the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are to be written.
Remarks

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.

◆ imageFrame()

virtual FrameSettings OdDbRasterVariables::imageFrame ( ) const
virtual

Returns the image frame display (DXF 70).

Remarks
imageFrame() returns one of the following:

Value Description kImageFrameInvalid -1 Invalid kImageFrameOff 0 Frame is off kImageFrameAbove 1 Frame is above the image kImageFrameBelow 2 Frame is below the image

◆ imageQuality()

virtual ImageQuality OdDbRasterVariables::imageQuality ( ) const
virtual

Returns the image display quality (DXF 71).

Remarks
imageQuality() returns one of the following:

Value Description kImageQualityInvalid -1 Invalid kImageQualityDraft 0 Draft quality kImageQualityHigh 1 High quality

◆ ODDB_DECLARE_MEMBERS()

OdDbRasterVariables::ODDB_DECLARE_MEMBERS ( OdDbRasterVariables  )

◆ openRasterVariables()

static OdDbRasterVariablesPtr OdDbRasterVariables::openRasterVariables ( OdDbDatabase pDb,
OdDb::OpenMode  openMode = OdDb::kForRead 
)
static

Opens the RasterVariables object in the specified database. Creates a RasterVariables object if one does not exist.

Parameters
openMode[in] Mode in which to open the RasterVariables object.
pDb[in] Pointer to the database containg the RasterVariables object.
Returns
Returns a SmartPointer to the RasterVariables object.

◆ setImageFrame()

virtual void OdDbRasterVariables::setImageFrame ( FrameSettings  imageFrame)
virtual

Sets the image frame display (DXF 70).

Parameters
imageFrame[in] Image frame display.
Remarks
imageFrame must be one of the following:

Value Description kImageFrameOff 0 Frame is off kImageFrameAbove 1 Frame is above the image kImageFrameBelow 2 Frame is below the image

◆ setImageQuality()

virtual void OdDbRasterVariables::setImageQuality ( ImageQuality  imageQuality)
virtual

Sets the image display quality (DXF 71).

Parameters
imageQuality[in] Image Quality.
Remarks
imageQuality must be one of the following:

Value Description kImageQualityInvalid -1 Invalid kImageQualityDraft 0 Draft quality kImageQualityHigh 1 High quality

◆ setUserScale()

virtual void OdDbRasterVariables::setUserScale ( OdDbRasterImageDef::Units  units)
virtual

Specifies the real-world units corresponding to drawing units (DXF 72).

Parameters
units[in] Real-world units.
Remarks
units must be one of the following:

Value OdDbRasterImageDef::kNone 0 OdDbRasterImageDef::kMillimeter 1 OdDbRasterImageDef::kCentimeter 2 OdDbRasterImageDef::kMeter 3 OdDbRasterImageDef::kKilometer 4 OdDbRasterImageDef::kInch 5 OdDbRasterImageDef::kFoot 6 OdDbRasterImageDef::kYard 7 OdDbRasterImageDef::kMile 8 OdDbRasterImageDef::kMicroinches 9 OdDbRasterImageDef::kMils 10 OdDbRasterImageDef::kAngstroms 11 OdDbRasterImageDef::kNanometers 12 OdDbRasterImageDef::kMicrons 13 OdDbRasterImageDef::kDecimeters 14 OdDbRasterImageDef::kDekameters 15 OdDbRasterImageDef::kHectometers 16 OdDbRasterImageDef::kGigameters 17 OdDbRasterImageDef::kAstronomical 18 OdDbRasterImageDef::kLightYears 19 OdDbRasterImageDef::kParsecs 20

◆ userScale()

virtual OdDbRasterImageDef::Units OdDbRasterVariables::userScale ( ) const
virtual

Returns the real-world units corresponding to drawing units (DXF 72).

Remarks
units() returns one of the following:

Value OdDbRasterImageDef::kNone 0 OdDbRasterImageDef::kMillimeter 1 OdDbRasterImageDef::kCentimeter 2 OdDbRasterImageDef::kMeter 3 OdDbRasterImageDef::kKilometer 4 OdDbRasterImageDef::kInch 5 OdDbRasterImageDef::kFoot 6 OdDbRasterImageDef::kYard 7 OdDbRasterImageDef::kMile 8 OdDbRasterImageDef::kMicroinches 9 OdDbRasterImageDef::kMils 10 OdDbRasterImageDef::kAngstroms 11 OdDbRasterImageDef::kNanometers 12 OdDbRasterImageDef::kMicrons 13 OdDbRasterImageDef::kDecimeters 14 OdDbRasterImageDef::kDekameters 15 OdDbRasterImageDef::kHectometers 16 OdDbRasterImageDef::kGigameters 17 OdDbRasterImageDef::kAstronomical 18 OdDbRasterImageDef::kLightYears 19 OdDbRasterImageDef::kParsecs 20


The documentation for this class was generated from the following file: