25.10.2014 Views

Tesis Simulador Circuitos 3D.pdf - Maestría en Ciencias de la ...

Tesis Simulador Circuitos 3D.pdf - Maestría en Ciencias de la ...

Tesis Simulador Circuitos 3D.pdf - Maestría en Ciencias de la ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

-----------------------------------------------------------<br />

//<br />

// Conexion <strong>en</strong>tre "graficaBarras" --> "motor<strong>3D</strong>"<br />

// (activacion <strong>de</strong> <strong>la</strong> animacion <strong>de</strong> los "nodosVisuales" <strong>de</strong>s<strong>de</strong><br />

// <strong>la</strong> "graficaBarras")<br />

//<br />

// -----------------------------------------------------------<br />

public function seleccionarNodo(id:String):void {<br />

for (i in nodosVisuales) {<br />

if (id == nodosVisuales[i].name) {<br />

nodosVisuales[i].iniciarAnimacion();<br />

}<br />

}<br />

}<br />

public function quitarSeleccion(id:String):void {<br />

for (i in nodosVisuales) {<br />

if (id == nodosVisuales[i].name) {<br />

nodosVisuales[i].<strong>de</strong>t<strong>en</strong>erAnimacion();<br />

}<br />

}<br />

}<br />

// -----------------------------------------------------------<br />

//<br />

// Seccion <strong>de</strong> "Sli<strong>de</strong>rs"<br />

//<br />

// -----------------------------------------------------------<br />

private function crearSli<strong>de</strong>rs():void {<br />

// --- Creacion y colocacion <strong>de</strong> "xSli<strong>de</strong>r" ---<br />

xSli<strong>de</strong>r = new Sli<strong>de</strong>r();<br />

xSli<strong>de</strong>r.setSize(180,10);<br />

xSli<strong>de</strong>r.maximum = 180;<br />

xSli<strong>de</strong>r.minimum = -180;<br />

xSli<strong>de</strong>r.x = 780;<br />

xSli<strong>de</strong>r.y = 300;<br />

addChild(xSli<strong>de</strong>r);<br />

// --- Creacion y colocacion <strong>de</strong> <strong>la</strong> etiqueta para "xSli<strong>de</strong>r" ---<br />

var xLabel:mc_<strong>la</strong>bel_Sli<strong>de</strong>rX = new mc_<strong>la</strong>bel_Sli<strong>de</strong>rX();<br />

xLabel.x = xSli<strong>de</strong>r.x + 78;<br />

xLabel.y = xSli<strong>de</strong>r.y + 9;<br />

addChild(xLabel);<br />

// --- Creacion y colocacion <strong>de</strong> "ySli<strong>de</strong>r" ---<br />

ySli<strong>de</strong>r = new Sli<strong>de</strong>r();<br />

ySli<strong>de</strong>r.setSize(180,10);<br />

ySli<strong>de</strong>r.maximum = 180;<br />

ySli<strong>de</strong>r.minimum = -180;<br />

ySli<strong>de</strong>r.x = 780;<br />

ySli<strong>de</strong>r.y = 340;<br />

addChild(ySli<strong>de</strong>r);<br />

// --- Creacion y colocacion <strong>de</strong> <strong>la</strong> etiqueta para "ySli<strong>de</strong>r" ---<br />

var yLabel:mc_<strong>la</strong>bel_Sli<strong>de</strong>rY = new mc_<strong>la</strong>bel_Sli<strong>de</strong>rY();<br />

yLabel.x = ySli<strong>de</strong>r.x + 78;<br />

yLabel.y = ySli<strong>de</strong>r.y + 9;<br />

addChild(yLabel);<br />

// --- Creacion y colocacion <strong>de</strong> "zSli<strong>de</strong>r" ---<br />

zSli<strong>de</strong>r = new Sli<strong>de</strong>r();<br />

zSli<strong>de</strong>r.setSize(180,10);<br />

zSli<strong>de</strong>r.maximum = 180;<br />

zSli<strong>de</strong>r.minimum = -180;<br />

zSli<strong>de</strong>r.x = 780;<br />

zSli<strong>de</strong>r.y = 380;<br />

addChild(zSli<strong>de</strong>r);<br />

// --- Creacion y colocacion <strong>de</strong> <strong>la</strong> etiqueta para "zSli<strong>de</strong>r" ---<br />

var zLabel:mc_<strong>la</strong>bel_Sli<strong>de</strong>rZ = new mc_<strong>la</strong>bel_Sli<strong>de</strong>rZ();<br />

8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!