MKI_BUFFER (Basic Classes) Changed in Version 2025.0

www.CAD6.com

C++ Syntax

class MKI_BUFFER

{

  public:

 

  void* m_pBuffer;

  MKI_RECT m_cElemRect;

  __int32 m_nElemMax,

          m_nElemCount,

          m_nPolygonCount;

  bool m_fClosedOnly,

       m_fInterruptible;

 

  void

  Init( void );

 

  bool

  Alloc(

 __int32 f_nSize,

 bool f_fClosedOnly );

 

  bool

  AddEnumerate(

 __int32 f_nFlag,

 __int64 f_nEnumMode );

 

  bool

  AddTemporary(

 __int64 f_nEnumMode ); Renamed in Version 2025.0

 

  bool

  AddEntity(

 MKI_CONST_ENTITY_PTR f_pEntity,

 __int64 f_nEnumMode );

 

  bool

  Prepare( double f_dTolerance );

 

  bool

  Free( void );

};

 

This structure contains the description of a buffer used for hatching purposes or the point-in-area test.

 

Element Description

Buffer

[void*] Address of the buffer data area. This pointer will be initialized when calling MKI_BUFFER::Alloc and freed when calling MKI_BUFFER::Free. Do not modify!

ElemRect

[MKI_RECT] The smallest rectangle surrounding all objects stored in this buffer. Do not modify!

ElemMax

[__int32] Maximum number of objects to be stored in this buffer. Do not modify!

ElemCount

[__int32] Current number of objects stored in this buffer. Do not modify!

PolygonCount

[__int32] Current number of independent paths stored in this buffer. You may modify this value during buffer filling.

ClosedOnly

[bool] If true, the buffer will only accept "closed" objects, i.e. objects that have a closed outline like circles, ellipses, surfaces, etc.

Interruptible New in Version 2023.2

[bool] If true, the progress of operations using this buffer is displayed in the status line and they can be interrupted by pressing the ESC key. Do not use for background operations!

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH