public class TubeController extends ShapeController
Constructor and Description |
---|
TubeController()
The nullary constructor
|
TubeController(Tube model,
BasicView view)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
copy(IController source)
Deep copy the given object's data into this one.
|
int |
getAxialSamples()
Getter method for the tube's axial samples
|
double |
getInnerRadius()
Getter method for the radius of the tube's hole
|
double |
getLength()
Getter method for the tube's length
|
double |
getRadius()
Getter method for the tube's radius
|
void |
setAxialSamples(int axialSamples)
Setter method for the tube's axial samples
|
void |
setInnerRadius(double radius)
Setter method for the radius of the tube's hole
|
void |
setLength(double length)
Setter method for the tube's length
|
void |
setRadius(double radius)
Setter method for the tube's radius
|
isTransparent, isWireframe, setParent, setTransparentMode, setWireframeMode
addEntity, addEntityToCategory, dispose, equals, getDisposed, getEntities, getEntitiesFromCategory, getEntitiesFromCategory, getModel, getProperty, getRepresentation, getRotation, getScale, getSize, getSkew, getSubscriptions, getTransformation, getTranslation, getUpdateManager, getView, hashCode, isRoot, isSelected, refresh, register, removeEntity, setDisposed, setEntities, setProperties, setProperty, setRoot, setRotation, setScale, setSelected, setSize, setSkew, setTransformation, setTranslation, setView, unregister, update
getClass, notify, notifyAll, toString, wait, wait, wait
addEntity, addEntityToCategory, dispose, getDisposed, getEntities, getEntitiesFromCategory, getEntitiesFromCategory, getModel, getProperty, getRepresentation, getRotation, getScale, getSize, getSkew, getTransformation, getTranslation, getUpdateManager, getView, isRoot, isSelected, refresh, removeEntity, setDisposed, setEntities, setProperties, setProperty, setRoot, setRotation, setScale, setSelected, setSize, setSkew, setTransformation, setTranslation, setView
register, unregister
getSubscriptions, update
public 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)
length
- The tube's new radiuspublic void setInnerRadius(double radius)
length
- The tube's new radiuspublic java.lang.Object clone()
clone
in class ShapeController
public void copy(IController source)
IController
copy
in interface IController
copy
in class ShapeController
source
- The object to copy into this one.