Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

MrDwgContext.h
1 // Copyright (c) Tech Soft 3D
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 #pragma once
11 
12 #include <acgi.h>
13 
14 class MrDwgContext : public AcGiContext
15 {
16 public:
17  MrDwgContext();
18 
19  // If this returns TRUE then we are regening for extents information.
20  // Either draw yourself normally or pass one or more WCS points to the
21  // candidate point function, whichever is quicker for you
22  //
23  Adesk::Boolean isRegenForExtents() const;
24  void candidateWCSPoint(const AcGePoint3d & ptWCSCand);
25  Adesk::Boolean isPsOut() const;
26  Adesk::Boolean isPlotGeneration() const;
27  bool isBoundaryClipping() const;
28 
29  void pushModelTransform(const AcGeVector3d & vNormal);
30  void pushModelTransform(const AcGeMatrix3d & xMat);
31  void popModelTransform();
32  const AcGeMatrix3d & modelTransform() const;
33  const AcGeMatrix3d & inverseModelTransform() const;
34 
35  void pushBlockReference(AcDbBlockReference * pBlockReference);
36  void popBlockReference();
37  AcDbBlockReference *blockReference() const;
38 
39  AcDbDatabase *database() const;
40  void setDatabase(AcDbDatabase * pDb);
41 
42 protected:
43  AcDbDatabase *m_pDb;
44 };
Definition: MrDwgContext.h:14