Open CASCADE Technology
6.5.4
|
defines BooleanTree, Type <180> Form Number <0>
in package IGESSolid
The Boolean tree describes a binary tree structure
composed of regularized Boolean operations and operands,
in post-order notation.
#include <IGESSolid_BooleanTree.hxx>
Public Member Functions | |
IGESSolid_BooleanTree () | |
void | Init (const Handle< IGESData_HArray1OfIGESEntity > &operands, const Handle< TColStd_HArray1OfInteger > &operations) |
This method is used to set the fields of the class BooleanTree | |
Standard_Integer | Length () const |
returns the length of the post-order list | |
Standard_Boolean | IsOperand (const Standard_Integer Index) const |
returns True if Index'th value in the post-order list is an Operand; else returns False if it is an Integer Operations raises exception if Index < 1 or Index > Length() | |
Handle_IGESData_IGESEntity | Operand (const Standard_Integer Index) const |
returns the Index'th value in the post-order list only if it is an operand else returns NULL raises exception if Index < 1 or Index > Length() | |
Standard_Integer | Operation (const Standard_Integer Index) const |
returns the Index'th value in the post-order list only if it is an operation else returns 0 raises exception if Index < 1 or Index > Length() |
void IGESSolid_BooleanTree::Init | ( | const Handle< IGESData_HArray1OfIGESEntity > & | operands, |
const Handle< TColStd_HArray1OfInteger > & | operations | ||
) |
Standard_Boolean IGESSolid_BooleanTree::IsOperand | ( | const Standard_Integer | Index | ) | const |
Handle_IGESData_IGESEntity IGESSolid_BooleanTree::Operand | ( | const Standard_Integer | Index | ) | const |
Standard_Integer IGESSolid_BooleanTree::Operation | ( | const Standard_Integer | Index | ) | const |