library: libGeom
#include "TGeoBoolNode.h"

TGeoSubtraction


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

class TGeoSubtraction : public TGeoBoolNode

Inheritance Chart:
TObject
<-
TGeoBoolNode
<-
TGeoSubtraction

    public:
TGeoSubtraction() TGeoSubtraction(const char* expr1, const char* expr2) TGeoSubtraction(TGeoShape* left, TGeoShape* right, TGeoMatrix* lmat = 0, TGeoMatrix* rmat = 0) TGeoSubtraction(const TGeoSubtraction&) virtual ~TGeoSubtraction() 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 DistFromInside(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const virtual Double_t DistFromOutside(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const virtual TGeoBoolNode::EGeoBoolType GetBooleanOperator() const virtual Int_t GetNpoints() const virtual TClass* IsA() const TGeoSubtraction& operator=(const TGeoSubtraction&) 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




Class Description


TGeoSubtraction()
 Default constructor

TGeoSubtraction(const char *expr1, const char *expr2) :TGeoBoolNode(expr1, expr2)
 Constructor

TGeoSubtraction(TGeoShape *left, TGeoShape *right, TGeoMatrix *lmat, TGeoMatrix *rmat) :TGeoBoolNode(left,right,lmat,rmat)
 Constructor providing pointers to components

~TGeoSubtraction()
 Destructor
 --- deletion of components handled by TGeoManager class.

void ComputeBBox(Double_t &dx, Double_t &dy, Double_t &dz, Double_t *origin)
 Compute bounding box corresponding to a subtraction of two shapes.

void ComputeNormal(Double_t *point, Double_t *dir, Double_t *norm)

Bool_t Contains(Double_t *point) const
 Find if a subtraction of two shapes contains a given point

Int_t DistanceToPrimitive(Int_t /*px*/, Int_t /*py*/)
 Compute minimum distance to shape vertices

Double_t DistFromInside(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe) const
 Compute distance from a given point to outside.

Double_t DistFromOutside(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe) const
 Compute distance from a given point to inside.

Int_t GetNpoints() const
 Returns number of vertices for the composite shape described by this subtraction.

Double_t Safety(Double_t *point, Bool_t) const
 Compute safety distance for a union node;

void SetPoints(Double_t * /*buff*/) const
 Fill buffer with shape vertices.

void SetPoints(Float_t * /*buff*/) const
 Fill buffer with shape vertices.

void Sizeof3D() const
 Register 3D size of this shape.



Inline Functions


        TGeoBoolNode::EGeoBoolType GetBooleanOperator() const
                           TClass* Class()
                           TClass* IsA() const
                              void ShowMembers(TMemberInspector& insp, char* parent)
                              void Streamer(TBuffer& b)
                              void StreamerNVirtual(TBuffer& b)
                   TGeoSubtraction TGeoSubtraction(const TGeoSubtraction&)
                  TGeoSubtraction& operator=(const TGeoSubtraction&)


Author: Andrei Gheata 30/05/02
Last update: :$Name: $:$Id: TGeoBoolNode.cxx,v 1.15 2004/11/08 09:56:24 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.