ATLAS Offline Software
|
SoPolyhedron is an Inventor encapsulation of the HepPolyedron class written by E.Chernyaev. More...
#include <SoPolyhedron.h>
Classes | |
struct | Vertex |
Public Member Functions | |
SoPolyhedron () | |
SoPolyhedron (const SbPolyhedron &) | |
SoPolyhedron (const SbPolyhedron *) | |
long | hasVertex (Vertex *vertices, long len, Vertex &v) |
void | makeShape (SbPolyhedron *) |
virtual void | generateAlternateRep () |
virtual void | clearAlternateRep () |
Static Public Member Functions | |
static void | initClass () |
Public Attributes | |
SoSFNode | alternateRep |
Vertex * | m_vertices |
long * | m_indices |
long | m_vcount |
long | m_icount |
Protected Member Functions | |
virtual void | computeBBox (SoAction *, SbBox3f &, SbVec3f &) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More... | |
virtual void | generatePrimitives (SoAction *) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More... | |
virtual | ~SoPolyhedron () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More... | |
Private Member Functions | |
SO_NODE_HEADER (SoPolyhedron) | |
Private Attributes | |
SbPolyhedron * | m_polyhedron |
SoPolyhedron is an Inventor encapsulation of the HepPolyedron class written by E.Chernyaev.
In particular SoPolyhedron permits to represent boolean operations over solids. To avoid clashes with other libraries (Geant4) where the HepPolyhedron classes may be found, the HepPolyhedron (through usage of CPP macros) had been renamed SbPolyhedron in the HEPVis lib. The solids are modeled with SbPolyedron objects. The SbPolyhedron permits to produce a new SbPolyhedron according to the boolean operation done on them. The resulting SbPolyhedron is then given to an SoPolyhedron for rendering. Note that a boolean operation could be rendered in wire frame by drawing the contour of the resulting solid (not by drawing the wire frame of a triangulation). See the applications/Polyhedron example.
Definition at line 47 of file SoPolyhedron.h.
SoPolyhedron::SoPolyhedron | ( | ) |
Definition at line 56 of file SoPolyhedron.cxx.
SoPolyhedron::SoPolyhedron | ( | const SbPolyhedron & | aPolyhedron | ) |
Definition at line 69 of file SoPolyhedron.cxx.
SoPolyhedron::SoPolyhedron | ( | const SbPolyhedron * | aPolyhedron | ) |
Definition at line 86 of file SoPolyhedron.cxx.
|
protectedvirtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 103 of file SoPolyhedron.cxx.
|
virtual |
Definition at line 419 of file SoPolyhedron.cxx.
|
protectedvirtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 289 of file SoPolyhedron.cxx.
|
virtual |
|
protectedvirtual |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 115 of file SoPolyhedron.cxx.
|
static |
Definition at line 47 of file SoPolyhedron.cxx.
void SoPolyhedron::makeShape | ( | SbPolyhedron * | sp | ) |
Definition at line 521 of file SoPolyhedron.cxx.
|
private |
SoSFNode SoPolyhedron::alternateRep |
Definition at line 54 of file SoPolyhedron.h.
long SoPolyhedron::m_icount |
Definition at line 81 of file SoPolyhedron.h.
long* SoPolyhedron::m_indices |
Definition at line 79 of file SoPolyhedron.h.
|
private |
Definition at line 69 of file SoPolyhedron.h.
long SoPolyhedron::m_vcount |
Definition at line 80 of file SoPolyhedron.h.
Vertex* SoPolyhedron::m_vertices |
Definition at line 78 of file SoPolyhedron.h.