#include <Iguana/Inventor/interface/IgSoSlicerEngine.h>
Public Member Functions | |
IgSoSlicerEngine (void) | |
~IgSoSlicerEngine (void) | |
Static Public Member Functions | |
static void | initClass (void) |
Public Attributes | |
SoEngineOutput | backPlane |
SoEngineOutput | frontPlane |
SoSFPlane | plane |
SoSFFloat | thickness |
Private Member Functions | |
virtual void | evaluate (void) |
SO_ENGINE_HEADER (IgSoSlicerEngine) |
Definition at line 23 of file IgSoSlicerEngine.h.
IgSoSlicerEngine::IgSoSlicerEngine | ( | void | ) |
Definition at line 24 of file IgSoSlicerEngine.cc.
References backPlane, frontPlane, plane, and thickness.
00025 { 00026 SO_ENGINE_CONSTRUCTOR (IgSoSlicerEngine); 00027 SO_ENGINE_ADD_INPUT (thickness, (.5)); 00028 SO_ENGINE_ADD_INPUT (plane, (SbPlane (SbVec3f (0, 0, -1), 0))); 00029 SO_ENGINE_ADD_OUTPUT (frontPlane, SoSFPlane); 00030 SO_ENGINE_ADD_OUTPUT (backPlane, SoSFPlane); 00031 }
IgSoSlicerEngine::~IgSoSlicerEngine | ( | void | ) |
Definition at line 37 of file IgSoSlicerEngine.cc.
References backPlane, d1, d2, frontPlane, n, p, plane, reco::JetTracksAssociation::setValue(), and thickness.
00038 { 00039 SbPlane p (plane.getValue ()); 00040 SbVec3f n (p.getNormal ()); 00041 float d1 = p.getDistanceFromOrigin (); 00042 float d2 = thickness.getValue ()/2.0f; 00043 00044 SO_ENGINE_OUTPUT (frontPlane, SoSFPlane, 00045 setValue (SbPlane (n, d1 - d2))); 00046 SO_ENGINE_OUTPUT (backPlane, SoSFPlane, 00047 setValue (SbPlane (n * -1, -d1 - d2))); 00048 }
Definition at line 19 of file IgSoSlicerEngine.cc.
Referenced by initNodes(), and initShapes().
00020 { 00021 SO_ENGINE_INIT_CLASS (IgSoSlicerEngine, SoEngine, "Engine"); 00022 }
IgSoSlicerEngine::SO_ENGINE_HEADER | ( | IgSoSlicerEngine | ) | [private] |
SoEngineOutput IgSoSlicerEngine::backPlane |
Definition at line 30 of file IgSoSlicerEngine.h.
Referenced by evaluate(), IgSoSlicer::IgSoSlicer(), and IgSoSlicerEngine().
SoEngineOutput IgSoSlicerEngine::frontPlane |
Definition at line 29 of file IgSoSlicerEngine.h.
Referenced by evaluate(), IgSoSlicer::IgSoSlicer(), and IgSoSlicerEngine().
SoSFPlane IgSoSlicerEngine::plane |
Definition at line 28 of file IgSoSlicerEngine.h.
Referenced by evaluate(), IgSoSlicer::IgSoSlicer(), and IgSoSlicerEngine().
SoSFFloat IgSoSlicerEngine::thickness |
Definition at line 27 of file IgSoSlicerEngine.h.
Referenced by evaluate(), IgSoSlicer::IgSoSlicer(), and IgSoSlicerEngine().