library: libGeom
#include "TGeoScaledShape.h"

TGeoScaledShape


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

class TGeoScaledShape : public TGeoBBox

Inheritance Chart:
TObject
<-
TNamed
<-
TGeoShape
<-
TGeoBBox
<-
TGeoScaledShape

    public:
TGeoScaledShape() TGeoScaledShape(const char* name, TGeoShape* shape, TGeoScale* scale) TGeoScaledShape(TGeoShape* shape, TGeoScale* scale) TGeoScaledShape(const TGeoScaledShape&) virtual ~TGeoScaledShape() virtual Double_t Capacity() const static TClass* Class() virtual void ComputeBBox() 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 = TGeoShape::Big(), Double_t* safe = 0) const virtual Double_t DistFromOutside(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = TGeoShape::Big(), Double_t* safe = 0) const virtual TGeoVolume* Divide(TGeoVolume* voldiv, const char* divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) virtual const TBuffer3D& GetBuffer3D(Int_t reqSections, Bool_t localFrame) const virtual TGeoShape* GetMakeRuntimeShape(TGeoShape* mother, TGeoMatrix* mat) const virtual Int_t GetNmeshVertices() const virtual void InspectShape() const virtual TClass* IsA() const virtual Bool_t IsCylType() const virtual TBuffer3D* MakeBuffer3D() const TGeoScaledShape& operator=(const TGeoScaledShape&) virtual Double_t Safety(Double_t* point, Bool_t in = kTRUE) const virtual void SavePrimitive(ostream& out, Option_t* option = "") virtual void SetPoints(Double_t* points) const virtual void SetPoints(Float_t* points) const virtual void SetSegsAndPols(TBuffer3D& buffer) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TGeoShape* fShape pointer to an existing shape TGeoScale* fScale pointer to a scale transformation

Class Description

_____________________________________________________________________________
 TGeoScaledShape - A shape scaled by a TGeoScale transformation

_____________________________________________________________________________
TGeoScaledShape()
 Default constructor
TGeoScaledShape(const char *name, TGeoShape *shape, TGeoScale *scale)
 Constructor
TGeoScaledShape(TGeoShape *shape, TGeoScale *scale)
 Constructor
~TGeoScaledShape()
 destructor
Double_t Capacity()
 Computes capacity of this shape [length^3]
void ComputeBBox()
 Compute bounding box of the scaled shape
void ComputeNormal(Double_t *point, Double_t *dir, Double_t *norm)
 Compute normal to closest surface from POINT.
Bool_t Contains(Double_t *point)
 Test if point is inside the scaled shape
Int_t DistancetoPrimitive(Int_t px, Int_t py)
 compute closest distance from point px,py to each vertex. Should not be called.
Double_t DistFromInside(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe)
 Compute distance from inside point to surface of the scaled shape.
Double_t DistFromOutside(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe)
 Compute distance from outside point to surface of the scaled shape.
const TBuffer3D & GetBuffer3D(Int_t reqSections, Bool_t localFrame)
 Fills a static 3D buffer and returns a reference.
void InspectShape()
 print shape parameters
TBuffer3D * MakeBuffer3D()
 Creates a TBuffer3D describing *this* shape.
 Coordinates are in local reference frame.
void SetSegsAndPols(TBuffer3D &buff)
 Fill TBuffer3D structure for segments and polygons.
Double_t Safety(Double_t *point, Bool_t in)
 computes the closest distance from given point to this shape, according
 to option. The matching point on the shape is stored in spoint.
void SavePrimitive(ostream & /*out*/, Option_t * /*option*/ /*= ""*/)
 Save a primitive as a C++ statement(s) on output stream "out".
void SetPoints(Double_t *points)
 Mesh points for scaled shapes.
void SetPoints(Float_t *points)
 Mesh points for scaled shapes.
TGeoScaledShape()
 constructors
Int_t GetNmeshVertices()
Bool_t IsCylType()

Author: Andrei Gheata 26/09/05
Last update: root/geom:$Name: $:$Id: TGeoScaledShape.cxx,v 1.4 2006/07/03 16:10:44 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.