CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxTrackerDrawContext.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 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#include <optional>
28
29class CFxView;
31class CFxDocument;
32class CFxTracker;
33
34class OdGiGeometry;
35
42{
43public:
45 virtual ~CFxTrackerContext(void);
46
50 virtual double GetWidth() const = 0;
51
55 virtual double GetHeight() const = 0;
56
62 virtual CFxPainter* GetPainter() = 0;
63
69 virtual const CFxPainter* GetPainter() const = 0;
70
76 virtual const CFxView* GetFxView() const = 0;
77
83 virtual CFxView* GetFxView() = 0;
84
90 virtual bool IsForActiveView() const;
91
102 virtual void DrawDrawable(
103 const OdGiDrawable* pDrawable,
104 bool bDragMode,
106 int iUserCounter = 0,
107 const ODCOLORREF* pColor = nullptr,
108 std::optional<OdGeExtents3d> passExtents = std::nullopt ) = 0;
109
119 virtual void DrawDrawable(
120 const OdDbFullSubentPath& dbPath,
121 bool bDragMode,
123 int iUserCounter = 0,
124 const ODCOLORREF* pColor = nullptr
125 ) = 0;
126
133
140
144 virtual ODCOLORREF GetBackground() const = 0;
145
149 virtual ODCOLORREF GetForeground() const = 0;
150
154 virtual void AllowRegenAbort( bool bVal ) = 0;
155
159 virtual void CacheMe( const CFxTracker* pTracker, bool bAddToCache, int iPriority ) = 0;
160
165
166};
167
168#include "FxPragmaPop.h"
169
#define DDKERNEL_API
Definition DDKERNEL.h:32
#define CFxPainter
#define ODCOLORREF
virtual bool IsForActiveView() const
virtual void DrawDrawable(const OdDbFullSubentPath &dbPath, bool bDragMode, CFxViewDrawInfo::DrawDecoration eDecoration=CFxViewDrawInfo::kNone, int iUserCounter=0, const ODCOLORREF *pColor=nullptr)=0
virtual CFxView * GetFxView()=0
virtual OdGiGeometry * GetGiGeometry()=0
virtual void DrawDrawable(const OdGiDrawable *pDrawable, bool bDragMode, CFxViewDrawInfo::DrawDecoration eDecoration=CFxViewDrawInfo::kNone, int iUserCounter=0, const ODCOLORREF *pColor=nullptr, std::optional< OdGeExtents3d > passExtents=std::nullopt)=0
virtual ODCOLORREF GetForeground() const =0
virtual const CFxView * GetFxView() const =0
virtual CFxDocument * GetFxDocument()=0
virtual void AllowRegenAbort(bool bVal)=0
virtual double GetWidth() const =0
virtual void CacheMe(const CFxTracker *pTracker, bool bAddToCache, int iPriority)=0
virtual ODCOLORREF GetBackground() const =0
virtual ~CFxTrackerContext(void)
virtual CFxPainter * GetPainter()=0
virtual const CFxPainter * GetPainter() const =0
virtual CFxInputPointManager * GetFxInputPointManager()=0
virtual double GetHeight() const =0