Horus Doc || Java GUI Reference || Doxygen's quick Index  

Histogram3dPanel Class Reference

List of all members.

Public Methods

 Histogram3dPanel ()
void setData (Color3f[] data)
void setPointSize (int size)
void setBgColor (Color c)

Constructor & Destructor Documentation

Histogram3dPanel::Histogram3dPanel   [inline]
 

00025 {
00026     setLayout(new BorderLayout());
00027     GraphicsConfiguration config =
00028        SimpleUniverse.getPreferredConfiguration();
00029 
00030     Canvas3D canvas = new Canvas3D(config);
00031     add(canvas, BorderLayout.CENTER);
00032 
00033     // Create a simple scene and attach it to the virtual universe
00034     BranchGroup scene = createSceneGraph();
00035     SimpleUniverse u = new SimpleUniverse(canvas);
00036 
00037     // This will move the ViewPlatform back a bit so the
00038     // objects in the scene can be viewed.
00039     u.getViewingPlatform().setNominalViewingTransform();
00040     u.addBranchGraph(scene);
00041 }


Member Function Documentation

void Histogram3dPanel::setData Color3f    data[] [inline]
 

00044 {
00045     _histo.setData(data);
00046 }

void Histogram3dPanel::setPointSize int    size [inline]
 

00049 {
00050     _histo.setPointSize(size);
00051 }

void Histogram3dPanel::setBgColor Color    c [inline]
 

00054 {
00055     _bg.setColor(new Color3f(c));
00056 }


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 15:11:19 2003 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001