API Classes

JtkEntityStack

Include: JtTk/JtkEntityStack.h
Description: A toolkit-specific stack object. This object stores JtkEntity pointers, and it maintains responsiblity for memory managment of the objects referenced by these pointers. A convenience method (combineEntities) may be used to build toolkit object hierarchies. This is useful for recursive-descent-type parsing and processing of CAD input data.
Enums:
DBGLevel
JtkNONE Print no debug or tracing messages.
JtkSTACK_TRACE Print a trace message for each stack method called.
JtkHIERARCHY_TRACE Print verbose tracing messages for the JtkEntity objects effected by the combineEnitities() method. This is Useful for debugging recursive-decent processing problems.
JtkERRORS Print verbose error messages for the JtkEntity objects effected by the combineEnitities() method. This is Useful for debugging recursive-decent processing problems.
Methods:

combineEntities - Associates the top two JtkEntity items on the stack appropriately, after which it pops the top JtkEntity item. This method works only on objects for which such associations exists. E.g., JtkPart and JtkAssembly, JtkSurface and JtkFace, etc. It will not succeed if the items cannot be associated.

isEmpty - Check if there are JtkEntity items on the stack.

pop - Remove and return top JtkEntity item on the stack.

push - Put a specified new JtkEntity item on the top of the stack.

setDebugLevel - Set the verbosity of error and trace messaging in subsequent method calls.

size - Get the number of JtkEntity items on the stack.

top - Returns the top JtkEntity item on the stack. The item is not removed from the stack.