|
| Cylinder (double R=0.01, double X=0, double Y=0, double Z=0, double dX=0, double dY=0, double dZ=1, int Sign=- 1) |
|
| MathCylinder (double R=0.01, double X=0, double Y=0, double Z=0, double dX=0, double dY=0, double dZ=1, int Sign=- 1) |
|
unsigned | IsCylinder () override |
|
double | GetR () |
|
double | GetX () |
|
double | GetY () |
|
double | GetZ () |
|
vector< double > | GetOrigin () |
|
double | GetdX () |
|
double | GetdY () |
|
double | GetdZ () |
|
vector< double > | GetAxisVector () |
|
void | Translate (double dx, double dy, double dz, int count=0) override |
|
void | Rotate (double phi, double theta=0, double psi=0, double *center=nullptr, int count=0) override |
|
unsigned | IsIncluded (Shape_ptr OtherShape) override |
| return 1 if the Cylinder is included in OtherShape otherwise 0
|
|
unsigned | IsDisjoint (Shape_ptr OtherShape) override |
| return 1 if the Cylinder is disjoint of OtherShape otherwise 0
|
|
bool | PointInShape (double *P, int border) override |
|
Shape_ptr | Clone (int count=0) override |
| Clone a Shape.
|
|
void | Copy (Shape_ptr C) override |
| Copy all attributs of a Shape (but not attributs of the father classes).
|
|
void | CalculNot () override |
| Allocates and calculs the complement of a Cylinder.
|
|
double * | GetVirtualSphereCenter () override |
| returns the center of a Sphere containing the Shape
|
|
| Shape () |
| Default constructor. The interior of a Shape is built.
|
|
| Shape (const Shape &s) |
| Copy constructor.
|
|
| ~Shape () override |
| Normal destructor.
|
|
Shape_ptr | Not () |
| Return the complementary Shape (i.e. the other side)
|
|
void | NewNot () |
|
void | SetClone (Shape_ptr clone) |
|
void | SetClone2Not () |
| Set the CloneShape to a Not.
|
|
int | GetSign () |
|
void | SetSign (int s) |
|
void | SetOutermostShape (bool flag=true) |
| Say that this Shape is the most outer one.
|
|
virtual unsigned | IsBrick () |
|
virtual unsigned | IsFullVoid () |
|
virtual unsigned | IsHexagon () |
|
virtual unsigned | IsNode () |
|
virtual unsigned | IsPlane () |
|
virtual unsigned | IsSphere () |
|
virtual unsigned | IsTube () |
|
virtual unsigned | IsFull () |
|
virtual unsigned | IsVoid () |
|
virtual unsigned | IsZTorus () |
|
bool | IsInfinite () |
|
virtual double | GetVolume () |
| Get the Volume of a Shape.
|
|
void | SetVolume (double V) |
|
virtual double | GetArea () |
| Get the Area of a Shape.
|
|
void | SetArea (double S) |
|
virtual void | SetMirrorBoundary (bool state=true) |
| mirror a particle on the surface
|
|
virtual void | SetTopBottomPlanesOpen () |
|
virtual bool | IsTopBottomPlanesOpen () |
|
virtual void | SetSidePlanesOpen () |
|
virtual bool | IsSidePlanesOpen () |
|
virtual void | SetWhiteBoundary (bool state=true) |
|
virtual void | SetPeriodicBoundary (bool state=true, string TopBottPlaneBC="mirror") |
| Periodic boundary (WARNING: only for Brick and Hexagon).
|
|
virtual bool | IsMirrorBoundary () |
|
virtual bool | IsWhiteBoundary () |
|
virtual bool | IsPeriodicBoundary () |
|
virtual unsigned | Add (Shape_ptr OtherShape) |
| Add a new Shape (in fact a Shape_ptr) to a Node.
|
|
virtual void | ReplaceLeaf (int i, Shape_ptr OtherShape) |
|
unsigned | AddInsideShape (Shape_ptr OtherShape) |
| Add a Shape in fInsideShape each time a "put in" is done.
|
|
unsigned | AddOriginalInsideShape (Shape_ptr OtherShape) |
| This method is called by Shape::AddInsideShape.
|
|
void | ClearOriginalInsideShape () |
|
void | ClearInsideShape () |
|
unsigned | GetInsideShapeSize () |
|
unsigned | GetOriginalInsideShapeSize () |
|
void | SetInsideShape (int i, Shape_ptr S) |
|
void | SetOriginalInsideShape (int i, Shape_ptr S) |
|
Shape_ptr | GetInsideShape (int i) |
|
Shape_ptr | GetOriginalInsideShape (int i) |
|
virtual Shape_ptr | GetLeaf (int i) |
|
virtual int | GetNumberOfLeaves () |
|
string | GetShapeName () |
| returns the Shape name
|
|
virtual int | NumberOfShapes () |
|
void | SetDebugName (string str) |
|
string | GetDebugName () |
|
virtual void | SetUniverse (int u=- 1) |
| Set the Universe number for a Shape .
|
|
virtual void | SetFill (int f) |
|
int | GetFill () |
|
int | GetUniverse () |
|
void | IncrementSurface (double S) |
|
virtual double | GetVirtualSphereRadius () |
|
virtual void | RemoveSurface () |
|
virtual void | PrintX (int count=0) |
| Debug method: Print the shape surface when fMouvement=true.
|
|
virtual void | PrintY (int count=0) |
| Debug method: Print the shape surfaces, InsideShape, ...
|
|
virtual void | SetLinkedPlane (Shape_ptr P) |
|
virtual void | ReplaceNode (Shape_ptr C) |
| Replace a Node by an other (C must be a Node)
|
|
virtual SurfaceCard * | GetSurfaceCard (int i) |
|
virtual void | ResetIsDefinedSurfaceCalled () |
|
virtual void | Simplify (bool violent=false) |
| Simplify a tree of Node.
|
|
virtual void | SetMouvement (bool state=true) |
|
virtual void | UnSetMouvement () |
| Set the fMouvement flag to false;.
|
|
bool | GetMouvement () |
|
virtual void | DevElague (int count=0, bool violent=false) |
| Developps and Trims a tree of Node.
|
|
void | SetViolentSimplify (bool Allowed=true) |
| Enable/disable violent simplification a certain shapes to avoid "union" (for Serpent outside)
|
|
void | SetFreezeSimplify (bool flag=true) |
| Enable/disable simplification a certain nodes to avoid "union" (for Serpent outside)
|
|
bool | IsViolentSimplifyAllowed () |
|
virtual int | GetMonoSurfaceType () |
|
void | SetInfinite () |
|
| TReference () |
|
virtual | ~TReference ()=default |
| Destructor.
|
|
void | AddReference (unsigned n=1) |
|
unsigned | DelReference (unsigned n=1) |
|
unsigned | Reference () |
|
Infinite cylinder Shape.
Define an (infinite) cylinder Shape. This is the real implementation to use instead of MathCylinder. Default: Interior of an origin center Cylinder of radius 0.01m and z-axis (in MCNP CZ 1) It is defined by the axis (fdX, fdY, fdZ), an origin on the axis (fX, fY, fZ), ans a radius (fR). It is only a mathematical shape (no link to any code output). It mainly redefine print method.
- Author
- PTO
- Version
- 1.0