Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
IGESSolid_BooleanTree Class Reference

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>

Inheritance diagram for IGESSolid_BooleanTree:
Inheritance graph
[legend]

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()


Constructor & Destructor Documentation


Member Function Documentation

  • operands : Array containing pointer to DE of operands
  • operations : Array containing integer type for operations
Handle_IGESData_IGESEntity IGESSolid_BooleanTree::Operand ( const Standard_Integer  Index) const

The documentation for this class was generated from the following file: