API Reference > OdDbRoot Classes > OdDbBaseDatabasePE Class > OdDbBaseDatabasePE Methods > OdDbBaseDatabasePE::zoomToExtents Method
OdDbBaseDatabasePE::zoomToExtents Method
Syntax
C++
virtual void zoomToExtents(const OdGsDCRect& outputRect, OdGsDevice* pDevice, OdDbBaseDatabase* db, OdGeBoundBlock3d& plotExtents, OdUInt32 extentsFlags = kZeroFlags, OdDbStub* objectId = NULL) = 0;
Parameters 
Description 
const OdGsDCRect& outputRect 
[in] A rectangle, which determines the printable area in device units.  
OdGsDevice* pDevice 
[in] A pointer to a device to render the current layout with.  
OdDbBaseDatabase* db 
[in] A pointer to a drawing database.  
OdGeBoundBlock3d& plotExtents 
[in/out] Eye coordinate system plotting extents of the device viewport.  
OdUInt32 extentsFlags = kZeroFlags 
[in] Extents flags.  
OdDbStub* objectId = NULL 
[in] Object identifier. 

Makes the specified Gs device render the current layout zoomed to extents.

If no viewport is found, the method throws an exception. plotExtents will be used to zoomExtents if kUseGivenExtents flag is set, otherwise they will be calculated

Copyright © 2002–2022. Open Design Alliance. All rights reserved.