public class Tube extends Shape
Constructor and Description |
---|
Tube()
The default constructor.
|
Tube(double length,
double radius)
A constructor which initializes a tube's length and radius.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
int |
getAxialSamples()
Convenience getter method for the tube's axial samples
|
double |
getInnerRadius()
Convenience getter method for the radius of the tube's hole.
|
double |
getLength()
Convenience getter method for the tube's length
|
double |
getRadius()
Convenience getter method for the tube's radius
|
void |
setAxialSamples(int axialSamples)
Convenience setter method for the tube's axial samples
|
void |
setInnerRadius(double radius)
Convenience setter method for the radius of the tube's hole.
|
void |
setLength(double length)
Convenience setter method for the tube's length
|
void |
setRadius(double radius)
Convenience setter method for the tube's radius
|
addEntity, addEntityToCategory, copy, equals, hashCode, register, setController, setParent, setProperty
getAllEntities, getController, getEntities, getEntitiesFromCategory, getEntitiesFromCategory, getEntityCategories, getProperties, getProperty, getPropertyMap, getRotation, getScale, getSize, getSkew, getSubscriptions, getTransformation, getTranslation, getType, removeEntity, setEntities, setProperties, setTransformation, setType, unregister, update
public Tube()
public Tube(double length, double radius)
length
- The tube's lengthradius
- The tube's radiuspublic int getAxialSamples()
public double getLength()
public double getRadius()
public double getInnerRadius()
public void setAxialSamples(int axialSamples)
axialSamples
- The tube's new axial samplespublic void setLength(double length)
length
- The tube's new lengthpublic void setRadius(double radius)
radius
- The tube's new radiuspublic void setInnerRadius(double radius)
radius
- The hole's new radius