CMS 3D CMS Logo

IgSoCircularHist.cc File Reference

#include "Iguana/Inventor/interface/IgSoCircularHist.h"
#include <Inventor/nodes/SoText2.h>
#include <Inventor/nodes/SoFont.h>
#include <Inventor/nodes/SoTranslation.h>
#include <Inventor/nodes/SoRotation.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoIndexedFaceSet.h>
#include <Inventor/nodes/SoShapeHints.h>
#include <Inventor/nodes/SoMaterial.h>
#include <Inventor/nodes/SoMaterialBinding.h>
#include <Inventor/nodes/SoIndexedLineSet.h>
#include <Inventor/nodes/SoVertexProperty.h>
#include <Inventor/nodes/SoCoordinate3.h>
#include <Inventor/nodes/SoFaceSet.h>
#include <vector>

Go to the source code of this file.

Functions

SbVec3f convertCoordinates (SbVec3f radialCoords)
 SO_KIT_SOURCE (IgSoCircularHist)


Function Documentation

SbVec3f convertCoordinates ( SbVec3f  radialCoords  )  [inline]

Definition at line 35 of file IgSoCircularHist.cc.

References funct::cos(), and funct::sin().

Referenced by generateLowerVertexData(), generateUpperVertexData(), IgSoCircularHist::refresh(), and IgSoRZHist::refresh().

00036 {
00037     SbVec3f cartesianCoords;
00038     cartesianCoords [0] = radialCoords [0] * cos (radialCoords [1]);
00039     cartesianCoords [1] = radialCoords [0] * sin (radialCoords [1]);
00040     cartesianCoords [2] = radialCoords [2];
00041     return cartesianCoords;
00042 }

SO_KIT_SOURCE ( IgSoCircularHist   ) 


Generated on Tue Jun 9 17:54:15 2009 for CMSSW by  doxygen 1.5.4