Package mgui.interfaces.graphics.video
Class RotateView3DTask
java.lang.Object
mgui.interfaces.graphics.video.VideoTask
mgui.interfaces.graphics.video.VideoTask3D
mgui.interfaces.graphics.video.RotateView3DTask
public class RotateView3DTask extends VideoTask3D
Video task which rotates a
Camera3D
over a specific time interval,
with the rotation defined by an X and a Y angle.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description protected Camera3D
camera_start
double
x_angle
double
y_angle
Fields inherited from class mgui.interfaces.graphics.video.VideoTask
isOn, start_time, started, stop_time
-
Constructor Summary
Constructors Constructor Description RotateView3DTask()
RotateView3DTask(long start, long stop, double rot_x, double rot_y)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
protected boolean
do_it(InterfaceGraphic<?> g, long time)
Perform this task, contingent ontime
.java.lang.String
getDTD()
Returns the Data Type Declaration (DTD) for this object's XML representationjava.lang.String
getName()
java.lang.String
getXML(int tab)
Returns this object's XML representation as a single string.static XMLObject
getXMLInstance(org.xml.sax.Attributes attributes)
java.lang.String
getXMLSchema()
Returns the XML schema for this object's XML representationvoid
handleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)
Handles the start of an XML element.void
setFromTask(VideoTask task)
void
setXAngle(double a)
void
setYAngle(double a)
Methods inherited from class mgui.interfaces.graphics.video.VideoTask
compareTo, getLocalName, getSchema, getShortXML, getShortXML, getStart, getStop, getXML, handleXMLElementEnd, handleXMLString, isActive, perform, reset, setStart, setStop, updateTask, writeXML, writeXML, writeXML
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
x_angle
public double x_angle -
y_angle
public double y_angle -
camera_start
-
-
Constructor Details
-
RotateView3DTask
public RotateView3DTask() -
RotateView3DTask
public RotateView3DTask(long start, long stop, double rot_x, double rot_y)
-
-
Method Details
-
do_it
Description copied from class:VideoTask
Perform this task, contingent ontime
.- Specified by:
do_it
in classVideoTask
- Returns:
- Throws:
VideoException
-
setXAngle
public void setXAngle(double a) -
setYAngle
public void setYAngle(double a) -
getName
public java.lang.String getName() -
getDTD
public java.lang.String getDTD()Description copied from interface:XMLObject
Returns the Data Type Declaration (DTD) for this object's XML representationSee http://en.wikipedia.org/wiki/Document_Type_Definition for a description.
-
getXMLSchema
public java.lang.String getXMLSchema()Description copied from interface:XMLObject
Returns the XML schema for this object's XML representation- Returns:
-
getXML
public java.lang.String getXML(int tab)Description copied from interface:XMLObject
Returns this object's XML representation as a single string. NOTE: this is not feasible for larger objects and containers, thus may not be implemented for these objects. Use theXMLObject.writeXML(int,java.io.Writer,mgui.io.standard.xml.XMLOutputOptions,mgui.interfaces.ProgressUpdater)
functions to write larger objects to file. -
handleXMLElementStart
public void handleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)Description copied from interface:XMLObject
Handles the start of an XML element.- Specified by:
handleXMLElementStart
in interfaceXMLObject
- Overrides:
handleXMLElementStart
in classVideoTask
- Parameters:
localName
- Local name of the elementattributes
- Set of element attributestype
- TheXMLType
of this element
-
setFromTask
- Specified by:
setFromTask
in classVideoTask
-
clone
public java.lang.Object clone() -
getXMLInstance
-