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 
[out] 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 
[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.

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