CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdDbViewTableRecord Class Reference

#include <DbViewTableRecord.h>

Inheritance diagram for OdDbViewTableRecord:
OdDbAbstractViewTableRecord OdDbSymbolTableRecord OdDbObject OdGiDrawable OdRxObject

Public Member Functions

 DWGMAP_DECLARE_MEMBERS (OdDbViewTableRecord)
 
 OdDbViewTableRecord ()
 
bool isPaperspaceView () const
 
void setIsPaperspaceView (bool pspaceView)
 
bool isUcsAssociatedToView () const
 
void disassociateUcsFromView ()
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
virtual OdResult dxfInFields_R12 (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual OdResult subGetClassID (void *pClsid) const
 
OdString getCategoryName () const
 
void setCategoryName (const OdString &categoryName)
 
OdString getLayerState () const
 
void setLayerState (const OdString &layerStateName)
 
OdDbObjectId getLayout () const
 
void setLayout (OdDbObjectId layoutId)
 
bool isViewAssociatedToViewport () const
 
void setViewAssociatedToViewport (bool viewAssociated)
 
void getThumbnail (OdBinaryData *pThumbnail) const
 
void setThumbnail (const OdBinaryData *pThumbnail)
 
bool isCameraPlottable () const
 
void setIsCameraPlottable (bool plottable)
 
OdDbObjectId camera () const
 
void setCamera (const OdDbObjectId &cameraId)
 
virtual void subClose ()
 
virtual void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
OdDbObjectId liveSection () const
 
void setLiveSection (const OdDbObjectId &liveSectionId)
 
OdResult setAnnotationScale (const OdDbAnnotationScale *pScaleObj)
 
OdDbAnnotationScalePtr annotationScale () const
 
- Public Member Functions inherited from OdDbAbstractViewTableRecord
 ODDB_DECLARE_MEMBERS (OdDbAbstractViewTableRecord)
 
 OdDbAbstractViewTableRecord ()
 
OdGePoint2d centerPoint () const
 
void setCenterPoint (const OdGePoint2d &centerPoint)
 
double height () const
 
void setHeight (double height)
 
double width () const
 
void setWidth (double width)
 
OdGePoint3d target () const
 
void setTarget (const OdGePoint3d &target)
 
OdGeVector3d viewDirection () const
 
void setViewDirection (const OdGeVector3d &viewDirection)
 
double viewTwist () const
 
void setViewTwist (double viewTwist)
 
double lensLength () const
 
void setLensLength (double lensLength)
 
double frontClipDistance () const
 
void setFrontClipDistance (double frontClipDistance)
 
double backClipDistance () const
 
void setBackClipDistance (double backClipDistance)
 
bool perspectiveEnabled () const
 
void setPerspectiveEnabled (bool perspectiveEnabled)
 
bool frontClipEnabled () const
 
void setFrontClipEnabled (bool frontClipEnabled)
 
bool backClipEnabled () const
 
void setBackClipEnabled (bool backClipEnabled)
 
bool frontClipAtEye () const
 
void setFrontClipAtEye (bool atEye)
 
void setRenderMode (OdDb::RenderMode renderMode)
 
OdDb::RenderMode renderMode () const
 
void getUcs (OdGePoint3d &origin, OdGeVector3d &xAxis, OdGeVector3d &yAxis) const
 
bool isUcsOrthographic (OdDb::OrthographicView &orthoUcs, const OdDbDatabase *pDb=0) const
 
OdDbObjectId ucsName () const
 
double elevation () const
 
void setUcs (const OdGePoint3d &origin, const OdGeVector3d &xAxis, const OdGeVector3d &yAxis)
 
void setUcs (OdDb::OrthographicView orthoUcs, const OdDbDatabase *pDb=0)
 
void setUcs (const OdDbObjectId &ucsId)
 
void setUcsToWorld ()
 
void setElevation (double elevation)
 
OdDbObjectId background () const
 
void setBackground (const OdDbObjectId &background)
 
OdDbObjectId visualStyle () const
 
void setVisualStyle (const OdDbObjectId &visualStyle)
 
bool isDefaultLightingOn () const
 
void setDefaultLightingOn (bool isOn)
 
OdGiViewportTraits::DefaultLightingType defaultLightingType () const
 
void setDefaultLightingType (OdGiViewportTraits::DefaultLightingType lightingType)
 
double brightness () const
 
void setBrightness (double brightness)
 
double contrast () const
 
void setContrast (double contrast)
 
OdCmColor ambientLightColor () const
 
void setAmbientLightColor (const OdCmColor &color)
 
OdDbObjectId sunId () const
 
OdDbObjectId setSun (OdDbSun *pSun)
 
void toneOperatorParameters (OdGiToneOperatorParameters &params) const
 
void setToneOperatorParameters (const OdGiToneOperatorParameters &params)
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdGiDrawabledrawable ()
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
- Public Member Functions inherited from OdDbSymbolTableRecord
 ODDB_DECLARE_MEMBERS (OdDbSymbolTableRecord)
 
 OdDbSymbolTableRecord ()
 
virtual OdString getName () const
 
virtual void setName (const OdString &sName)
 
bool isDependent () const
 
bool isResolved () const
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdResult subErase (bool erasing)
 
virtual void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
- 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 dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (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 &idMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr wblockClone (OdDbIdMapping &idMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
virtual void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &idMap)
 
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
 
virtual bool isPersistent () const =0
 
virtual OdDbStub * id () const =0
 
virtual void setGsNode (OdGsCache *pGsNode)=0
 
virtual OdGsCachegsNode () const =0
 
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
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- 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 ,
  kDrawableNotAllowLCS = 32768 , kDrawableMergeControlOff = 65536 , kLastFlag = kDrawableMergeControlOff
}
 
enum  DrawableType {
  kGeometry = 0 , kDistantLight = 1 , kPointLight = 2 , kSpotLight = 3 ,
  kAmbientLight , kSolidBackground , kGradientBackground , kImageBackground ,
  kGroundPlaneBackground , kViewport , kWebLight , kSkyBackground ,
  kImageBasedLightingBackground
}
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- 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
OdDbObjectImplm_pImpl
 

Detailed Description

This class represents View records in the OdDbViewTable in an OdDbDatabase instance.

<group OdDb_Classes>

Definition at line 42 of file DbViewTableRecord.h.

Constructor & Destructor Documentation

◆ OdDbViewTableRecord()

OdDbViewTableRecord::OdDbViewTableRecord ( )

Member Function Documentation

◆ annotationScale()

OdDbAnnotationScalePtr OdDbViewTableRecord::annotationScale ( ) const

◆ camera()

OdDbObjectId OdDbViewTableRecord::camera ( ) const

◆ disassociateUcsFromView()

void OdDbViewTableRecord::disassociateUcsFromView ( )

Disassociates any UCS associated with this View.

◆ dwgInFields()

virtual OdResult OdDbViewTableRecord::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 OdDbAbstractViewTableRecord.

◆ DWGMAP_DECLARE_MEMBERS()

OdDbViewTableRecord::DWGMAP_DECLARE_MEMBERS ( OdDbViewTableRecord  )

◆ dwgOutFields()

virtual void OdDbViewTableRecord::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 OdDbAbstractViewTableRecord.

◆ dxfInFields()

virtual OdResult OdDbViewTableRecord::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 OdDbSymbolTableRecord.

◆ dxfInFields_R12()

virtual OdResult OdDbViewTableRecord::dxfInFields_R12 ( OdDbDxfFiler pFiler)
virtual

Reads the DXF R12 format data of this object.

Parameters
pFiler[in] Pointer to the filer from which data are to be 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 dxfInFields_R12(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfOutFields_R12(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 OdDbViewTableRecord::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 OdDbSymbolTableRecord.

◆ dxfOutFields_R12()

virtual void OdDbViewTableRecord::dxfOutFields_R12 ( 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.
Returns
Returns the filer status.

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). 3) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.

Reimplemented from OdDbSymbolTableRecord.

◆ getCategoryName()

OdString OdDbViewTableRecord::getCategoryName ( ) const

Returns the name of the category of this View.

◆ getLayerState()

OdString OdDbViewTableRecord::getLayerState ( ) const

Returns the name of the layer state of this View.

◆ getLayout()

OdDbObjectId OdDbViewTableRecord::getLayout ( ) const

Returns the Object ID of the OdDbLayout of this View.

◆ getThumbnail()

void OdDbViewTableRecord::getThumbnail ( OdBinaryData pThumbnail) const

Returns the thumbnail information for this view.

Parameters
pThumbnail[out] Receives a pointer to the thumbnail.
Remarks
Thumbnail information consists of a packed BITMAPINFO structure immediately followed in memory by the thumbnail data.

◆ isCameraPlottable()

bool OdDbViewTableRecord::isCameraPlottable ( ) const

◆ isPaperspaceView()

bool OdDbViewTableRecord::isPaperspaceView ( ) const

Returns true if and only if this View is a Paper Space view (DXF 70, bit 0x01).

◆ isUcsAssociatedToView()

bool OdDbViewTableRecord::isUcsAssociatedToView ( ) const

Returns true if and only if there is a UCS associated with this View.

◆ isViewAssociatedToViewport()

bool OdDbViewTableRecord::isViewAssociatedToViewport ( ) const

Returns true if and only if this View is associated with a Paper Space Viewport.

◆ liveSection()

OdDbObjectId OdDbViewTableRecord::liveSection ( ) const

◆ setAnnotationScale()

OdResult OdDbViewTableRecord::setAnnotationScale ( const OdDbAnnotationScale pScaleObj)

◆ setCamera()

void OdDbViewTableRecord::setCamera ( const OdDbObjectId cameraId)

◆ setCategoryName()

void OdDbViewTableRecord::setCategoryName ( const OdString categoryName)

Sets the name of the category of this View.

Parameters
categoryName[in] Category name.

◆ setIsCameraPlottable()

void OdDbViewTableRecord::setIsCameraPlottable ( bool  plottable)

◆ setIsPaperspaceView()

void OdDbViewTableRecord::setIsPaperspaceView ( bool  pspaceView)

Controls if this View is a Paper Space view (DXF 70, bit 0x01).

Parameters
pspaceView[in] True for Paper Space, false for Model space.

◆ setLayerState()

void OdDbViewTableRecord::setLayerState ( const OdString layerStateName)

Sets the name of the layer state of this View.

Parameters
layerStateName[in] Layer State name.

◆ setLayout()

void OdDbViewTableRecord::setLayout ( OdDbObjectId  layoutId)

Sets the Object ID of the Layout of this View.

Parameters
layoutId[in] Layout ID.

◆ setLiveSection()

void OdDbViewTableRecord::setLiveSection ( const OdDbObjectId liveSectionId)

◆ setThumbnail()

void OdDbViewTableRecord::setThumbnail ( const OdBinaryData pThumbnail)

Sets the thumbnail information for this view.

Parameters
pThumbnail[in] Pointer to the thumbnail.
Remarks
Thumbnail information consists of a packed BITMAPINFO structure immediately followed in memory by the thumbnail data.

◆ setViewAssociatedToViewport()

void OdDbViewTableRecord::setViewAssociatedToViewport ( bool  viewAssociated)

Controls if this View is associated with a Viewport.

Parameters
viewAssociated[in] Controls association.

◆ subClose()

virtual void OdDbViewTableRecord::subClose ( )
virtual

Called as the first operation as this object is being closed, for database -resident objects only.

Remarks
This function is notified just before the current open operation is to be closed, giving this function the ability to perform necessary operatons.

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.

◆ subGetClassID()

virtual OdResult OdDbViewTableRecord::subGetClassID ( void pClsid) const
virtual

Reimplemented from OdDbObject.

◆ subSwapIdWith()

virtual void OdDbViewTableRecord::subSwapIdWith ( const OdDbObjectId otherId,
bool  swapXdata = false,
bool  swapExtDict = false 
)
virtual

Called as the first operation of swapIdWith

Parameters
otherId[in] Object ID to be swapped with this object's Object ID.
swapXdata[in] If and only if true, extended data are swapped.
swapExtDict[in] If and only if true, extension dictionaries are swapped.
Remarks
This function is notified just before an object is to be opened; giving this function the ability to cancel the object being swapped or perform necessary actions.

When overriding this function:

1) If the OdDbObject's state is incorrect, throw exception.

2) Call parent class's subSwapIdWith().

3) If other actions are required before swapping IDs, do them.

The default implementation of this function does nothing. This function can be overridden in custom classes.

Reimplemented from OdDbSymbolTableRecord.


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