Demonstration of beam splitter's inputs and outputs. """ import sys sys.path.append('..') import optivis.scene as scene import optivis.bench.components as components import optivis.view.canvas as canvas scene = scene.Scene(title="Example 3") l = components.Laser(name="L1") bs = components.BeamSplitter(name="BS", aoi=45) mTopRight = components.SteeringMirror(name="Top Right", aoi=45) mBottomRight = components.SteeringMirror(name="Bottom Right", aoi=45) mBottomLeft = components.SteeringMirror(name="Bottom Left", aoi=45) scene.link(outputNode=l.getOutputNode('out'), inputNode=bs.getInputNode('bkB'), length=100) scene.link(outputNode=bs.getOutputNode('frB'), inputNode=mTopRight.getInputNode('fr'), length=50) scene.link(outputNode=mTopRight.getOutputNode('fr'), inputNode=mBottomRight.getInputNode('fr'), length=50) scene.link(outputNode=mBottomRight.getOutputNode('fr'), inputNode=mBottomLeft.getInputNode('fr'), length=50)
from __future__ import unicode_literals, division import sys sys.path.append('../..') import optivis.scene as scene import optivis.bench.components as components import optivis.view.canvas as canvas scene = scene.Scene() # laser l1 = components.Laser(name="L1", azimuth=45) # mirror m1 = components.SteeringMirror(name="M1") scene.link(outputNode=l1.getOutputNode("out"), inputNode=m1.getInputNode("fr"), length=50) gui = canvas.Simple(scene=scene) gui.show()
sys.path.append('../..') import optivis.scene as scene import optivis.bench.components as components import optivis.bench.labels as labels import optivis.geometry as geometry import optivis.view.canvas as canvas scene = scene.Scene() # beam splitter bs = components.BeamSplitter(name="BS", azimuth=180 + 45, aoi=45) # mirrors mPR = components.SteeringMirror(name="PR") mSR = components.SteeringMirror(name="SR") mIX = components.SteeringMirror(name="IX") mIY = components.SteeringMirror(name="IY") # link OUTPUTS of beam splitter to mirrors scene.link(outputNode=bs.getOutputNode("frB"), inputNode=mPR.getInputNode("fr"), length=150, labels=[ labels.Label(text="BS->frB --> fr<-PR", position=geometry.Coordinates(-0.3, 0)) ]) scene.link(outputNode=bs.getOutputNode("bkB"), inputNode=mSR.getInputNode("fr"), length=150,
from __future__ import unicode_literals, division import sys sys.path.append('../..') import optivis.scene as scene import optivis.bench.components as components import optivis.view.canvas as canvas scene = scene.Scene() # laser l1 = components.Laser() # mirror m1 = components.SteeringMirror(azimuth=0, aoi=45) # link laser to INPUT of mirror scene.link(outputNode=l1.getOutputNode("out"), inputNode=m1.getInputNode("fr"), length=50) scene.reference = m1 gui = canvas.Simple(scene=scene) gui.show()
""" Demonstration of laser and mirror. """ import sys sys.path.append('..') import optivis.scene as scene import optivis.bench.links as links import optivis.bench.components as components import optivis.view.canvas as canvas scene = scene.Scene(title="Example 1") l1 = components.Laser(name="L1", tooltip="This is a laser") m1 = components.SteeringMirror(name="M1", tooltip="This is a mirror") scene.link(outputNode=l1.getOutputNode('out'), inputNode=m1.getInputNode('fr'), length=50) scene.reference = l1 gui = canvas.Simple(scene=scene) gui.show()