| 
    CFx SDK Documentation
    2022 SP0
    
   | 
 
#include <DbGsManager.h>
  
Public Member Functions | |
| ODRX_DECLARE_MEMBERS (OdGsLayoutHelper) | |
| virtual OdDbObjectId | layoutId () const =0 | 
| virtual OdGsViewPtr | activeView () const =0 | 
| virtual void | makeViewActive (OdGsView *pView)=0 | 
| virtual OdGsModel * | gsModel ()=0 | 
| virtual OdGsDevicePtr | underlyingDevice () const =0 | 
| virtual bool | setActiveViewport (const OdGePoint2d &screenPt)=0 | 
| virtual bool | setActiveViewport (const OdDbObjectId &id)=0 | 
| virtual void | restoreGsViewDbLinkState ()=0 | 
| virtual bool | supportLayoutGsStateSaving () const =0 | 
| virtual bool | storeLayoutGsState (OdStreamBuf *pStream, OdUInt32 nFlags=0) const =0 | 
| virtual bool | restoreLayoutGsState (OdStreamBuf *pStream, OdUInt32 nFlags=0)=0 | 
  Public Member Functions inherited from OdGsDevice | |
| ODRX_DECLARE_MEMBERS (OdGsDevice) | |
| virtual OdRxDictionaryPtr | properties ()=0 | 
| virtual OdGiContext * | userGiContext () const =0 | 
| virtual void | setUserGiContext (OdGiContext *pUserGiContext)=0 | 
| virtual void | invalidate ()=0 | 
| virtual void | invalidate (const OdGsDCRect &screenRect)=0 | 
| virtual bool | isValid () const =0 | 
| virtual void | update (OdGsDCRect *pUpdatedRect=0)=0 | 
| virtual void | onSize (const OdGsDCRect &outputRect)=0 | 
| virtual void | onSize (const OdGsDCRectDouble &outputRect) | 
| virtual void | getSize (OdGsDCRect &outputRect) const =0 | 
| virtual void | getSize (OdGsDCRectDouble &outputRect) const | 
| virtual void | onRealizeForegroundPalette ()=0 | 
| virtual void | onRealizeBackgroundPalette ()=0 | 
| virtual void | onDisplayChange (int bitsPerPixel, int xPixels, int yPixels)=0 | 
| virtual OdGsViewPtr | createView (const OdGsClientViewInfo *pViewInfo=0, bool enableLayerVisibilityPerView=false)=0 | 
| virtual void | addView (OdGsView *pView)=0 | 
| virtual OdGsModelPtr | createModel ()=0 | 
| virtual bool | isModelCompatible (OdGsModel *pModel) const | 
| virtual bool | saveDeviceState (OdGsFiler *pFiler) const | 
| virtual bool | loadDeviceState (OdGsFiler *pFiler) | 
| virtual void | insertView (int viewIndex, OdGsView *pView)=0 | 
| virtual bool | eraseView (OdGsView *pView)=0 | 
| virtual bool | eraseView (int viewIndex)=0 | 
| virtual void | eraseAllViews ()=0 | 
| virtual int | numViews () const =0 | 
| virtual OdGsView * | viewAt (int viewIndex)=0 | 
| virtual bool | setBackgroundColor (ODCOLORREF backgroundColor)=0 | 
| virtual ODCOLORREF | getBackgroundColor ()=0 | 
| virtual void | setLogicalPalette (const ODCOLORREF *logicalPalette, int numColors)=0 | 
| virtual const ODCOLORREF * | getLogicalPalette (int &numColors) const =0 | 
| virtual void | getSnapShot (OdGiRasterImagePtr &pImage, const OdGsDCRect ®ion)=0 | 
| virtual OdGsUpdateManagerPtr | getUpdateManager (bool createIfNotExist=false) | 
| virtual void | setUpdateManager (OdGsUpdateManagerPtr pManager) | 
  Public Member Functions inherited from OdRxObject | |
| ODRX_HEAP_OPERATORS () | |
| OdRxObject () | |
| virtual | ~OdRxObject () | 
| virtual OdRxObject * | queryX (const OdRxClass *pClass) const | 
| virtual OdRxObject * | x (const OdRxClass *pClass) const | 
| virtual OdRxClass * | isA () 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 | 
Static Public Member Functions | |
| static bool | extractLayoutIdForGsState (OdStreamBuf *pStream, OdDbDatabase *pDb, OdDbObjectId &layoutObjId, OdUInt32 nFlags=0) | 
  Static Public Member Functions inherited from OdRxObject | |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) | 
| static OdRxClass * | desc () | 
Corresponding C++ library: TD_Db <group OdGs_Classes>
Definition at line 41 of file DbGsManager.h.
      
  | 
  pure virtual | 
Returns the active GsView object of the Layout object associated with this LayoutHelper object.
      
  | 
  static | 
Extracts Layout object Id from Gs state stream.
| pStream | [in] Pointer onto OdStreamBuf object into which Gs state will be stored. | 
| pDb | [in] Opened database pointer. | 
| layoutObjId | [out] Layout object Id will be returned through this argument. | 
| nFlags | [in] Optional flags. | 
      
  | 
  pure virtual | 
Return the OdGsModel object associated with this layout helper.
      
  | 
  pure virtual | 
Returns the Layout object associated with this LayoutHelper object.
Sets the active GsView object of the Layout object associated with this LayoutHelper object.
| pView | [in] Pointer to the GsView. | 
| OdGsLayoutHelper::ODRX_DECLARE_MEMBERS | ( | OdGsLayoutHelper | ) | 
      
  | 
  pure virtual | 
Restores layout GsView database linkages state.
      
  | 
  pure virtual | 
Restores Gs state compatible with this LayoutHelper object.
| pStream | [in] Pointer onto OdStreamBuf object from which Gs state will be restored. | 
| nFlags | [in] Optional flags. | 
| pRetFiler | [out] Returns filer object invoked for state loading. | 
      
  | 
  pure virtual | 
| id | [in] ObjectId of viewport which will be made active. | 
      
  | 
  pure virtual | 
Sets the active viewport
| at | [in] Pick point in device coordinates. | 
      
  | 
  pure virtual | 
Stores Gs state compatible with this LayoutHelper object.
| pStream | [in] Pointer onto OdStreamBuf object into which Gs state will be stored. | 
| nFlags | [in] Optional flags. | 
      
  | 
  pure virtual | 
Checks does underlying device supports Gs state saving/loading.
      
  | 
  pure virtual | 
Returns the underlying OdGsDevice object associated with this LayoutHelper object.