public boolean updateTime(double curTime) throws SVGException
{
// if (trackManager.getNumTracks() == 0) return false;
//Get current values for parameters
StyleAttribute sty = new StyleAttribute();
boolean stateChange = false;
if (getPres(sty.setName("x")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != x)
{
x = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("y")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != y)
{
y = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("z")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != z)
{
z = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("pointsAtX")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != pointsAtX)
{
pointsAtX = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("pointsAtY")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != pointsAtY)
{
pointsAtY = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("pointsAtZ")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != pointsAtZ)
{
pointsAtZ = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("specularComponent")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != specularComponent)
{
specularComponent = newVal;
stateChange = true;
}
}
if (getPres(sty.setName("limitingConeAngle")))
{
float newVal = sty.getFloatValueWithUnits();
if (newVal != limitingConeAngle)
{
limitingConeAngle = newVal;
stateChange = true;
}