Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4OpenInventorTransform3D Class Reference

#include <G4OpenInventorTransform3D.hh>

+ Inheritance diagram for G4OpenInventorTransform3D:

Public Member Functions

 G4OpenInventorTransform3D (const G4Transform3D &t)
 
SbMatrix * GetSbMatrix () const
 
- Public Member Functions inherited from HepGeom::Transform3D
 Transform3D ()
 
 Transform3D (const CLHEP::HepRotation &mt, const CLHEP::Hep3Vector &v)
 
 Transform3D (const Point3D< double > &fr0, const Point3D< double > &fr1, const Point3D< double > &fr2, const Point3D< double > &to0, const Point3D< double > &to1, const Point3D< double > &to2)
 
 Transform3D (const Transform3D &mt)=default
 
 Transform3D (Transform3D &&mt)=default
 
 ~Transform3D ()=default
 
Transform3Doperator= (const Transform3D &mt)=default
 
Transform3Doperator= (Transform3D &&mt)=default
 
const Transform3D_row operator[] (int) const
 
double operator() (int, int) const
 
double xx () const
 
double xy () const
 
double xz () const
 
double yx () const
 
double yy () const
 
double yz () const
 
double zx () const
 
double zy () const
 
double zz () const
 
double dx () const
 
double dy () const
 
double dz () const
 
void setIdentity ()
 
Transform3D inverse () const
 
Transform3D operator* (const Transform3D &b) const
 
void getDecomposition (Scale3D &scale, Rotate3D &rotation, Translate3D &translation) const
 
bool isNear (const Transform3D &t, double tolerance=2.2E-14) const
 
CLHEP::HepRotation getRotation () const
 
CLHEP::Hep3Vector getTranslation () const
 
bool operator== (const Transform3D &transform) const
 
bool operator!= (const Transform3D &transform) const
 

Additional Inherited Members

- Static Public Attributes inherited from HepGeom::Transform3D
static DLL_API const Transform3D Identity = Transform3D ()
 
- Protected Member Functions inherited from HepGeom::Transform3D
 Transform3D (double XX, double XY, double XZ, double DX, double YX, double YY, double YZ, double DY, double ZX, double ZY, double ZZ, double DZ)
 
void setTransform (double XX, double XY, double XZ, double DX, double YX, double YY, double YZ, double DY, double ZX, double ZY, double ZZ, double DZ)
 
- Protected Attributes inherited from HepGeom::Transform3D
double xx_
 
double xy_
 
double xz_
 
double dx_
 
double yx_
 
double yy_
 
double yz_
 
double dy_
 
double zx_
 
double zy_
 
double zz_
 
double dz_
 

Detailed Description

Definition at line 41 of file G4OpenInventorTransform3D.hh.

Constructor & Destructor Documentation

◆ G4OpenInventorTransform3D()

G4OpenInventorTransform3D::G4OpenInventorTransform3D ( const G4Transform3D t)

Definition at line 39 of file G4OpenInventorTransform3D.cc.

40: G4Transform3D (t) {
41#define elem(i,j) ((float)t(i,j))
42 m[0] = elem(0,0); //xx
43 m[1] = elem(1,0); //yx
44 m[2] = elem(2,0); //zx
45 m[3] = 0;
46 m[4] = elem(0,1); //xy
47 m[5] = elem(1,1); //yy
48 m[6] = elem(2,1); //zy
49 m[7] = 0;
50 m[8] = elem(0,2); //xz
51 m[9] = elem(1,2); //yz
52 m[10] = elem(2,2); //zz
53 m[11] = 0;
54 m[12] = elem(0,3); //dx
55 m[13] = elem(1,3); //dy
56 m[14] = elem(2,3); //dz
57 m[15] = 1;
58#undef elem
59}
#define elem(i, j)
HepGeom::Transform3D G4Transform3D

Member Function Documentation

◆ GetSbMatrix()

SbMatrix * G4OpenInventorTransform3D::GetSbMatrix ( ) const

Definition at line 61 of file G4OpenInventorTransform3D.cc.

61 {
62 SbMatrix* tm = new SbMatrix(m[0],m[1],m[2],m[3],
63 m[4],m[5],m[6],m[7],
64 m[8],m[9],m[10],m[11],
65 m[12],m[13],m[14],m[15]);
66 return tm;
67}

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