Garfield++ 4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Heed::fixsyscoor Class Reference

#include <vec.h>

+ Inheritance diagram for Heed::fixsyscoor:

Public Member Functions

const pointGapiv () const override
 
const basisGabas () const override
 
void Ppiv (const point &fpiv)
 
void Pbas (const basis &fbas)
 
 fixsyscoor ()=default
 
 fixsyscoor (char *fname)
 
 fixsyscoor (const std::string &fname)
 
 fixsyscoor (const point &fpiv, const basis &fbas, const std::string &fname)
 
 fixsyscoor (const point *const fapiv, const basis *const fabas, const std::string &fname)
 
 fixsyscoor (const abssyscoor &f)
 
void print (std::ostream &file, int l) const override
 
fixsyscoorcopy () const
 
virtual ~fixsyscoor ()
 
- Public Member Functions inherited from Heed::absref
virtual ~absref ()
 Destructor.
 
virtual void down (const abssyscoor *fasc)
 Convert numbering representation of object to basical system of fasc.
 
virtual void up (const abssyscoor *fasc)
 Convert numbering representation of objects to new system.
 
virtual void turn (const vec &dir, vfloat angle)
 Turn around axis doing via center of coordinate system along dir.
 
virtual void shift (const vec &dir)
 
- Public Member Functions inherited from Heed::abssyscoor
virtual const pointGapiv () const =0
 
virtual const basisGabas () const =0
 
 abssyscoor ()=default
 
 abssyscoor (char *fname)
 
 abssyscoor (const std::string &fname)
 
virtual void print (std::ostream &file, int l) const
 
virtual ~abssyscoor ()
 

Protected Member Functions

absref_transmit get_components () override
 

Static Protected Attributes

static absref absref::* aref [2]
 

Additional Inherited Members

- Public Attributes inherited from Heed::abssyscoor
std::string name = "none"
 

Detailed Description

Definition at line 436 of file vec.h.

Constructor & Destructor Documentation

◆ fixsyscoor() [1/6]

Heed::fixsyscoor::fixsyscoor ( )
default

Referenced by copy().

◆ fixsyscoor() [2/6]

Heed::fixsyscoor::fixsyscoor ( char *  fname)
inline

Definition at line 444 of file vec.h.

444: abssyscoor(fname) {}
abssyscoor()=default

◆ fixsyscoor() [3/6]

Heed::fixsyscoor::fixsyscoor ( const std::string &  fname)
inline

Definition at line 445 of file vec.h.

445: abssyscoor(fname) {}

◆ fixsyscoor() [4/6]

Heed::fixsyscoor::fixsyscoor ( const point fpiv,
const basis fbas,
const std::string &  fname 
)
inline

Definition at line 446 of file vec.h.

447 : abssyscoor(fname), piv(fpiv), bas(fbas) {}

◆ fixsyscoor() [5/6]

Heed::fixsyscoor::fixsyscoor ( const point *const  fapiv,
const basis *const  fabas,
const std::string &  fname 
)
inline

Definition at line 448 of file vec.h.

450 : abssyscoor(fname),
451 piv((fapiv != NULL) ? (*fapiv) : point()),
452 bas((fabas != NULL) ? (*fabas) : basis()) {}

◆ fixsyscoor() [6/6]

Heed::fixsyscoor::fixsyscoor ( const abssyscoor f)
inline

Definition at line 453 of file vec.h.

454 : abssyscoor(f),
455 piv((f.Gapiv() != NULL) ? (*(f.Gapiv())) : point()),
456 bas((f.Gabas() != NULL) ? (*(f.Gabas())) : basis()) {}

◆ ~fixsyscoor()

virtual Heed::fixsyscoor::~fixsyscoor ( )
inlinevirtual

Definition at line 459 of file vec.h.

459{}

Member Function Documentation

◆ copy()

fixsyscoor * Heed::fixsyscoor::copy ( ) const
inline

Definition at line 458 of file vec.h.

458{ return new fixsyscoor(*this); }
fixsyscoor()=default

◆ Gabas()

const basis * Heed::fixsyscoor::Gabas ( ) const
inlineoverridevirtual

Implements Heed::abssyscoor.

Definition at line 439 of file vec.h.

439{ return &bas; }

◆ Gapiv()

const point * Heed::fixsyscoor::Gapiv ( ) const
inlineoverridevirtual

Implements Heed::abssyscoor.

Definition at line 438 of file vec.h.

438{ return &piv; }

◆ get_components()

absref_transmit Heed::fixsyscoor::get_components ( )
overrideprotectedvirtual

Reimplemented from Heed::absref.

Definition at line 473 of file vec.cpp.

473 {
474 return absref_transmit(2, aref);
475}
static absref absref::* aref[2]
Definition: vec.h:463

◆ Pbas()

void Heed::fixsyscoor::Pbas ( const basis fbas)

Definition at line 478 of file vec.cpp.

478{ bas = fbas; }

◆ Ppiv()

void Heed::fixsyscoor::Ppiv ( const point fpiv)

Definition at line 477 of file vec.cpp.

477{ piv = fpiv; }

◆ print()

void Heed::fixsyscoor::print ( std::ostream &  file,
int  l 
) const
overridevirtual

Reimplemented from Heed::abssyscoor.

Definition at line 480 of file vec.cpp.

480 {
481 if (l > 0) {
482 Ifile << "fixsyscoor::print(l=" << l << ")\n";
483 if (l > 1) {
484 indn.n += 2;
485 abssyscoor::print(file, l);
486 }
487 }
488}
virtual void print(std::ostream &file, int l) const
Definition: vec.cpp:439
indentation indn
Definition: prstream.cpp:15
#define Ifile
Definition: prstream.h:195

Referenced by Heed::sh_manip_box::print().

Member Data Documentation

◆ aref

absref absref::* Heed::fixsyscoor::aref
staticprotected
Initial value:
= {
reinterpret_cast<absref absref::*>(
static_cast<point absref::*>(&fixsyscoor::piv)),
reinterpret_cast<absref absref::*>(
static_cast<basis absref::*>(&fixsyscoor::bas))}

Definition at line 463 of file vec.h.

Referenced by get_components().


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