CFx SDK Documentation  2020SP3
FxTrackerDrawContext.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 "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 
CFxViewDrawInfo::DrawDecoration
DrawDecoration
Definition: FxViewDrawInfo.h:350
FxViewDrawInfo.h
FxPragmaPop.h
CFxTrackerContext::GetPainter
virtual const CFxPainter * GetPainter() const =0
CFxTrackerContext::GetFxInputPointManager
virtual CFxInputPointManager * GetFxInputPointManager()=0
CFxTrackerContext::GetFxView
virtual const CFxView * GetFxView() const =0
CFxTrackerContext::DrawDrawable
virtual void DrawDrawable(const OdDbFullSubentPath &dbPath, bool bDragMode, CFxViewDrawInfo::DrawDecoration eDecoration=CFxViewDrawInfo::kNone, int iUserCounter=0)=0
OdDbFullSubentPath
Definition: DbSubentId.h:49
DDKERNEL.h
CFxPainter
#define CFxPainter
Definition: FxPlatformSettings.h:71
CFxInputPointManager
Definition: FxInputPointManager.h:47
CFxTrackerContext::GetFxDocument
virtual CFxDocument * GetFxDocument()=0
CFxTrackerContext::AllowRegenAbort
virtual void AllowRegenAbort(bool bVal)=0
CFxTrackerContext::GetFxView
virtual CFxView * GetFxView()=0
CFxTrackerContext::GetWidth
virtual double GetWidth() const =0
OdGiDrawable
Definition: GiDrawable.h:49
CFxTracker
Definition: FxTracker.h:36
CFxTrackerContext::CFxTrackerContext
CFxTrackerContext()
CFxDocument
Definition: FxDocument.h:47
CFxTrackerContext::DrawDrawable
virtual void DrawDrawable(const OdGiDrawable *pDrawable, bool bDragMode, CFxViewDrawInfo::DrawDecoration eDecoration=CFxViewDrawInfo::kNone, int iUserCounter=0)=0
DDKERNEL_API
#define DDKERNEL_API
Definition: DDKERNEL.h:32
CFxView
Definition: FxView.h:265
CFxTrackerContext
Definition: FxTrackerDrawContext.h:40
CFxTrackerContext::~CFxTrackerContext
virtual ~CFxTrackerContext(void)
OdGiGeometry
Definition: GiGeometry.h:698
GiDrawable.h
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
CFxTrackerContext::GetForeground
virtual ODCOLORREF GetForeground() const =0
FxPragmaPush.h
CFxTrackerContext::IsForActiveView
virtual bool IsForActiveView() const
CFxTrackerContext::GetGiGeometry
virtual OdGiGeometry * GetGiGeometry()=0
DbSubentId.h
CFxTrackerContext::GetHeight
virtual double GetHeight() const =0
CFxTrackerContext::GetPainter
virtual CFxPainter * GetPainter()=0
CFxTrackerContext::CacheMe
virtual void CacheMe(const CFxTracker *pTracker, bool bAddToCache, int iPriority)=0
CFxTrackerContext::GetBackground
virtual ODCOLORREF GetBackground() const =0
CFxViewDrawInfo::kNone
@ kNone
Definition: FxViewDrawInfo.h:351