CMS 3D CMS Logo

IgSoXYZGrid Class Reference

Draws a grid/grids in x, y, z planes. More...

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

Inheritance diagram for IgSoXYZGrid:

IgSoShapeKit

List of all members.

Public Member Functions

 IgSoXYZGrid (void)

Static Public Member Functions

static void initClass (void)

Public Attributes

SoSFFloat divisionLength
SoSFInt32 divisions

Protected Member Functions

virtual void refresh (void)

Private Member Functions

 SO_KIT_CATALOG_ENTRY_HEADER (axes)
 SO_KIT_HEADER (IgSoXYZGrid)


Detailed Description

Draws a grid/grids in x, y, z planes.

Author:
L. Taylor

Definition at line 24 of file IgSoXYZGrid.h.


Constructor & Destructor Documentation

IgSoXYZGrid::IgSoXYZGrid ( void   ) 

Definition at line 23 of file IgSoXYZGrid.cc.

References divisionLength, divisions, FALSE, IgSoShapeKit::setUpConnections(), and TRUE.

00024 {
00025     SO_KIT_CONSTRUCTOR (IgSoXYZGrid);
00026     SO_KIT_ADD_FIELD (divisions,      (3));
00027     SO_KIT_ADD_FIELD (divisionLength, (0.5));
00028     SO_KIT_ADD_CATALOG_ENTRY (axes, IgSoCoordinateAxis, FALSE, separator,\x0, TRUE);
00029     SO_KIT_INIT_INSTANCE ();
00030     setUpConnections (true, true);
00031 }


Member Function Documentation

void IgSoXYZGrid::initClass ( void   )  [static]

Reimplemented from IgSoShapeKit.

Definition at line 20 of file IgSoXYZGrid.cc.

Referenced by initNodes(), and initShapes().

00021 { SO_KIT_INIT_CLASS (IgSoXYZGrid, IgSoShapeKit, "IgSoShapeKit"); }

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

Reimplemented from IgSoShapeKit.

Definition at line 34 of file IgSoXYZGrid.cc.

References divisionLength, IgSoCoordinateAxis::divisionLength, divisions, and IgSoCoordinateAxis::divisions.

00035 {
00036     IgSoCoordinateAxis *axes = new IgSoCoordinateAxis;
00037     axes->divisions = divisions;
00038     axes->divisionLength = divisionLength;
00039 
00040     setPart ("axes", axes);
00041 }

IgSoXYZGrid::SO_KIT_CATALOG_ENTRY_HEADER ( axes   )  [private]

IgSoXYZGrid::SO_KIT_HEADER ( IgSoXYZGrid   )  [private]


Member Data Documentation

SoSFFloat IgSoXYZGrid::divisionLength

Definition at line 37 of file IgSoXYZGrid.h.

Referenced by IgSoXYZGrid(), and refresh().

SoSFInt32 IgSoXYZGrid::divisions

Definition at line 36 of file IgSoXYZGrid.h.

Referenced by IgSoXYZGrid(), and refresh().


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