MKI_ENTITYSTACK (Basic Classes) New in Version 2020.1 |
www.CAD6.com |
C++ Syntaxclass MKI_ENTITYSTACK { public:
MKI_ENTITY_PTR m_acStack[MKI_NESTING_DEPTH_MAX]; __int32 m_nCount;
void Init( void );
bool Add( MKI_ENTITY_PTR f_pEntity );
MKI_ENTITY_PTR GetTop( void ) const;
MKI_ENTITY_EXT_PTR GetTopExt( void ) const;
MKI_ENTITY_INSTANCE_PTR GetInstance( void ) const;
bool IsEmpty( void ) const;
bool IsFull( void ) const; };
This structure contains a stack of entity pointers representing the nesting of various entities such as instances, groups, extended objects, etc.
Element DescriptionStack [MKI_ENTITY_PTR[]] Stack of entity pointers. The pointer added first has index 0, the pointer added last will have the highest index used. Be aware that some of the stored pointers may be nullptr, so check before using them! Count [__int32] Number of pointers currently stored in the stack. Valid range: 0 <= Value < MKI_NESTING_DEPTH_MAX.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH