#include <Iguana/Inventor/interface/IgSoG4Box.h>
Public Member Functions | |
IgSoG4Box (void) | |
Static Public Member Functions | |
static void | initClass (void) |
Public Attributes | |
SoSFFloat | dx |
SoSFFloat | dy |
SoSFFloat | dz |
Protected Member Functions | |
virtual void | refresh (void) |
Private Member Functions | |
SO_KIT_CATALOG_ENTRY_HEADER (cube) | |
SO_KIT_CATALOG_ENTRY_HEADER (scale) | |
SO_KIT_HEADER (IgSoG4Box) |
A Box is a cuboid of given half lengths dx,dy,dz. The box is centred on the origin with sides parallel to the x/y/z axes.
Definition at line 23 of file IgSoG4Box.h.
IgSoG4Box::IgSoG4Box | ( | void | ) |
Definition at line 24 of file IgSoG4Box.cc.
References dx, dy, dz, FALSE, scale, IgSoShapeKit::setUpConnections(), and TRUE.
00025 { 00026 SO_KIT_CONSTRUCTOR (IgSoG4Box); 00027 SO_KIT_ADD_FIELD (dx, (1.0)); 00028 SO_KIT_ADD_FIELD (dy, (1.0)); 00029 SO_KIT_ADD_FIELD (dz, (1.0)); 00030 SO_KIT_ADD_CATALOG_ENTRY (scale, SoScale, FALSE, separator,\x0, TRUE); 00031 SO_KIT_ADD_CATALOG_ENTRY (cube, SoCube, FALSE, separator,\x0, TRUE); 00032 SO_KIT_INIT_INSTANCE (); 00033 setUpConnections (true, true); 00034 }
Reimplemented from IgSoShapeKit.
Definition at line 21 of file IgSoG4Box.cc.
Referenced by initNodes(), and initShapes().
00022 { SO_KIT_INIT_CLASS (IgSoG4Box, IgSoShapeKit, "IgSoShapeKit"); }
Reimplemented from IgSoShapeKit.
Definition at line 37 of file IgSoG4Box.cc.
References dx, dy, dz, and scale.
00038 { 00039 SoScale *scale = new SoScale; 00040 SoCube *cube = new SoCube; 00041 00042 scale->scaleFactor.setValue (dx.getValue (), dy.getValue (), dz.getValue ()); 00043 00044 setPart ("scale", scale); 00045 setPart ("cube", cube); 00046 }
IgSoG4Box::SO_KIT_CATALOG_ENTRY_HEADER | ( | cube | ) | [private] |
IgSoG4Box::SO_KIT_CATALOG_ENTRY_HEADER | ( | scale | ) | [private] |
IgSoG4Box::SO_KIT_HEADER | ( | IgSoG4Box | ) | [private] |
SoSFFloat IgSoG4Box::dx |
SoSFFloat IgSoG4Box::dy |
SoSFFloat IgSoG4Box::dz |