public class SphereDataObject extends Object implements DataObject
| Constructor and Description |
|---|
SphereDataObject(double[] center,
double size)
Creates a new moveable sphere at the origin with radius size
|
| Modifier and Type | Method and Description |
|---|---|
Appearance |
createAppearance() |
BranchGroup |
getBranchGroup()
This is required to add to a group
|
static void |
main(String[] args) |
void |
moveTo(double x,
double y,
double z) |
void |
moveTo(Point3d p) |
void |
setColor(float r,
float g,
float b) |
void |
setRadius(double r) |
void |
update() |
public SphereDataObject(double[] center,
double size)
center - location of sphere.size - determines the radius of your spherepublic Appearance createAppearance()
public void moveTo(Point3d p)
public void setRadius(double r)
public void moveTo(double x,
double y,
double z)
public void update()
public BranchGroup getBranchGroup()
DataObjectgetBranchGroup in interface DataObjectpublic static void main(String[] args)
public void setColor(float r,
float g,
float b)
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.