public class PointController extends BasicController implements ITransparentController, IWireframeController
Constructor and Description |
---|
PointController()
The nullary constructor.
|
PointController(Point model,
BasicView view)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
copy(IController otherObject)
Deep copy the given object's data into this one.
|
double |
getX()
Getter for the x coordinate.
|
double |
getY()
Getter for the y coordinate
|
double |
getZ()
Getter for the z coordinate
|
boolean |
isTransparent()
Method to check whether or not the controller is currently in transparent
mode.
|
boolean |
isWireframe()
Method to check whether or not the controller is currently in wireframe
mode.
|
void |
setTransparentMode(boolean transparent)
Sets whether or not the part should be rendered transparently.
|
void |
setWireframeMode(boolean on)
Set the controller's view to display in either wireframe or filled mode
|
void |
setX(double x)
Setter for the x coordinate
|
void |
setY(double y)
Setter for the y coordinate
|
void |
setZ(double z)
Setter for the z coordinate
|
void |
updateLocation(double x,
double y,
double z)
Set the point's location.
|
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 double getX()
public void setX(double x)
x
- The point's new x coordinatepublic double getY()
public void setY(double y)
y
- The new y coordinatepublic double getZ()
public void setZ(double z)
z
- The new z coordinatepublic void updateLocation(double x, double y, double z)
x
- The new x coordinatey
- The new y coordinatez
- The new z coordinatepublic java.lang.Object clone()
clone
in class BasicController
public void copy(IController otherObject)
IController
copy
in interface IController
copy
in class BasicController
otherObject
- The object to copy into this one.public boolean isWireframe()
IWireframeController
isWireframe
in interface IWireframeController
public void setWireframeMode(boolean on)
IWireframeController
setWireframeMode
in interface IWireframeController
on
- If true, sets the view to display its mesh in wireframe mode.
If false, sets the view to display its mesh normally.public boolean isTransparent()
ITransparentController
isTransparent
in interface ITransparentController
public void setTransparentMode(boolean transparent)
ITransparentController
setTransparentMode
in interface ITransparentController