CFx SDK Documentation  2020SP3
FxDisplayDevice.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2020 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "FxPragmaPush.h"
20 
21 #include "FxVectorizeDevice.h"
22 #include "FxPlatformSettings.h"
23 
24 #include <Gi/GiRasterImage.h>
25 
26 class CFxView;
27 
28 #if !defined ( FxWinAPI )
29 #define FxWinAPI
30 #endif
31 
32 typedef void (FxWinAPI * DRAWHOOKPROC)(const CFxView*);
33 
39 class CFxDocument;
40 class CFxDisplayContext;
41 class OdDbObject;
42 
44 {
45 public:
47  ~CFxDisplayDevice(void) override;
48 
52  virtual const CFxDocument* GetFxDocument() const = 0;
53 
54  virtual void AddDrawHook( DRAWHOOKPROC ) = 0;
55  virtual void RemoveDrawHook( DRAWHOOKPROC ) = 0;
56 
62  virtual void Regen( CFxView* pView ) = 0;
63 
67  virtual void Redraw() = 0;
68 
73  virtual void GetScreenPicture( CFxImage& ) const = 0;
74 
78  virtual void InvalidateAllViewports() = 0;
79 
85  virtual CFxView* GetMaximizedView() = 0;
86 
92  virtual void SetMaximizedView( CFxView* pView ) = 0;
93 
101  virtual OdGiRasterImagePtr GetSlideImage( CFxView* & pView ) const = 0;
102 
109  virtual void SetSlideImage( OdGiRasterImagePtr slide, CFxView* pView ) = 0;
110 
115 
118  virtual bool IsSceneUpdatingActive() const = 0;
119 
122  virtual void SetSceneUpdatingActive( bool bVal ) = 0;
123 
126  virtual void ShrinkMemory() = 0;
127 
130  virtual CFxDisplayContext* GetDisplayContext() const = 0;
131 };
132 
134 
135 typedef enum
136 {
141  kDrawModeDisabled = 0x8
143 
144 DDKERNEL_API void RedrawEntity( const OdDbObject* pObject, DrawMode addModes, DrawMode removeModes, OdGsMarker gsMarker = -1 );
145 
146 #include "FxPragmaPop.h"
FxWinAPI
#define FxWinAPI
Definition: FxPlatformSettings.h:62
FxPragmaPop.h
CFxDisplayDevice::SetMaximizedView
virtual void SetMaximizedView(CFxView *pView)=0
kDrawModeFadeDisabled
@ kDrawModeFadeDisabled
Definition: FxDisplayDevice.h:140
CFxDisplayDevice::CFxDisplayDevice
CFxDisplayDevice(void)
CFxDisplayDevice
Definition: FxDisplayDevice.h:44
GiRasterImage.h
FxPlatformSettings.h
DrawMode
DrawMode
Definition: FxDisplayDevice.h:136
CFxDisplayDevice::InvalidateAllViewports
virtual void InvalidateAllViewports()=0
FxVectorizeDevice.h
CFxDisplayDevice::GetScreenPicture
virtual void GetScreenPicture(CFxImage &) const =0
CFxDisplayDevice::Regen
virtual void Regen(CFxView *pView)=0
CFxDisplayDevice::ShrinkMemory
virtual void ShrinkMemory()=0
CFxDisplayDevice::IsSceneUpdatingActive
virtual bool IsSceneUpdatingActive() const =0
kDrawModeHidden
@ kDrawModeHidden
Definition: FxDisplayDevice.h:138
CFxDisplayDevice::SetSlideImage
virtual void SetSlideImage(OdGiRasterImagePtr slide, CFxView *pView)=0
OdGsMarker
ptrdiff_t OdGsMarker
Definition: OdPlatformSettings.h:889
CFxDisplayDevice::RemoveDrawHook
virtual void RemoveDrawHook(DRAWHOOKPROC)=0
CFxImage
#define CFxImage
Definition: FxPlatformSettings.h:88
kDrawModeHighlighted
@ kDrawModeHighlighted
Definition: FxDisplayDevice.h:139
CFxVectorizeDevice
Definition: FxVectorizeDevice.h:42
CFxDisplayDevice::GetDisplayContext
virtual CFxDisplayContext * GetDisplayContext() const =0
OdSmartPtr< OdGiRasterImage >
CFxDisplayDevice::GetFxDocument
virtual const CFxDocument * GetFxDocument() const =0
CFxDisplayDevice::Redraw
virtual void Redraw()=0
RedrawEntity
DDKERNEL_API void RedrawEntity(const OdDbObject *pObject, DrawMode addModes, DrawMode removeModes, OdGsMarker gsMarker=-1)
CFxDisplayDevice::SetSceneUpdatingActive
virtual void SetSceneUpdatingActive(bool bVal)=0
CFxDocument
Definition: FxDocument.h:47
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxView
Definition: FxView.h:265
CFxDisplayDevice::GetEffectiveBackgroundColor
virtual ODCOLORREF GetEffectiveBackgroundColor() const =0
kDrawModeDisabled
@ kDrawModeDisabled
Definition: FxDisplayDevice.h:141
void
typedef void(FxWinAPI *DRAWHOOKPROC)(const CFxView *)
CFxDisplayDevice::GetMaximizedView
virtual CFxView * GetMaximizedView()=0
CFxDisplayDevicePtr
OdSmartPtr< CFxDisplayDevice > CFxDisplayDevicePtr
Definition: FxDisplayDevice.h:133
CFxDisplayDevice::~CFxDisplayDevice
~CFxDisplayDevice(void) override
CFxDisplayDevice::GetSlideImage
virtual OdGiRasterImagePtr GetSlideImage(CFxView *&pView) const =0
CFxDisplayDevice::AddDrawHook
virtual void AddDrawHook(DRAWHOOKPROC)=0
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
FxPragmaPush.h
OdDbObject
Definition: DbObject.h:211
kDrawModeNormal
@ kDrawModeNormal
Definition: FxDisplayDevice.h:137