CFx SDK Documentation  2023 SP0
FxTrackerDrawContext.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 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 "DDKERNEL.h"
20 #include "FxViewDrawInfo.h"
21 
22 #include <Gi/GiDrawable.h>
23 #include <DbSubentId.h>
24 
25 #include "FxPragmaPush.h"
26 
27 class CFxView;
29 class CFxDocument;
30 class CFxTracker;
31 
32 class OdGiGeometry;
33 
40 {
41 public:
43  virtual ~CFxTrackerContext(void);
44 
48  virtual double GetWidth() const = 0;
49 
53  virtual double GetHeight() const = 0;
54 
60  virtual CFxPainter* GetPainter() = 0;
61 
67  virtual const CFxPainter* GetPainter() const = 0;
68 
74  virtual const CFxView* GetFxView() const = 0;
75 
81  virtual CFxView* GetFxView() = 0;
82 
88  virtual bool IsForActiveView() const;
89 
90 
97  virtual void DrawDrawable(
98  const OdGiDrawable* pDrawable,
99  bool bDragMode,
101  int iUserCounter = 0
102  ) = 0;
103 
104  virtual void DrawDrawable(
105  const OdDbFullSubentPath& dbPath,
106  bool bDragMode,
108  int iUserCounter = 0
109  ) = 0;
110 
117 
123  virtual CFxDocument* GetFxDocument() = 0;
124 
128  virtual ODCOLORREF GetBackground() const = 0;
129 
133  virtual ODCOLORREF GetForeground() const = 0;
134 
138  virtual void AllowRegenAbort( bool bVal ) = 0;
139 
143  virtual void CacheMe( const CFxTracker* pTracker, bool bAddToCache, int iPriority ) = 0;
144 
148  virtual OdGiGeometry* GetGiGeometry() = 0;
149 
150 };
151 
152 #include "FxPragmaPop.h"
153 
#define DDKERNEL_API
Definition: DDKERNEL.h:32
#define CFxPainter
#define ODCOLORREF
Definition: OdPlatform.h:883
virtual bool IsForActiveView() const
virtual void DrawDrawable(const OdDbFullSubentPath &dbPath, bool bDragMode, CFxViewDrawInfo::DrawDecoration eDecoration=CFxViewDrawInfo::kNone, int iUserCounter=0)=0
virtual CFxDocument * GetFxDocument()=0
virtual ODCOLORREF GetForeground() const =0
virtual OdGiGeometry * GetGiGeometry()=0
virtual void AllowRegenAbort(bool bVal)=0
virtual double GetWidth() const =0
virtual void CacheMe(const CFxTracker *pTracker, bool bAddToCache, int iPriority)=0
virtual CFxView * GetFxView()=0
virtual ODCOLORREF GetBackground() const =0
virtual CFxInputPointManager * GetFxInputPointManager()=0
virtual void DrawDrawable(const OdGiDrawable *pDrawable, bool bDragMode, CFxViewDrawInfo::DrawDecoration eDecoration=CFxViewDrawInfo::kNone, int iUserCounter=0)=0
virtual ~CFxTrackerContext(void)
virtual const CFxPainter * GetPainter() const =0
virtual const CFxView * GetFxView() const =0
virtual double GetHeight() const =0
virtual CFxPainter * GetPainter()=0