library: libGeom #include "TGeoBoolNode.h"

# TGeoBoolNode

class description - source file - inheritance tree (.ps)

## class TGeoBoolNode : public TObject

| Inheritance Chart:

`TObject`

<-

`TGeoBoolNode`

<-

`TGeoIntersection` |

`TGeoSubtraction` |

`TGeoUnion` |

This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.

        protected:

          Bool_t MakeBranch(const char* expr, Bool_t left)

        public:

                                     virtual ~TGeoBoolNode()
                              static TClass* Class()
                                virtual void ComputeBBox(Double_t& dx, Double_t& dy, Double_t& dz, Double_t* origin)
                                virtual void ComputeNormal(Double_t* point, Double_t* dir, Double_t* norm)
                              virtual Bool_t Contains(Double_t* point) const
                               virtual Int_t DistanceToPrimitive(Int_t px, Int_t py)
                            virtual Double_t DistToIn(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const
                            virtual Double_t DistToOut(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const
          virtual TGeoBoolNode::EGeoBoolType GetBooleanOperator() const
                                 TGeoMatrix* GetLeftMatrix() const
                                  TGeoShape* GetLeftShape() const
                               virtual Int_t GetNpoints() const
                                 TGeoMatrix* GetRightMatrix() const
                                  TGeoShape* GetRightShape() const
                             virtual TClass* IsA() const
                               TGeoBoolNode& operator=(const TGeoBoolNode&)
                                virtual void Paint(Option_t* option)
                            virtual Double_t Safety(Double_t* point, Bool_t in = kTRUE) const
                                virtual void SetPoints(Double_t* buff) const
                                virtual void SetPoints(Float_t* buff) const
                                virtual void ShowMembers(TMemberInspector& insp, char* parent)
                                virtual void Sizeof3D() const
                                virtual void Streamer(TBuffer& b)
                                        void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

           TGeoShape* fLeft      shape on the left branch
           TGeoShape* fRight     shape on the right branch
          TGeoMatrix* fLeftMat   transformation that applies to the left branch
          TGeoMatrix* fRightMat  transformation that applies to the right branch

        public:

          static const TGeoBoolNode::EGeoBoolType kGeoUnion
          static const TGeoBoolNode::EGeoBoolType kGeoIntersection
          static const TGeoBoolNode::EGeoBoolType kGeoSubtraction

## Class Description

~TGeoBoolNode()

     Destructor
     --- deletion of components handled by TGeoManager class.

Bool_t MakeBranch(const char *expr, Bool_t left)

     Expands the boolean expression either on left or right branch, creating
     component elements (composite shapes and boolean nodes). Returns true on success.

void Paint(Option_t *option)

void Sizeof3D() const

     register size of this 3D object

### Inline Functions

                                  void ComputeBBox(Double_t& dx, Double_t& dy, Double_t& dz, Double_t* origin)
                                  void ComputeNormal(Double_t* point, Double_t* dir, Double_t* norm)
                                Bool_t Contains(Double_t* point) const
                                 Int_t DistanceToPrimitive(Int_t px, Int_t py)
                              Double_t DistToOut(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const
                              Double_t DistToIn(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const
            TGeoBoolNode::EGeoBoolType GetBooleanOperator() const
                                 Int_t GetNpoints() const
                           TGeoMatrix* GetLeftMatrix() const
                           TGeoMatrix* GetRightMatrix() const
                            TGeoShape* GetLeftShape() const
                            TGeoShape* GetRightShape() const
                              Double_t Safety(Double_t* point, Bool_t in = kTRUE) const
                                  void SetPoints(Double_t* buff) const
                                  void SetPoints(Float_t* buff) const
                               TClass* Class()
                               TClass* IsA() const
                                  void ShowMembers(TMemberInspector& insp, char* parent)
                                  void Streamer(TBuffer& b)
                                  void StreamerNVirtual(TBuffer& b)
                         TGeoBoolNode& operator=(const TGeoBoolNode&)

Author: Andrei Gheata 30/05/02
Last update: :$Name: $:$Id: TGeoBoolNode.cxx,v 1.12 2004/06/25 11:59:55 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *