DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | List of all members
dd4hep::ShapelessSolid Class Reference

Class describing a shape-less solid shape. More...

#include <Shapes.h>

Inheritance diagram for dd4hep::ShapelessSolid:
dd4hep::Solid_type< TGeoShapeAssembly > dd4hep::Handle< TGeoShapeAssembly >

Public Member Functions

 ShapelessSolid ()=default
 Default constructor. More...
 
 ShapelessSolid (ShapelessSolid &&e)=default
 Move constructor from handle. More...
 
 ShapelessSolid (const ShapelessSolid &e)=default
 Copy constructor from handle. More...
 
template<typename Q >
 ShapelessSolid (const Q *p)
 Constructor to be used with an existing object. More...
 
template<typename Q >
 ShapelessSolid (const Handle< Q > &e)
 Constructor to be used with an existing object. More...
 
 ShapelessSolid (const std::string &name)
 Constructor to create an anonymous new shapeless solid. More...
 
ShapelessSolidoperator= (ShapelessSolid &&copy)=default
 Move Assignment operator. More...
 
ShapelessSolidoperator= (const ShapelessSolid &copy)=default
 Copy Assignment operator. More...
 
- Public Member Functions inherited from dd4hep::Solid_type< TGeoShapeAssembly >
 Solid_type ()=default
 Default constructor for uninitialized object. More...
 
 Solid_type (Solid_type &&e)=default
 Move constructor. More...
 
 Solid_type (const Solid_type &e)=default
 Copy constructor. More...
 
 Solid_type (TGeoShapeAssembly *p)
 Direct assignment using the implementation pointer. More...
 
 Solid_type (Handle< TGeoShapeAssembly > &&e)
 Move Constructor from handle. More...
 
 Solid_type (const Handle< TGeoShapeAssembly > &e)
 Copy Constructor from handle. More...
 
 Solid_type (const Handle< Q > &e)
 Constructor to be used when passing an already created object: need to check pointers. More...
 
Solid_typeoperator= (Solid_type &&copy)=default
 Assignment move operator. More...
 
Solid_typeoperator= (const Solid_type &copy)=default
 Assignment copy operator. More...
 
const char * name () const
 Access to shape name. More...
 
Solid_type< TGeoShapeAssembly > & setName (const char *value)
 Set new shape name. More...
 
Solid_type< TGeoShapeAssembly > & setName (const std::string &value)
 Set new shape name. More...
 
const char * title () const
 Access to shape title (GetTitle accessor of the TGeoShape) More...
 
const char * type () const
 Access to shape type (The TClass name of the ROOT implementation) More...
 
 operator TGeoShapeAssembly * () const
 Auto conversion to underlying ROOT object. More...
 
TGeoShapeAssembly * operator-> () const
 Overloaded operator -> to access underlying object. More...
 
std::vector< double > dimensions ()
 Access the dimensions of the shape: inverse of the setDimensions member function. More...
 
Solid_typesetDimensions (const std::vector< double > &params)
 Set the shape dimensions. As for the TGeo shape, but angles in rad rather than degrees. More...
 
std::string toString (int precision=2) const
 Conversion to string for pretty print. More...
 
TGeoVolume * divide (const Volume &voldiv, const std::string &divname, int iaxis, int ndiv, double start, double step) const
 Divide volume into subsections (See the ROOT manuloa for details) More...
 
- Public Member Functions inherited from dd4hep::Handle< TGeoShapeAssembly >
 Handle ()=default
 Default constructor. More...
 
 Handle (Handle< TGeoShapeAssembly > &&element)=default
 Copy constructor. More...
 
 Handle (const Handle< TGeoShapeAssembly > &element)=default
 Copy constructor. More...
 
 Handle (TGeoShapeAssembly *element)
 Initializing constructor from pointer. More...
 
 Handle (Q *element)
 Initializing constructor from unrelated pointer with type checking. More...
 
 Handle (const Handle< Q > &element)
 Initializing constructor from unrelated handle with type checking. More...
 
Handle< TGeoShapeAssembly > & operator= (Handle< TGeoShapeAssembly > &&element)=default
 Assignment move operator. More...
 
Handle< TGeoShapeAssembly > & operator= (const Handle< TGeoShapeAssembly > &element)=default
 Assignment copy operator. More...
 
bool operator== (const Handle< TGeoShapeAssembly > &element) const
 Boolean operator == used for RB tree insertions. More...
 
bool operator< (const Handle< TGeoShapeAssembly > &element) const
 Boolean operator < used for RB tree insertions. More...
 
bool operator> (const Handle< TGeoShapeAssembly > &element) const
 Boolean operator > used for RB tree insertions. More...
 
bool isValid () const
 Check the validity of the object held by the handle. More...
 
bool operator! () const
 Check the validity of the object held by the handle. More...
 
Handle< TGeoShapeAssembly > & clear ()
 Release the object held by the handle. More...
 
TGeoShapeAssembly * operator-> () const
 Access the held object using the -> operator. More...
 
 operator TGeoShapeAssembly & () const
 Automatic type conversion to an object references. More...
 
TGeoShapeAssembly & operator* () const
 Access the held object using the * operator. More...
 
TGeoShapeAssembly * ptr () const
 Access to the held object. More...
 
Q * _ptr () const
 Access to an unrelated object type. More...
 
Q * data () const
 Access to an unrelated object type. More...
 
Q & object () const
 Access to an unrelated object type. More...
 
TGeoShapeAssembly * access () const
 Checked object access. Throws invalid handle runtime exception if invalid handle. More...
 
const char * name () const
 Access the object name (or "" if not supported by the object) More...
 
const char * name () const
 
const char * name () const
 
void assign (Object *n, const std::string &nam, const std::string &title)
 Assign a new named object. Note: object references must be managed by the user. More...
 
void assign (_Segmentation *s, const std::string &n, const std::string &)
 
void assign (NamedObject *p, const std::string &n, const std::string &t)
 
void destroy ()
 Destroy the underlying object (be careful here: things are not reference counted)! More...
 

Additional Inherited Members

- Public Types inherited from dd4hep::Handle< TGeoShapeAssembly >
typedef TGeoShapeAssembly Object
 Extern accessible definition of the contained element type. More...
 
typedef Handle< TGeoShapeAssembly > Base
 Self type: used by sub-classes. More...
 
- Static Public Member Functions inherited from dd4hep::Handle< TGeoShapeAssembly >
static void bad_assignment (const std::type_info &from, const std::type_info &to)
 Helper routine called when unrelated types are assigned. More...
 
- Public Attributes inherited from dd4hep::Handle< TGeoShapeAssembly >
TGeoShapeAssembly * m_element
 Single and only data member: Reference to the actual element. More...
 
- Protected Member Functions inherited from dd4hep::Solid_type< TGeoShapeAssembly >
void _setDimensions (double *param) const
 
void _assign (TGeoShapeAssembly *n, const std::string &nam, const std::string &tit, bool cbbox)
 Assign pointrs and register solid to geometry. More...
 

Detailed Description

Class describing a shape-less solid shape.

For any further documentation please see the following ROOT documentation:

See also
http://root.cern.ch/root/html/TGeoShapeAssembly.html
Author
M.Frank
Version
1.0

Definition at line 209 of file Shapes.h.

Constructor & Destructor Documentation

◆ ShapelessSolid() [1/6]

dd4hep::ShapelessSolid::ShapelessSolid ( )
default

Default constructor.

◆ ShapelessSolid() [2/6]

dd4hep::ShapelessSolid::ShapelessSolid ( ShapelessSolid &&  e)
default

Move constructor from handle.

◆ ShapelessSolid() [3/6]

dd4hep::ShapelessSolid::ShapelessSolid ( const ShapelessSolid e)
default

Copy constructor from handle.

◆ ShapelessSolid() [4/6]

template<typename Q >
dd4hep::ShapelessSolid::ShapelessSolid ( const Q *  p)
inline

Constructor to be used with an existing object.

Definition at line 218 of file Shapes.h.

◆ ShapelessSolid() [5/6]

template<typename Q >
dd4hep::ShapelessSolid::ShapelessSolid ( const Handle< Q > &  e)
inline

Constructor to be used with an existing object.

Definition at line 220 of file Shapes.h.

◆ ShapelessSolid() [6/6]

ShapelessSolid::ShapelessSolid ( const std::string &  name)

Constructor to create an anonymous new shapeless solid.

Constructor to create an anonymous new box object (retrieves name from volume)

Definition at line 119 of file Shapes.cpp.

Member Function Documentation

◆ operator=() [1/2]

ShapelessSolid& dd4hep::ShapelessSolid::operator= ( const ShapelessSolid copy)
default

Copy Assignment operator.

◆ operator=() [2/2]

ShapelessSolid& dd4hep::ShapelessSolid::operator= ( ShapelessSolid &&  copy)
default

Move Assignment operator.


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