CMS 3D CMS Logo

IgSoG4Box Class Reference

Represents the G4Box Geant Geometry entity. More...

#include <Iguana/Inventor/interface/IgSoG4Box.h>

Inheritance diagram for IgSoG4Box:

IgSoShapeKit

List of all members.

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)


Detailed Description

Represents the G4Box Geant Geometry entity.

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.


Constructor & Destructor Documentation

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 }


Member Function Documentation

void IgSoG4Box::initClass ( void   )  [static]

Reimplemented from IgSoShapeKit.

Definition at line 21 of file IgSoG4Box.cc.

Referenced by initNodes(), and initShapes().

00022 { SO_KIT_INIT_CLASS (IgSoG4Box, IgSoShapeKit, "IgSoShapeKit"); }

void IgSoG4Box::refresh ( void   )  [protected, virtual]

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]


Member Data Documentation

SoSFFloat IgSoG4Box::dx

Definition at line 33 of file IgSoG4Box.h.

Referenced by IgSoG4Box(), and refresh().

SoSFFloat IgSoG4Box::dy

Definition at line 34 of file IgSoG4Box.h.

Referenced by IgSoG4Box(), and refresh().

SoSFFloat IgSoG4Box::dz

Definition at line 35 of file IgSoG4Box.h.

Referenced by IgSoG4Box(), and refresh().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:42 2009 for CMSSW by  doxygen 1.5.4