/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef __ODNWGSLAYOUTHELPER_H__ #define __ODNWGSLAYOUTHELPER_H__ #include "Gs/Gs.h" #include "NwExport.h" class OdNwObjectId; class OdGiContextForNwDatabase; #include "TD_PackPush.h" /** \details Corresponding C++ library: TG_Db */ class NWDBEXPORT OdNwGsLayoutHelper : public OdGsDevice { //DOM-IGNORE-BEGIN ODRX_DECLARE_MEMBERS(OdNwGsLayoutHelper); //DOM-IGNORE-END public: /** \details Returns the OdNwView object associated with this OdNwGsLayoutHelper object. \returns The ID of the OdNwView object. */ virtual OdNwObjectId layoutId() const = 0; /** \details Returns the active GsView object of the OdNwView object associated with this DBDrawingHelper object. \returns Pointer to the active GsView object. */ virtual OdGsViewPtr activeView() const = 0; /** \details Sets the active GsView object of the OdNwView object associated with this DBDrawingHelper object. \param pView [in] Pointer to the GsView. */ virtual void makeViewActive(OdGsView* pView) = 0; /** \details Returns the OdGsModel object. \returns Pointer to the OdGsModel object. */ virtual OdGsModel* gsModel() = 0; /** \details Returns the underlying OdGsDevice object. \returns Pointer to the underlying OdGsDevice object. */ virtual OdGsDevicePtr underlyingDevice() const = 0; /** \details Sets the active viewport. \param screenPt [in] Pick point in device coordinates. \returns The true value if the new active viewport has successfully set, or false otherwise. */ virtual bool setActiveViewport(const OdGePoint2d& screenPt) = 0; /** \details Returns the status of partial viewing progress. \returns The true value if partial viewing is in progress, or false otherwise. \remarks If the status of partial viewing progress is not supported, the method returns false. */ virtual bool isPartialViewingInProgress() const = 0; /** \details Returns the status of all objects rendered in partial viewing. \returns The true value if all objects are rendered, or false otherwise. */ virtual bool isAllObjectRendered() const = 0; /** \details Populates the OdGsDevice-derived object with OdGsViews-derived objects. \returns The OdGsDevice-derived wrapper that handles some of the OdGsDevice's calls. */ static OdGsDevicePtr setupLayoutView(OdNwObjectId idLayout, OdGsDevice* pDevice, OdGiContextForNwDatabase* pGiCtx); }; /** \details This template class is a specialization of the OdSmartPtr class for OdNwGsLayoutHelper object pointers. */ typedef OdSmartPtr OdNwGsLayoutHelperPtr; #include "TD_PackPop.h" #endif // __ODNWGSLAYOUTHELPER_H__