List of usage examples for javax.media.j3d TexCoordGeneration TexCoordGeneration
public TexCoordGeneration()
From source file:TexCoordTest.java
public void actionPerformed(ActionEvent event) { if (event.getActionCommand().equals("EYE_LINEAR") != false) m_TexGen.setGenMode(TexCoordGeneration.EYE_LINEAR); else if (event.getActionCommand().equals("OBJECT_LINEAR") != false) m_TexGen.setGenMode(TexCoordGeneration.OBJECT_LINEAR); else if (event.getActionCommand().equals("SPHERE_MAP") != false) m_TexGen.setGenMode(TexCoordGeneration.SPHERE_MAP); else if (event.getActionCommand().equals("Rotate") != false) m_RotationInterpolator.setEnable(!m_RotationInterpolator.getEnable()); else if (event.getActionCommand().equals("Translate") != false) m_PositionInterpolator.setEnable(!m_PositionInterpolator.getEnable()); // apply any changes to the TexCoordGeneration and copy into the // appearance TexCoordGeneration texCoordGeneration = new TexCoordGeneration(); texCoordGeneration = (TexCoordGeneration) m_TexGen.cloneNodeComponent(true); m_Appearance.setTexCoordGeneration(texCoordGeneration); }
From source file:AppearanceTest.java
protected void assignToAppearance() { m_TexCoordGeneration = new TexCoordGeneration(); m_TexCoordGeneration.duplicateNodeComponent(m_NodeComponent); m_Appearance.setTexCoordGeneration(m_TexCoordGeneration); }