Definition at line 17 of file sf_polyhedron.
◆ sf_polyhedron() [1/3]
tools::hep::sf_polyhedron::sf_polyhedron |
( |
| ) |
|
|
inline |
◆ sf_polyhedron() [2/3]
tools::hep::sf_polyhedron::sf_polyhedron |
( |
const polyhedron & |
a_value | ) |
|
|
inline |
◆ ~sf_polyhedron()
virtual tools::hep::sf_polyhedron::~sf_polyhedron |
( |
| ) |
|
|
inlinevirtual |
◆ sf_polyhedron() [3/3]
tools::hep::sf_polyhedron::sf_polyhedron |
( |
const sf_polyhedron & |
a_from | ) |
|
|
inline |
◆ dump()
virtual bool tools::hep::sf_polyhedron::dump |
( |
std::ostream & |
| ) |
|
|
inlinevirtual |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ read()
virtual bool tools::hep::sf_polyhedron::read |
( |
io::irbuf & |
a_buffer | ) |
|
|
inlinevirtual |
Implements tools::sg::field.
Definition at line 56 of file sf_polyhedron.
59 if(!a_buffer.read_vec(sz,ds))
return false;
63 int nvert = (int)ds[di];di++;
65 for(
int index=1;index<=nvert;index++) {
72 int nface = (int)ds[di];di++;
73 SbFacet* pF =
new SbFacet[nface+1];
75 for(
int index=1;index<=nface;index++) {
76 SbFacet& fc = pF[index];
77 for(
int i=0;i<8;i++) {
78 v[i] = (int)ds[di];di++;
87 mem::decrement(s_new().c_str());
◆ s2value()
virtual bool tools::hep::sf_polyhedron::s2value |
( |
const std::string & |
| ) |
|
|
inlinevirtual |
◆ s_value()
virtual bool tools::hep::sf_polyhedron::s_value |
( |
std::string & |
a_s | ) |
const |
|
inlinevirtual |
◆ write()
virtual bool tools::hep::sf_polyhedron::write |
( |
io::iwbuf & |
a_buffer | ) |
|
|
inlinevirtual |
Implements tools::sg::field.
Definition at line 20 of file sf_polyhedron.
23 int nvert =
m_value.GetNoVertices();
24 int nface =
m_value.GetNoFacets();
25 double* ds =
new double[1+3*nvert+1+8*nface];
30 for(
int index=1;index<=nvert;index++) {
40 for(
int index=1;index<=nface;index++) {
41 SbFacet& fc = pF[index];
42 for(
int i=0;i<4;i++) {
49 bool status = a_buffer.write_vec(di,ds);
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/hep/sf_polyhedron