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

#include <DbViewport.h>

Inheritance diagram for OdDbViewport:
OdDbEntity OdDbObject OdGiDrawable OdRxObject

Public Types

enum  StandardScaleType {
  kScaleToFit , kCustomScale , k1_1 , k1_2 ,
  k1_4 , k1_5 , k1_8 , k1_10 ,
  k1_16 , k1_20 , k1_30 , k1_40 ,
  k1_50 , k1_100 , k2_1 , k4_1 ,
  k8_1 , k10_1 , k100_1 , k1_128in_1ft ,
  k1_64in_1ft , k1_32in_1ft , k1_16in_1ft , k3_32in_1ft ,
  k1_8in_1ft , k3_16in_1ft , k1_4in_1ft , k3_8in_1ft ,
  k1_2in_1ft , k3_4in_1ft , k1in_1ft , k1and1_2in_1ft ,
  k3in_1ft , k6in_1ft , k1ft_1ft
}
 
enum  ShadePlotType {
  kAsDisplayed = 0 , kWireframe = 1 , kHidden = 2 , kRendered = 3 ,
  kVisualStyle = 4 , kRenderPreset = 5
}
 
- Public Types inherited from OdDbEntity
enum  VisualStyleType { kFullVisualStyle , kFaceVisualStyle , kEdgeVisualStyle }
 
- 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 (OdDbViewport)
 
 OdDbViewport ()
 
double height () const
 
void setHeight (double height)
 
double width () const
 
void setWidth (double width)
 
OdGePoint3d centerPoint () const
 
void setCenterPoint (const OdGePoint3d &centerPoint)
 
OdInt16 number () const
 
bool isOn () const
 
void setOn ()
 
void setOff ()
 
OdGePoint3d viewTarget () const
 
void setViewTarget (const OdGePoint3d &viewTarget)
 
OdGeVector3d viewDirection () const
 
void setViewDirection (const OdGeVector3d &viewDirection)
 
double viewHeight () const
 
void setViewHeight (double viewHeight)
 
OdGePoint2d viewCenter () const
 
void setViewCenter (const OdGePoint2d &viewCenter)
 
double twistAngle () const
 
void setTwistAngle (double twistAngle)
 
double lensLength () const
 
void setLensLength (double lensLength)
 
bool isFrontClipOn () const
 
void setFrontClipOn ()
 
void setFrontClipOff ()
 
bool isBackClipOn () const
 
void setBackClipOn ()
 
void setBackClipOff ()
 
bool isFrontClipAtEyeOn () const
 
void setFrontClipAtEyeOn ()
 
void setFrontClipAtEyeOff ()
 
double frontClipDistance () const
 
void setFrontClipDistance (double frontClipDistance)
 
double backClipDistance () const
 
void setBackClipDistance (double backClipDistance)
 
bool isPerspectiveOn () const
 
void setPerspectiveOn ()
 
void setPerspectiveOff ()
 
bool isUcsFollowModeOn () const
 
void setUcsFollowModeOn ()
 
void setUcsFollowModeOff ()
 
bool isUcsIconVisible () const
 
void setUcsIconVisible ()
 
void setUcsIconInvisible ()
 
bool isUcsIconAtOrigin () const
 
void setUcsIconAtOrigin ()
 
void setUcsIconAtCorner ()
 
bool isFastZoomOn () const
 
void setFastZoomOn ()
 
void setFastZoomOff ()
 
OdUInt16 circleSides () const
 
void setCircleSides (OdUInt16 circleSides)
 
bool isSnapOn () const
 
void setSnapOn ()
 
void setSnapOff ()
 
bool isSnapIsometric () const
 
void setSnapIsometric ()
 
void setSnapStandard ()
 
double snapAngle () const
 
void setSnapAngle (double snapAngle)
 
OdGePoint2d snapBasePoint () const
 
void setSnapBasePoint (const OdGePoint2d &snapBasePoint)
 
OdGeVector2d snapIncrement () const
 
void setSnapIncrement (const OdGeVector2d &snapIncrement)
 
OdUInt16 snapIsoPair () const
 
void setSnapIsoPair (OdUInt16 snapIsoPair)
 
bool isGridOn () const
 
void setGridOn ()
 
void setGridOff ()
 
OdGeVector2d gridIncrement () const
 
void setGridIncrement (const OdGeVector2d &gridIncrement)
 
bool hiddenLinesRemoved () const
 
void showHiddenLines ()
 
void removeHiddenLines ()
 
void freezeLayersInViewport (const OdDbObjectIdArray &layerIds)
 
void thawLayersInViewport (const OdDbObjectIdArray &layerIds)
 
void thawAllLayersInViewport ()
 
bool isLayerFrozenInViewport (const OdDbObjectId &layerId) const
 
void getFrozenLayerList (OdDbObjectIdArray &layerIds) const
 
void updateDisplay () const
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual bool subWorldDraw (OdGiWorldDraw *pWd) const
 
bool isLocked () const
 
void setLocked ()
 
void setUnlocked ()
 
bool isTransparent () const
 
void setTransparent ()
 
void setOpaque ()
 
double customScale () const
 
void setCustomScale (double customScale)
 
StandardScaleType standardScale () const
 
void setStandardScale (const StandardScaleType standardScale)
 
OdString plotStyleSheet () const
 
OdString effectivePlotStyleSheet () const
 
void setPlotStyleSheet (const OdString &plotStyleSheetName)
 
bool isNonRectClipOn () const
 
void setNonRectClipOn ()
 
void setNonRectClipOff ()
 
OdDbObjectId nonRectClipEntityId () const
 
void setNonRectClipEntityId (OdDbObjectId clipEntityId)
 
void getUcs (OdGePoint3d &origin, OdGeVector3d &xAxis, OdGeVector3d &yAxis) const
 
bool isUcsOrthographic (OdDb::OrthographicView &viewType, 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 viewType, const OdDbDatabase *pDb=0)
 
void setUcs (const OdDbObjectId &ucsId)
 
void setUcsToWorld ()
 
void setElevation (double elevation)
 
bool isUcsSavedWithViewport () const
 
void setUcsPerViewport (bool ucsPerViewport)
 
void setRenderMode (OdDb::RenderMode renderMode)
 
OdDb::RenderMode renderMode () const
 
ShadePlotType shadePlot () const
 
void setShadePlot (const ShadePlotType shadePlot)
 
OdDbObjectId shadePlotId () const
 
void setShadePlot (const ShadePlotType type, const OdDbObjectId &shadePlotId)
 
bool plotWireframe () const
 
bool plotAsRaster () const
 
OdDbObjectId background () const
 
void setBackground (const OdDbObjectId &backgroundId)
 
OdDbObjectId visualStyle () const
 
void setVisualStyle (const OdDbObjectId &visualStyle)
 
bool isDefaultLightingOn () const
 
void setDefaultLightingOn (bool on)
 
OdGiViewportTraits::DefaultLightingType defaultLightingType () const
 
void setDefaultLightingType (OdGiViewportTraits::DefaultLightingType typ)
 
double brightness () const
 
void setBrightness (double)
 
double contrast () const
 
void setContrast (double)
 
OdCmColor ambientLightColor () const
 
void setAmbientLightColor (const OdCmColor &clr)
 
OdDbObjectId sunId () const
 
OdDbObjectId setSun (OdDbSun *pSun)
 
void toneOperatorParameters (OdGiToneOperatorParameters &params) const
 
void setToneOperatorParameters (const OdGiToneOperatorParameters &params)
 
OdResult setAnnotationScale (const OdDbAnnotationScale *pScaleObj)
 
OdDbAnnotationScalePtr annotationScale () const
 
bool isGridBoundToLimits () const
 
void setGridBoundToLimits (bool bNewVal)
 
bool isGridAdaptive () const
 
void setGridAdaptive (bool bNewVal)
 
bool isGridSubdivisionRestricted () const
 
void setGridSubdivisionRestricted (bool bNewVal)
 
bool isGridFollow () const
 
void setGridFollow (bool bNewVal)
 
OdUInt16 gridMajor () const
 
void setGridMajor (OdUInt16)
 
void setModelView (const OdDbXrefObjectId &objId)
 
OdDbXrefObjectId getModelView () const
 
void removeModelView ()
 
OdResult syncModelView ()
 
void setSheetView (const OdDbObjectId &objId)
 
OdDbObjectId getSheetView () const
 
void removeSheetView ()
 
void setLabelBlock (const OdDbObjectId objId)
 
OdDbObjectId getLabelBlock () const
 
void removeLabelBlock ()
 
OdGsViewgsView () const
 
void setGsView (OdGsView *)
 
virtual void subSetDatabaseDefaults (OdDbDatabase *pDb, bool doSubents)
 
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
 
void subClose ()
 
OdResult subErase (bool erasing)
 
void zoomExtents ()
 
virtual OdResult subGetGeomExtents (OdGeExtents3d &extents) const
 
virtual OdResult subTransformBy (const OdGeMatrix3d &xfm) ODRX_OVERRIDE
 
void modified (const OdDbObject *pObj)
 
void erased (const OdDbObject *pObj, bool pErasing)
 
virtual OdResult subGetTransformedCopy (const OdGeMatrix3d &mat, OdDbEntityPtr &pCopy) const
 
virtual OdResult explodeGeometry (OdRxObjectPtrArray &entitySet) const
 
- Public Member Functions inherited from OdDbEntity
 ODDB_DECLARE_MEMBERS (OdDbEntity)
 
 OdDbEntity ()
 
OdDbObjectId blockId () const
 
OdCmColor color () const
 
virtual OdResult setColor (const OdCmColor &color, bool doSubents=true)
 
OdUInt16 colorIndex () const
 
virtual OdCmEntityColor entityColor () const
 
virtual OdResult setColorIndex (OdUInt16 colorIndex, bool doSubents=true)
 
OdDbObjectId colorId () const
 
virtual OdResult setColorId (OdDbObjectId colorId, bool doSubents=true)
 
OdCmTransparency transparency () const
 
virtual OdResult setTransparency (const OdCmTransparency &transparency, bool doSubents=true)
 
OdString plotStyleName () const
 
OdDb::PlotStyleNameType getPlotStyleNameId (OdDbObjectId &plotStyleNameId) const
 
virtual OdResult setPlotStyleName (const OdString &plotStyleName, bool doSubents=true)
 
virtual OdResult setPlotStyleName (OdDb::PlotStyleNameType plotStyleNameType, OdDbObjectId plotStyleNameId=OdDbObjectId::kNull, bool doSubents=true)
 
OdString layer () const
 
OdDbObjectId layerId () const
 
virtual OdResult setLayer (const OdString &layerName, bool doSubents=true, bool allowHiddenLayer=false)
 
virtual OdResult setLayer (OdDbObjectId layerId, bool doSubents=true, bool allowHiddenLayer=false)
 
OdString linetype () const
 
OdDbObjectId linetypeId () const
 
virtual OdResult setLinetype (const OdString &linetypeName, bool doSubents=true)
 
virtual OdResult setLinetype (OdDbObjectId linetypeID, bool doSubents=true)
 
OdString material () const
 
OdDbObjectId materialId () const
 
virtual OdResult setMaterial (const OdString &materialName, bool doSubents=true)
 
virtual OdResult setMaterial (OdDbObjectId materialID, bool doSubents=true)
 
OdDbObjectId visualStyleId (VisualStyleType vstype=kFullVisualStyle) const
 
virtual OdResult setVisualStyle (OdDbObjectId visualStyleId, VisualStyleType vstype=kFullVisualStyle, bool doSubents=true)
 
virtual const OdGiMappermaterialMapper () const
 
virtual void setMaterialMapper (const OdGiMapper *mapper, bool doSubents=true)
 
double linetypeScale () const
 
virtual OdResult setLinetypeScale (double linetypeScale, bool doSubents=true)
 
OdDb::Visibility visibility () const
 
ODRX_SEALED_VIRTUAL OdResult setVisibility (OdDb::Visibility visibility, bool doSubents=true) ODRX_SEALED
 
OdDb::Visibility tempVisibility () const
 
void setTempVisibility (OdDb::Visibility visibility)
 
OdDb::LineWeight lineWeight () const
 
virtual OdResult setLineWeight (OdDb::LineWeight lineWeight, bool doSubents=true)
 
virtual bool castShadows () const
 
virtual void setCastShadows (bool castShadows)
 
virtual bool receiveShadows () const
 
virtual void setReceiveShadows (bool receiveShadows)
 
virtual OdDb::CollisionType collisionType () const
 
void setPropertiesFrom (const OdDbEntity *pSource, bool doSubents=true)
 
virtual bool isPlanar () const
 
virtual OdResult getPlane (OdGePlane &plane, OdDb::Planarity &planarity) const
 
void subHandOverTo (OdDbObject *pNewObject)
 
ODRX_SEALED_VIRTUAL OdResult transformBy (const OdGeMatrix3d &xfm) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getTransformedCopy (const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult explode (OdRxObjectPtrArray &entitySet) const ODRX_SEALED
 
virtual OdResult explodeToBlock (OdDbBlockTableRecord *pBlockRecord, OdDbObjectIdArray *ids=0)
 
virtual OdResult explodeGeometryToBlock (OdDbBlockTableRecord *pBlockRecord, OdDbObjectIdArray *ids=0)
 
virtual void subViewportDraw (OdGiViewportDraw *pVd) const
 
void setDatabaseDefaults (OdDbDatabase *pDb=0, bool doSubents=false)
 
virtual void applyPartialUndo (OdDbDwgFiler *pUndoFiler, OdRxClass *pClassObj)
 
void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
 
virtual OdResult dxfIn (OdDbDxfFiler *pFiler)
 
virtual void dxfOut (OdDbDxfFiler *pFiler) const
 
virtual OdGiDrawabledrawable ()
 
virtual void subList () const
 
void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
void recordGraphicsModified (bool graphicsModified=true)
 
virtual void copyFrom (const OdRxObject *pSource)
 
ODRX_SEALED_VIRTUAL void list () const ODRX_SEALED
 
virtual OdResult getGeomExtents (OdGeExtents3d &extents) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void highlight (bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool isContentSnappable () const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPoints (OdGePoint3dArray &gripPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAt (const OdIntArray &indices, const OdGeVector3d &offset) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPoints (OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAt (const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getStretchPoints (OdGePoint3dArray &stretchPoints) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveStretchPointsAt (const OdIntArray &indices, const OdGeVector3d &offset) ODRX_SEALED
 
virtual void dragStatus (const OdDb::DragStat status)
 
ODRX_SEALED_VIRTUAL void gripStatus (const OdDb::GripStat status) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool cloneMeForDragging () ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool hideMeForDragging () const ODRX_SEALED
 
virtual void saveAs (OdGiWorldDraw *pWd, OdDb::DwgVersion ver) const
 
ODRX_SEALED_VIRTUAL OdResult getCompoundObjectTransform (OdGeMatrix3d &xM) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult intersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult intersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const ODRX_SEALED
 
OdResult boundingBoxIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker, OdGsMarker otherGsMarker) const
 
OdResult boundingBoxIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker, OdGsMarker otherGsMarker) const
 
ODRX_SEALED_VIRTUAL OdResult getSubentPathsAtGsMarker (OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &xfm, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGsMarkersAtSubentPath (const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getGripPointsAtSubentPath (const OdDbFullSubentPath &path, OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const OdUInt32 bitflags) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult moveGripPointsAtSubentPaths (const OdDbFullSubentPathArray &paths, const OdDbVoidPtrArray &gripAppData, const OdGeVector3d &offset, const OdUInt32 bitflags) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult deleteSubentPaths (const OdDbFullSubentPathArray &paths) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult addSubentPaths (const OdDbFullSubentPathArray &paths) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbEntityPtr subentPtr (const OdDbFullSubentPath &path) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult transformSubentPathsBy (const OdDbFullSubentPathArray &paths, const OdGeMatrix3d &xform) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getSubentClassId (const OdDbFullSubentPath &path, void *clsId) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdResult getSubentPathGeomExtents (const OdDbFullSubentPath &path, OdGeExtents3d &extents) ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void subentGripStatus (OdDb::GripStat status, const OdDbFullSubentPath &subentity) ODRX_SEALED
 
virtual OdGeMatrix3d getEcs () const
 
- 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)
 
OdResult erase (bool eraseIt=true)
 
void handOverTo (OdDbObject *pNewObject, bool keepXData=true, bool keepExtDict=true)
 
void swapIdWith (OdDbObjectId otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void audit (OdDbAuditInfo *pAuditInfo)
 
void dwgIn (OdDbDwgFiler *pFiler)
 
void dwgOut (OdDbDwgFiler *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 ()
 
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
 
void setOdDbObjectIdsInFlux ()
 
bool isOdDbObjectIdsInFlux () const
 
virtual void copied (const OdDbObject *pObject, const OdDbObject *pNewObject)
 
virtual void goodbye (const OdDbObject *pObject)
 
virtual void openedForModify (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)
 
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 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
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Member Functions inherited from OdDbEntity
virtual OdDbObjectPtr subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdDbObjectPtr subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *, bool bPrimary) const ODRX_OVERRIDE
 
virtual OdResult subExplode (OdRxObjectPtrArray &entitySet) const
 
virtual OdResult subGetCompoundObjectTransform (OdGeMatrix3d &xM) const
 
virtual bool subCloneMeForDragging ()
 
virtual bool subHideMeForDragging () const
 
virtual void subGripStatus (const OdDb::GripStat status)
 
virtual OdResult subGetOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const
 
virtual OdResult subGetOsnapPoints (OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, const OdGeMatrix3d &insertionMat) const
 
virtual bool subIsContentSnappable () const
 
virtual OdResult subGetGripPoints (OdGePoint3dArray &gripPoints) const
 
virtual OdResult subMoveGripPointsAt (const OdIntArray &indices, const OdGeVector3d &offset)
 
virtual OdResult subGetGripPoints (OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const int bitFlags) const
 
virtual OdResult subMoveGripPointsAt (const OdDbVoidPtrArray &grips, const OdGeVector3d &offset, int bitFlags)
 
virtual OdResult subGetStretchPoints (OdGePoint3dArray &stretchPoints) const
 
virtual OdResult subMoveStretchPointsAt (const OdIntArray &indices, const OdGeVector3d &offset)
 
virtual OdResult subIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const
 
virtual OdResult subIntersectWith (const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0) const
 
virtual void subHighlight (bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const
 
virtual OdDb::Visibility subVisibility () const
 
virtual OdResult subSetVisibility (OdDb::Visibility visibility, bool doSubents=true)
 
virtual OdResult subDeleteSubentPaths (const OdDbFullSubentPathArray &paths)
 
virtual OdResult subAddSubentPaths (const OdDbFullSubentPathArray &paths)
 
virtual OdResult subMoveGripPointsAtSubentPaths (const OdDbFullSubentPathArray &paths, const OdDbVoidPtrArray &gripAppData, const OdGeVector3d &offset, const OdUInt32 bitflags)
 
virtual OdResult subGetGripPointsAtSubentPath (const OdDbFullSubentPath &path, OdDbGripDataPtrArray &grips, const double curViewUnitSize, const int gripSize, const OdGeVector3d &curViewDir, const OdUInt32 bitflags) const
 
virtual OdResult subGetSubentPathsAtGsMarker (OdDb::SubentType type, OdGsMarker gsMark, const OdGePoint3d &pickPoint, const OdGeMatrix3d &xfm, OdDbFullSubentPathArray &subentPaths, const OdDbObjectIdArray *pEntAndInsertStack=0) const
 
virtual OdResult subGetGsMarkersAtSubentPath (const OdDbFullSubentPath &subPath, OdGsMarkerArray &gsMarkers) const
 
virtual OdDbEntityPtr subSubentPtr (const OdDbFullSubentPath &path) const
 
virtual OdResult subTransformSubentPathsBy (const OdDbFullSubentPathArray &paths, const OdGeMatrix3d &xform)
 
virtual OdResult subGetSubentClassId (const OdDbFullSubentPath &path, void *clsId) const
 
virtual OdResult subGetSubentPathGeomExtents (const OdDbFullSubentPath &path, OdGeExtents3d &extents) const
 
virtual void subSubentGripStatus (OdDb::GripStat status, const OdDbFullSubentPath &subentity)
 
- Protected Member Functions inherited from OdDbObject
 OdDbObject ()
 
- 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 PaperSpace Viewport entities in an OdDbDatabase instance.

See also
TD_Db <group OdDb_Classes>

Definition at line 48 of file DbViewport.h.

Member Enumeration Documentation

◆ ShadePlotType

Enumerator
kAsDisplayed 
kWireframe 
kHidden 
kRendered 
kVisualStyle 
kRenderPreset 

Definition at line 647 of file DbViewport.h.

◆ StandardScaleType

Enumerator
kScaleToFit 
kCustomScale 
k1_1 
k1_2 
k1_4 
k1_5 
k1_8 
k1_10 
k1_16 
k1_20 
k1_30 
k1_40 
k1_50 
k1_100 
k2_1 
k4_1 
k8_1 
k10_1 
k100_1 
k1_128in_1ft 
k1_64in_1ft 
k1_32in_1ft 
k1_16in_1ft 
k3_32in_1ft 
k1_8in_1ft 
k3_16in_1ft 
k1_4in_1ft 
k3_8in_1ft 
k1_2in_1ft 
k3_4in_1ft 
k1in_1ft 
k1and1_2in_1ft 
k3in_1ft 
k6in_1ft 
k1ft_1ft 

Definition at line 608 of file DbViewport.h.

Constructor & Destructor Documentation

◆ OdDbViewport()

OdDbViewport::OdDbViewport ( )

Member Function Documentation

◆ ambientLightColor()

OdCmColor OdDbViewport::ambientLightColor ( ) const

◆ annotationScale()

OdDbAnnotationScalePtr OdDbViewport::annotationScale ( ) const

◆ backClipDistance()

double OdDbViewport::backClipDistance ( ) const

Returns the back clip distance of this Viewport object (DXF 44).

◆ background()

OdDbObjectId OdDbViewport::background ( ) const

◆ brightness()

double OdDbViewport::brightness ( ) const

◆ centerPoint()

OdGePoint3d OdDbViewport::centerPoint ( ) const

Returns the WCS center point of this Viewport object (DXF 10).

◆ circleSides()

OdUInt16 OdDbViewport::circleSides ( ) const

Returns the circle zoom percent of this Viewport object (DXF 72).

Remarks
circleSides() has a range of [1..20000]

◆ contrast()

double OdDbViewport::contrast ( ) const

◆ customScale()

double OdDbViewport::customScale ( ) const

Returns the custom scale of this Viewport object.

◆ defaultLightingType()

OdGiViewportTraits::DefaultLightingType OdDbViewport::defaultLightingType ( ) const

◆ dwgInFields()

virtual OdResult OdDbViewport::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 OdDbEntity.

◆ dwgOutFields()

virtual void OdDbViewport::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 OdDbEntity.

◆ dxfInFields()

virtual OdResult OdDbViewport::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 OdDbEntity.

◆ dxfInFields_R12()

virtual OdResult OdDbViewport::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 OdDbEntity.

◆ dxfOutFields()

virtual void OdDbViewport::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 OdDbEntity.

◆ dxfOutFields_R12()

virtual void OdDbViewport::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 OdDbEntity.

◆ effectivePlotStyleSheet()

OdString OdDbViewport::effectivePlotStyleSheet ( ) const

Returns the plot style sheet name associated with this Viewport object.

◆ elevation()

double OdDbViewport::elevation ( ) const

Returns the elevation of the UCS plane of this entity (DXF 146).

Remarks
The elevation is the distance from the WCS origin to the UCS plane of this entity.

◆ erased()

void OdDbViewport::erased ( const OdDbObject pObject,
bool  erasing 
)
virtual

Notification function called whenever an object has been erased or unerased.

Parameters
pObject[in] Pointer to the object that was erased/unerased.
erasing[in] True if and only if this object is being erased.
Remarks
The default implementation of this function does nothing. This function can be overridden in custom classes.

Reimplemented from OdDbObject.

◆ explodeGeometry()

virtual OdResult OdDbViewport::explodeGeometry ( OdRxObjectPtrArray entitySet) const
virtual

Explodes this entity into a set of simpler entities.

Parameters
entitySet[in/out] Receives an array of pointers to the new entities.
Remarks
The newly created entities will be not database resident. Entities resulting from the explosion are appended to the specified array. The default implementation of this function calls subWorldDraw() and makes entities from geometry generated by subWorldDraw(). This function can be overridden in custom classes.
Returns
Returns eOk if successful, or an appropriate error code if not.

Reimplemented from OdDbEntity.

◆ freezeLayersInViewport()

void OdDbViewport::freezeLayersInViewport ( const OdDbObjectIdArray layerIds)

Freezes the specified layers in this Viewport object (DXF 341)

Parameters
layerIds[in] Object IDs of the layers to be frozen.
Remarks
Other viewports are unaffected by this function.

◆ frontClipDistance()

double OdDbViewport::frontClipDistance ( ) const

Returns the front clip distance of this Viewport object (DXF 43).

◆ getFrozenLayerList()

void OdDbViewport::getFrozenLayerList ( OdDbObjectIdArray layerIds) const

Returns all layers that are frozen in this Viewport object.

Parameters
layerIds[out] Receives the Object IDs of the frozen layers.

◆ getLabelBlock()

OdDbObjectId OdDbViewport::getLabelBlock ( ) const

◆ getModelView()

OdDbXrefObjectId OdDbViewport::getModelView ( ) const

◆ getSheetView()

OdDbObjectId OdDbViewport::getSheetView ( ) const

◆ getUcs()

void OdDbViewport::getUcs ( OdGePoint3d origin,
OdGeVector3d xAxis,
OdGeVector3d yAxis 
) const

Returns the origin, X-axis, and Y-Axis of the UCS associated with this Viewport object.

Parameters
origin[out] Receives the UCS origin (DXF 110).
xAxis[out] Receives the UCS X-axis (DXF 111).
yAxis[out] Receives the UCS Y-axis (DXF 112).

◆ gridIncrement()

OdGeVector2d OdDbViewport::gridIncrement ( ) const

Returns the grid increment of this Viewport object (DXF 15).

◆ gridMajor()

OdUInt16 OdDbViewport::gridMajor ( ) const

◆ gsView()

OdGsView* OdDbViewport::gsView ( ) const

◆ height()

double OdDbViewport::height ( ) const

Returns the height of this Viewport object (DXF 41).

Remarks
If this Viewport object is an overall viewport, the values returned by width() and height() must be divided by a factor of 1.058, and the parameters of setWidth and setHeight() must be multiplied by a like factor.

◆ hiddenLinesRemoved()

bool OdDbViewport::hiddenLinesRemoved ( ) const

Returns true if and only if this Viewport object will have hidden lines removed during plotting. (DXF 90, bit 0x800).

◆ isBackClipOn()

bool OdDbViewport::isBackClipOn ( ) const

Returns true if and only if back clipping is on for this Viewport object (DXF 90, bit 0x04).

◆ isDefaultLightingOn()

bool OdDbViewport::isDefaultLightingOn ( ) const

◆ isFastZoomOn()

bool OdDbViewport::isFastZoomOn ( ) const

Returns true if and only if fast zooms are on for this Viewport object (DXF 90, bit 0x80).

◆ isFrontClipAtEyeOn()

bool OdDbViewport::isFrontClipAtEyeOn ( ) const

Returns true if and only if the front clipping plane passes through the camera (DXF 90, bit 0x10).

Remarks
If true, the front clipping plane ignores the front clip distance.

◆ isFrontClipOn()

bool OdDbViewport::isFrontClipOn ( ) const

Returns true if and only if front clipping is on for this Viewport object (DXF 90, bit 0x02).

◆ isGridAdaptive()

bool OdDbViewport::isGridAdaptive ( ) const

◆ isGridBoundToLimits()

bool OdDbViewport::isGridBoundToLimits ( ) const

◆ isGridFollow()

bool OdDbViewport::isGridFollow ( ) const

◆ isGridOn()

bool OdDbViewport::isGridOn ( ) const

Returns true if and only if the grid is on for this Viewport object (DXF 90, bit 0x200).

◆ isGridSubdivisionRestricted()

bool OdDbViewport::isGridSubdivisionRestricted ( ) const

◆ isLayerFrozenInViewport()

bool OdDbViewport::isLayerFrozenInViewport ( const OdDbObjectId layerId) const

Returns true and only if the specified layer is frozen in this Viewport object.

Parameters
layerId[in] Layer ID of the layer to be queried.

◆ isLocked()

bool OdDbViewport::isLocked ( ) const

Returns true if and only if scale factor of this Viewport object is locked (DXF 90, bit 0x4000).

◆ isNonRectClipOn()

bool OdDbViewport::isNonRectClipOn ( ) const

Returns true if and only if non-rectangular clipping is enabled for this Viewport object (DXF 90, bit 0x10000).

◆ isOn()

bool OdDbViewport::isOn ( ) const

Returns true if and only if this Viewport object is on (DXF 90, bit 0x20000).

◆ isPerspectiveOn()

bool OdDbViewport::isPerspectiveOn ( ) const

Returns true if and only if perspective is on for this Viewport object (DXF 90, bit 0x01).

◆ isSnapIsometric()

bool OdDbViewport::isSnapIsometric ( ) const

Returns true if and only if isometric snap style is on for this Viewport object (DXF 90, bit 0x400).

◆ isSnapOn()

bool OdDbViewport::isSnapOn ( ) const

Returns true if and only if the snap mode is on for this Viewport object (DXF 90, bit 0x100).

◆ isTransparent()

bool OdDbViewport::isTransparent ( ) const

Not implemented. The value returned is not saved to file. Always returns true.

◆ isUcsFollowModeOn()

bool OdDbViewport::isUcsFollowModeOn ( ) const

Returns true if and only if UCS follow mode is on for this Viewport object (DXF 90, bit 0x08).

◆ isUcsIconAtOrigin()

bool OdDbViewport::isUcsIconAtOrigin ( ) const

Returns true if and only if the UCS icon is at the UCS origin for this Viewport object (DXF 90, bit 0x40).

◆ isUcsIconVisible()

bool OdDbViewport::isUcsIconVisible ( ) const

Returns true if and only if the UCS icon is visible for this Viewport object (DXF 90, bit 0x20).

◆ isUcsOrthographic()

bool OdDbViewport::isUcsOrthographic ( OdDb::OrthographicView viewType,
const OdDbDatabase pDb = 0 
) const

True if and only if the UCS associated with this Viewport object is orthographic with respect to UCSBASE (DXF 79).

Parameters
viewType[out] Receives the orthographic view type.
pDb[in] Working database. If object is a database resident this parameter is ignored.
Returns
Returns the type of orthographic view.
Remarks
viewType must be one of the following:

Value View type OdDb::kNonOrthoView 0 Non-orthographic with respect to the UCS OdDb::kTopView 1 Top view with respect to the UCS OdDb::kBottomView 2 Bottom view with respect to the UCS OdDb::kFrontView 3 Front view with respect to the UCS OdDb::kBackView 4 Back view with respect to the UCS OdDb::kLeftView 5 Left view with respect to the UCS OdDb::kRightView 6 Right view with respect to the UCS

◆ isUcsSavedWithViewport()

bool OdDbViewport::isUcsSavedWithViewport ( ) const

Returns true if and only if the UCS that is associated with this Viewport object will become active with the activation of this Viewport object.

◆ lensLength()

double OdDbViewport::lensLength ( ) const

Returns the perspective mode lens length (in mm) of this Viewport object (DXF 42).

◆ modified()

void OdDbViewport::modified ( const OdDbObject pObject)
virtual

Notification function called whenever an object is opened OdDb::kForWrite, a function has been called that could modify the contents of this object, and this object is now being closed.

Parameters
pObject[in] Pointer to the object that is being closed after being modified.
Remarks
The default implementation of this function does nothing. This function can be overridden in custom classes.

Reimplemented from OdDbObject.

◆ nonRectClipEntityId()

OdDbObjectId OdDbViewport::nonRectClipEntityId ( ) const

Returns the Object ID of the clipping entity for this Viewport object (DXF 340).

◆ number()

OdInt16 OdDbViewport::number ( ) const

Returns the ID number of this Viewport object.

Returns
Returns -1 if this Viewport object is inactive.

◆ ODDB_DECLARE_MEMBERS()

OdDbViewport::ODDB_DECLARE_MEMBERS ( OdDbViewport  )

◆ plotAsRaster()

bool OdDbViewport::plotAsRaster ( ) const

◆ plotStyleSheet()

OdString OdDbViewport::plotStyleSheet ( ) const

Returns the name of the plot style sheet applied to objects in this Viewport object (DXF 1).

◆ plotWireframe()

bool OdDbViewport::plotWireframe ( ) const

◆ removeHiddenLines()

void OdDbViewport::removeHiddenLines ( )

Sets this Viewport object to have hidden lines removed during plotting. (DXF 90, bit 0x800).

◆ removeLabelBlock()

void OdDbViewport::removeLabelBlock ( )

◆ removeModelView()

void OdDbViewport::removeModelView ( )

◆ removeSheetView()

void OdDbViewport::removeSheetView ( )

◆ renderMode()

OdDb::RenderMode OdDbViewport::renderMode ( ) const

Returns the render mode of this Viewport object (DXF 281).

Remarks
renderMode() returns one of the following:

Value Description kBoundingBox -1 Bounding box. For internal use only. k2DOptimized 0 Standard display. Optimized for 2D. kWireframe 1 Standard display. Uses 3D pipeline. kHiddenLine 2 Wireframe display. Hidden lines removed. kFlatShaded 3 Faceted display. One color per face. kGouraudShaded 4 Smooth shaded display. Colors interpolated between vertices. kFlatShadedWithWireframe 5 Faceted display with wireframe overlay. kGouraudShadedWithWireframe 6 Smooth shaded display with wireframe overlay.

◆ setAmbientLightColor()

void OdDbViewport::setAmbientLightColor ( const OdCmColor clr)

◆ setAnnotationScale()

OdResult OdDbViewport::setAnnotationScale ( const OdDbAnnotationScale pScaleObj)

◆ setBackClipDistance()

void OdDbViewport::setBackClipDistance ( double  backClipDistance)

Sets the back distance of this Viewport object (DXF 44).

Parameters
backClipDistance[in] Back clip distance.

◆ setBackClipOff()

void OdDbViewport::setBackClipOff ( )

Turns off back clipping for this Viewport object (DXF 90, bit 0x04).

◆ setBackClipOn()

void OdDbViewport::setBackClipOn ( )

Turns on back clipping for this Viewport object (DXF 90, bit 0x04).

◆ setBackground()

void OdDbViewport::setBackground ( const OdDbObjectId backgroundId)

◆ setBrightness()

void OdDbViewport::setBrightness ( double  )

◆ setCenterPoint()

void OdDbViewport::setCenterPoint ( const OdGePoint3d centerPoint)

Sets the WCS center point of this Viewport object (DXF 10).

Parameters
centerPoint[in] Center point.

◆ setCircleSides()

void OdDbViewport::setCircleSides ( OdUInt16  circleSides)

Sets the circle zoom percent of this Viewport object (DXF 72).

Parameters
circleSides[in] circle zoom percent [1,20000].

◆ setContrast()

void OdDbViewport::setContrast ( double  )

◆ setCustomScale()

void OdDbViewport::setCustomScale ( double  customScale)

Sets the custom scale of this Viewport object.

Parameters
customScale[in] Custom scale.

◆ setDefaultLightingOn()

void OdDbViewport::setDefaultLightingOn ( bool  on)

◆ setDefaultLightingType()

void OdDbViewport::setDefaultLightingType ( OdGiViewportTraits::DefaultLightingType  typ)

◆ setElevation()

void OdDbViewport::setElevation ( double  elevation)

Sets the elevation of the UCS plane of this Viewport object (DXF 146).

Parameters
elevation[in] Elevation.
Remarks
The elevation is the distance from the WCS origin to the plane of this Viewport object.

◆ setFastZoomOff()

void OdDbViewport::setFastZoomOff ( )

Sets fast zooms off for this Viewport object (DXF 90, bit 0x80).

◆ setFastZoomOn()

void OdDbViewport::setFastZoomOn ( )

Sets fast zooms on for this Viewport object (DXF 90, bit 0x80).

◆ setFrontClipAtEyeOff()

void OdDbViewport::setFrontClipAtEyeOff ( )

Sets the front clipping plane to utilize the front clip distance (DXF 90, bit 0x10).

◆ setFrontClipAtEyeOn()

void OdDbViewport::setFrontClipAtEyeOn ( )

Sets the front clipping plane to pass through the camera (DXF 90, bit 0x10).

Remarks
The front clipping plane ignores the front clip distance.

◆ setFrontClipDistance()

void OdDbViewport::setFrontClipDistance ( double  frontClipDistance)

Sets the front clip distance of this Viewport object (DXF 43).

Parameters
frontClipDistance[in] Front clip distance.

◆ setFrontClipOff()

void OdDbViewport::setFrontClipOff ( )

Turns off front clipping for this Viewport object (DXF 90, bit 0x02).

◆ setFrontClipOn()

void OdDbViewport::setFrontClipOn ( )

Turns on front clipping for this Viewport object (DXF 90, bit 0x02).

◆ setGridAdaptive()

void OdDbViewport::setGridAdaptive ( bool  bNewVal)

◆ setGridBoundToLimits()

void OdDbViewport::setGridBoundToLimits ( bool  bNewVal)

◆ setGridFollow()

void OdDbViewport::setGridFollow ( bool  bNewVal)

◆ setGridIncrement()

void OdDbViewport::setGridIncrement ( const OdGeVector2d gridIncrement)

Sets the grid increment of this Viewport object (DXF 15).

Parameters
gridIncrement[in] Grid increment.

◆ setGridMajor()

void OdDbViewport::setGridMajor ( OdUInt16  )

◆ setGridOff()

void OdDbViewport::setGridOff ( )

Sets the grid off for this Viewport object (DXF 90, bit 0x200).

◆ setGridOn()

void OdDbViewport::setGridOn ( )

Sets the grid on for this Viewport object (DXF 90, bit 0x200).

◆ setGridSubdivisionRestricted()

void OdDbViewport::setGridSubdivisionRestricted ( bool  bNewVal)

◆ setGsView()

void OdDbViewport::setGsView ( OdGsView )

◆ setHeight()

void OdDbViewport::setHeight ( double  height)

Sets the height of this Viewport object (DXF 41).

Parameters
height[in] Height.
Remarks
If this Viewport object is an overall viewport, the values returned by width() and height() must be divided by a factor of 1.058, and the parameters of setWidth and setHeight() must be multiplied by a like factor.

◆ setLabelBlock()

void OdDbViewport::setLabelBlock ( const OdDbObjectId  objId)

◆ setLensLength()

void OdDbViewport::setLensLength ( double  lensLength)

Sets the perspective mode lens length of this Viewport object (DXF 42).

Parameters
lensLength[in] Lens length (mm).

◆ setLocked()

void OdDbViewport::setLocked ( )

Locks the scale factor of this Viewport object (DXF 90, bit 0x4000).

◆ setModelView()

void OdDbViewport::setModelView ( const OdDbXrefObjectId objId)

◆ setNonRectClipEntityId()

void OdDbViewport::setNonRectClipEntityId ( OdDbObjectId  clipEntityId)

Sets the Object ID of the clipping entity for this Viewport object (DXF 340).

Parameters
clipEntityId[in] Object ID of the clipping entity.
Remarks
The following entity types are acceptable clipping entities:

@untitled table OdDb2dPolyline OdDb3dPolyline OdDbCircle OdDbEllipse OdDbFace OdDbPolyline OdDbRegion OdDbSpline

Remarks
A clipping entity must be in the same PaperSpace as this Viewport.

◆ setNonRectClipOff()

void OdDbViewport::setNonRectClipOff ( )

Sets non-rectangular clipping off for this Viewport object (DXF 90, bit 0x10000).

◆ setNonRectClipOn()

void OdDbViewport::setNonRectClipOn ( )

Sets non-rectangular clipping on for this Viewport object (DXF 90, bit 0x10000).

◆ setOff()

void OdDbViewport::setOff ( )

Turns off this Viewport object (DXF 90, bit 0x20000, DXF 68 zero).

◆ setOn()

void OdDbViewport::setOn ( )

Turns on this Viewport object (DXF 90, bit 0x20000, DXF 68 non-zero).

◆ setOpaque()

void OdDbViewport::setOpaque ( )

Not implemented. The set value is not saved to file.

◆ setPerspectiveOff()

void OdDbViewport::setPerspectiveOff ( )

Sets perspective off for this Viewport object (DXF 90, bit 0x01).

◆ setPerspectiveOn()

void OdDbViewport::setPerspectiveOn ( )

Sets perspective on for this Viewport object (DXF 90, bit 0x01).

◆ setPlotStyleSheet()

void OdDbViewport::setPlotStyleSheet ( const OdString plotStyleSheetName)

Sets the plot style sheet name associated with this Viewport object.

◆ setRenderMode()

void OdDbViewport::setRenderMode ( OdDb::RenderMode  renderMode)

Set the render mode of this Viewport object (DXF 281).

Parameters
renderMode[in] Render mode.
Remarks
renderMode must be one of the following:

Value Description kBoundingBox -1 Bounding box. For internal use only. k2DOptimized 0 Standard display. Optimized for 2D. kWireframe 1 Standard display. Uses 3D pipeline. kHiddenLine 2 Wireframe display. Hidden lines removed. kFlatShaded 3 Faceted display. One color per face. kGouraudShaded 4 Smooth shaded display. Colors interpolated between vertices. kFlatShadedWithWireframe 5 Faceted display with wireframe overlay. kGouraudShadedWithWireframe 6 Smooth shaded display with wireframe overlay.

◆ setShadePlot() [1/2]

void OdDbViewport::setShadePlot ( const ShadePlotType  shadePlot)

Set the shade plot type of this Viewport object (DXF 281).

Parameters
shadePlot[in] Shade plot type.
Remarks
shadePlot determines how this Viewport object will plot.

◆ setShadePlot() [2/2]

void OdDbViewport::setShadePlot ( const ShadePlotType  type,
const OdDbObjectId shadePlotId 
)

Set the shade plot type of this Viewport object (DXF 281).

Parameters
type[in] Shade plot type.
Remarks
type determines how this Viewport object will plot.

◆ setSheetView()

void OdDbViewport::setSheetView ( const OdDbObjectId objId)

◆ setSnapAngle()

void OdDbViewport::setSnapAngle ( double  snapAngle)

Sets the UCS snap angle of this Viewport object (DXF 50).

Parameters
snapAngle[in] Snap angle.
Remarks
All angles are expressed in radians.

◆ setSnapBasePoint()

void OdDbViewport::setSnapBasePoint ( const OdGePoint2d snapBasePoint)

Sets the UCS snap base point of this Viewport object (DXF 13).

Parameters
snapBasePoint[in] Snap base point.

◆ setSnapIncrement()

void OdDbViewport::setSnapIncrement ( const OdGeVector2d snapIncrement)

Sets the snap increment of this Viewport object (DXF 14).

Parameters
snapIncrement[in] Snap increment.

◆ setSnapIsometric()

void OdDbViewport::setSnapIsometric ( )

Sets the isometric snap style on for this Viewport object (DXF 90, bit 0x400).

◆ setSnapIsoPair()

void OdDbViewport::setSnapIsoPair ( OdUInt16  snapIsoPair)

Sets the snap IsoPair of this Viewport object (DXF 14).

Parameters
snapIsoPair[in] Snap IsoPair.
Remarks
snapIsoPair must be one of the following:

Description 0 Left isoplane 1 Top isoplane 2 Right isoplane

◆ setSnapOff()

void OdDbViewport::setSnapOff ( )

Sets the snap mode off for this Viewport object (DXF 90, bit 0x100).

◆ setSnapOn()

void OdDbViewport::setSnapOn ( )

Sets the snap mode on for this Viewport object (DXF 90, bit 0x100).

◆ setSnapStandard()

void OdDbViewport::setSnapStandard ( )

Sets the isometric snap style off for this Viewport object (DXF 90, bit 0x400).

◆ setStandardScale()

void OdDbViewport::setStandardScale ( const StandardScaleType  standardScale)

Sets the standard scale type of this Viewport object.

Parameters
standardScale[in] Standard scale type.

◆ setSun()

OdDbObjectId OdDbViewport::setSun ( OdDbSun pSun)

◆ setToneOperatorParameters()

void OdDbViewport::setToneOperatorParameters ( const OdGiToneOperatorParameters params)

◆ setTransparent()

void OdDbViewport::setTransparent ( )

Not implemented. The set value is not saved to file.

◆ setTwistAngle()

void OdDbViewport::setTwistAngle ( double  twistAngle)

Sets the DCS twist angle of this Viewport object (DXF 51).

Parameters
twistAngle[in] Twist angle.
Remarks
All angles are expressed in radians.

◆ setUcs() [1/3]

void OdDbViewport::setUcs ( const OdDbObjectId ucsId)

Sets the UCS associated with this Viewport object

Parameters
ucsId[in] Object ID of the UCS (DXF 345 or 346).

◆ setUcs() [2/3]

void OdDbViewport::setUcs ( const OdGePoint3d origin,
const OdGeVector3d xAxis,
const OdGeVector3d yAxis 
)

Sets the UCS associated with this Viewport object

Parameters
origin[in] The WCS origin of the UCS (DXF 110).
xAxis[in] The WCS X-axis of the UCS (DXF 111).
yAxis[in] The WCS Y-axis of the UCS(DXF 112).

◆ setUcs() [3/3]

void OdDbViewport::setUcs ( OdDb::OrthographicView  viewType,
const OdDbDatabase pDb = 0 
)

Sets the UCS associated with this Viewport object

Parameters
viewType[in] Orthographic view type (DXF 79).
pDb[in] Working database. If object is a database resident this parameter is ignored.
Remarks
viewType must be one of the following:

Value View type OdDb::kNonOrthoView 0 Non-orthographic with respect to the UCS OdDb::kTopView 1 Top view with respect to the UCS OdDb::kBottomView 2 Bottom view with respect to the UCS OdDb::kFrontView 3 Front view with respect to the UCS OdDb::kBackView 4 Back view with respect to the UCS OdDb::kLeftView 5 Left view with respect to the UCS OdDb::kRightView 6 Right view with respect to the UCS

◆ setUcsFollowModeOff()

void OdDbViewport::setUcsFollowModeOff ( )

Sets UCS follow mode off for this Viewport object (DXF 90, bit 0x08).

◆ setUcsFollowModeOn()

void OdDbViewport::setUcsFollowModeOn ( )

Sets UCS follow mode on for this Viewport object (DXF 90, bit 0x08).

◆ setUcsIconAtCorner()

void OdDbViewport::setUcsIconAtCorner ( )

Sets the UCS icon to the corner of this Viewport object (DXF 90, bit 0x40).

◆ setUcsIconAtOrigin()

void OdDbViewport::setUcsIconAtOrigin ( )

Sets the UCS icon to the UCS origin for this Viewport object (DXF 90, bit 0x40).

◆ setUcsIconInvisible()

void OdDbViewport::setUcsIconInvisible ( )

Sets UCS icon visible false for this Viewport object (DXF 90, bit 0x20).

◆ setUcsIconVisible()

void OdDbViewport::setUcsIconVisible ( )

Sets UCS icon visible on for this Viewport object (DXF 90, bit 0x20).

◆ setUcsPerViewport()

void OdDbViewport::setUcsPerViewport ( bool  ucsPerViewport)

Controls the activation of the UCS that is associated with this Viewport object with the activation of this Viewport object.

Parameters
ucsPerViewport[in] Controls activation of the UCS.

◆ setUcsToWorld()

void OdDbViewport::setUcsToWorld ( )

Sets the UCS associated with this Viewport object to the WCS.

◆ setUnlocked()

void OdDbViewport::setUnlocked ( )

Unlocks the scale factor of this Viewport object (DXF 90, bit 0x4000).

◆ setViewCenter()

void OdDbViewport::setViewCenter ( const OdGePoint2d viewCenter)

Sets the DCS view center of this Viewport object (DXF 12).

Parameters
viewCenter[in] View center.

◆ setViewDirection()

void OdDbViewport::setViewDirection ( const OdGeVector3d viewDirection)

Sets the WCS view direction of this Viewport object (DXF 16).

Parameters
viewDirection[in] View direction.

◆ setViewHeight()

void OdDbViewport::setViewHeight ( double  viewHeight)

Sets the DCS view height of this Viewport object (DXF 45).

Parameters
viewHeight[in] View height.

◆ setViewTarget()

void OdDbViewport::setViewTarget ( const OdGePoint3d viewTarget)

Sets the WCS view target of this Viewport object (DXF 17).

Parameters
viewTarget[in] View target.

◆ setVisualStyle()

void OdDbViewport::setVisualStyle ( const OdDbObjectId visualStyle)

◆ setWidth()

void OdDbViewport::setWidth ( double  width)

Sets the width of this Viewport object (DXF 40).

Parameters
width[in] Width.
Remarks
If this Viewport object is an overall viewport, the values returned by width() and height() must be divided by a factor of 1.058, and the parameters of setWidth and setHeight() must be multiplied by a like factor.

◆ shadePlot()

ShadePlotType OdDbViewport::shadePlot ( ) const

Returns the shade plot type of the current viewport.

Remarks
shadePlot determines how this Viewport object will plot.

◆ shadePlotId()

OdDbObjectId OdDbViewport::shadePlotId ( ) const

◆ showHiddenLines()

void OdDbViewport::showHiddenLines ( )

Sets this Viewport object to have hidden shown lines during plotting. (DXF 90, bit 0x800).

◆ snapAngle()

double OdDbViewport::snapAngle ( ) const

Returns the UCS snap angle of this Viewport object (DXF 50).

◆ snapBasePoint()

OdGePoint2d OdDbViewport::snapBasePoint ( ) const

Returns the UCS snap base point of this Viewport object (DXF 13).

◆ snapIncrement()

OdGeVector2d OdDbViewport::snapIncrement ( ) const

Returns the snap increment of this Viewport object (DXF 14).

◆ snapIsoPair()

OdUInt16 OdDbViewport::snapIsoPair ( ) const

Returns the snap IsoPair of this Viewport object (DXF 14).

Remarks
snapIsoPair() returns one of the following:

Description 0 Left isoplane 1 Top isoplane 2 Right isoplane

◆ standardScale()

StandardScaleType OdDbViewport::standardScale ( ) const

Returns the standard scale type of this Viewport object/

◆ subClose()

void OdDbViewport::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.

◆ subErase()

OdResult OdDbViewport::subErase ( bool  erasing)
virtual

Called as the first operation as this object is being erased or unerased.

Parameters
erasing[in] A copy of the erasing argument passed to erase().
Remarks
This function is notified just before the current object is to be erased, giving this function the ability to cancel the 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 OdDbEntity.

◆ subGetClassID()

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

Reimplemented from OdDbEntity.

◆ subGetGeomExtents()

virtual OdResult OdDbViewport::subGetGeomExtents ( OdGeExtents3d extents) const
virtual

Reimplemented from OdDbEntity.

◆ subGetTransformedCopy()

virtual OdResult OdDbViewport::subGetTransformedCopy ( const OdGeMatrix3d mat,
OdDbEntityPtr pCopy 
) const
virtual

Reimplemented from OdDbEntity.

◆ subSetAttributes()

virtual OdUInt32 OdDbViewport::subSetAttributes ( OdGiDrawableTraits pTraits) const
virtual

Sets the values of this object's subentity traits, and returns with the calling object's subentity traits.

Parameters
pTraits[in] Pointer to the OdGiDrawableTraits object to be set.
Remarks
When overriding subSetAttributes(), you must OR (|) the return value of <base class>::subSetAttributes(pTraits) with any flags you add.

A derived class may not remove flags for any reason.

The default implementation does nothing but returns kDrawableNone. This function can be overridden in custom classes.

Reimplemented from OdDbEntity.

◆ subSetDatabaseDefaults()

virtual void OdDbViewport::subSetDatabaseDefaults ( OdDbDatabase pDb,
bool  doSubents 
)
virtual

Called by setDatabaseDefaults() after the values are set.

Parameters
pDb[in] Pointer to the database whose default values are to be used.
doSubents[in] Set to true if subentities should be processed
Remarks
If pDb is null, the database containing this entity is used.

This function allows custom classes to inspect and modify the values set by setDatabaseDefaults.

The default implementation of this function returns eNotApplicable. This function can be overridden in custom classes.

Remarks
This function is not intended to be called by the user.

Reimplemented from OdDbEntity.

◆ subTransformBy()

virtual OdResult OdDbViewport::subTransformBy ( const OdGeMatrix3d xfm)
virtual

Reimplemented from OdDbEntity.

◆ subWorldDraw()

virtual bool OdDbViewport::subWorldDraw ( OdGiWorldDraw pWd) const
virtual

Reimplemented from OdDbEntity.

◆ sunId()

OdDbObjectId OdDbViewport::sunId ( ) const

◆ syncModelView()

OdResult OdDbViewport::syncModelView ( )

◆ thawAllLayersInViewport()

void OdDbViewport::thawAllLayersInViewport ( )

Thaws all layers in this Viewport object.

◆ thawLayersInViewport()

void OdDbViewport::thawLayersInViewport ( const OdDbObjectIdArray layerIds)

Thaws the specified layers in this Viewport object (DXF 341)

Parameters
layerIds[in] Object IDs of the layers to be thawed.
Remarks
Other viewports are unaffected by this function.

◆ toneOperatorParameters()

void OdDbViewport::toneOperatorParameters ( OdGiToneOperatorParameters params) const

◆ twistAngle()

double OdDbViewport::twistAngle ( ) const

Returns the DCS twist angle of this Viewport object (DXF 51).

Remarks
All angles are expressed in radians.

◆ ucsName()

OdDbObjectId OdDbViewport::ucsName ( ) const

Returns the Object ID of the UCS associated with this Viewport object (DXF 345 or 346).

◆ updateDisplay()

void OdDbViewport::updateDisplay ( ) const

Updates the display to reflect changes in this Viewport object.

Remarks
Closing this Viewport object automatically calls this function.

Throws: eNotImplemented

◆ viewCenter()

OdGePoint2d OdDbViewport::viewCenter ( ) const

Returns the DCS view center of this Viewport object (DXF 12).

◆ viewDirection()

OdGeVector3d OdDbViewport::viewDirection ( ) const

Returns the WCS view direction of this Viewport object (DXF 16).

◆ viewHeight()

double OdDbViewport::viewHeight ( ) const

Returns the DCS view height of this Viewport object (DXF 45).

◆ viewTarget()

OdGePoint3d OdDbViewport::viewTarget ( ) const

Returns the WCS view target of this Viewport object (DXF 17).

◆ visualStyle()

OdDbObjectId OdDbViewport::visualStyle ( ) const

◆ width()

double OdDbViewport::width ( ) const

Returns the width of this Viewport object (DXF 40).

Remarks
If this Viewport object is an overall viewport, the values returned by width() and height() must be divided by a factor of 1.058, and the parameters of setWidth and setHeight() must be multiplied by a like factor.

◆ zoomExtents()

void OdDbViewport::zoomExtents ( )

Adjusts the parameters of this Viewport object such that the view is zoomed to the extents of the drawing.


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