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 Camera3Dcamera_startdoublex_angledoubley_angleFields 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.Objectclone()protected booleando_it(InterfaceGraphic<?> g, long time)Perform this task, contingent ontime.java.lang.StringgetDTD()Returns the Data Type Declaration (DTD) for this object's XML representationjava.lang.StringgetName()java.lang.StringgetXML(int tab)Returns this object's XML representation as a single string.static XMLObjectgetXMLInstance(org.xml.sax.Attributes attributes)java.lang.StringgetXMLSchema()Returns the XML schema for this object's XML representationvoidhandleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)Handles the start of an XML element.voidsetFromTask(VideoTask task)voidsetXAngle(double a)voidsetYAngle(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, writeXMLMethods 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:VideoTaskPerform this task, contingent ontime.- Specified by:
do_itin 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:XMLObjectReturns 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:XMLObjectReturns the XML schema for this object's XML representation- Returns:
-
getXML
public java.lang.String getXML(int tab)Description copied from interface:XMLObjectReturns 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:XMLObjectHandles the start of an XML element.- Specified by:
handleXMLElementStartin interfaceXMLObject- Overrides:
handleXMLElementStartin classVideoTask- Parameters:
localName- Local name of the elementattributes- Set of element attributestype- TheXMLTypeof this element
-
setFromTask
- Specified by:
setFromTaskin classVideoTask
-
clone
public java.lang.Object clone() -
getXMLInstance
-