Commit 0a54e415 authored by Tony McCrary's avatar Tony McCrary
Browse files

Build cleanups (removed old JME impl code)



Change-Id: Ic450222822c2f18d3b64c0ba14e737eeaac4f519
Signed-off-by: default avatarTony McCrary <tmccrary@l33tlabs.com>
parent 57a40ae2
/*******************************************************************************
* Copyright (c) 2012, 2014 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Initial API and implementation and/or initial documentation - Jay Jay Billings,
* Jordan H. Deyton, Dasha Gorin, Alexander J. McCaskey, Taylor Patterson,
* Claire Saunders, Matthew Wang, Anna Wojtowicz
*******************************************************************************/
package org.eclipse.ice.client.widgets.test.geometry;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import org.eclipse.ice.datastructures.form.geometry.ICEShape;
import org.eclipse.ice.viz.service.geometry.shapes.ShapeType;
import org.eclipse.ice.viz.service.geometry.widgets.ShapeTransient;
import org.junit.Test;
/**
* <p>
* Checks ShapeTransient
* </p>
*
* @author Andrew P. Belt
*/
public class ShapeTransientTester {
/**
* <p>
* Checks that ShapeTransient can correctly store a reference to an IShape
* </p>
*
*/
@Test
public void checkStorage() {
ICEShape sphere = new ICEShape(ShapeType.Sphere);
ShapeTransient shapeTransient = new ShapeTransient(sphere.getShape());
// Check that the ShapeTransient stored the variable
assertEquals(sphere.getShape(), shapeTransient.getShape());
// Check for null
ShapeTransient shapeTransient2 = new ShapeTransient(null);
assertNull(shapeTransient2.getShape());
}
}
\ No newline at end of file
......@@ -120,7 +120,7 @@
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.fx.runtime.min.feature.feature.group" version="0.0.0"/>
<unit id="org.eclipse.fx.runtime.min.feature.feature.group" version="2.1.0.201508240501"/>
<repository location="http://download.eclipse.org/efxclipse/runtime-shared-released/2.1.0/site/"/>
</location>
......
/*******************************************************************************
* Copyright (c) 2015 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Initial API and implementation and/or initial documentation -
* Robert Smith
*******************************************************************************/
package org.eclipse.ice.viz.service.jme3.geometry;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.eclipse.ice.viz.service.AbstractVizService;
import org.eclipse.ice.viz.service.IVizCanvas;
import org.eclipse.ice.viz.service.datastructures.VizObject.IVizObject;
import org.eclipse.ice.viz.service.geometry.shapes.Geometry;
/**
* This class is an implementation of IVizService which provides a 3D
* Constructive Solid Geometry based geometry editing OSGI service to the
* platform by a creating GeometryCanvas.
*
* @author Robert Smith
*
*/
public class JME3GeometryVizService extends AbstractVizService {
/**
* The default constructor. There is nothing to initialize.
*/
public JME3GeometryVizService() {
}
/**
* Creates a GeometryCanvas based on the given geometry object.
*
* @param geometry
* An object containing a hierarchy of shapes to model in the
* canvas.
* @return A new GeometryCanvas containing the geometry.
*/
@Override
public IVizCanvas createCanvas(IVizObject geometry) {
if (geometry instanceof Geometry) {
JME3GeometryCanvas canvas = new JME3GeometryCanvas(
(Geometry) geometry);
return canvas;
} else {
throw new IllegalArgumentException(
"GeometryService can only render geometry viz objects.");
}
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ice.viz.service.IVizService#getName()
*/
@Override
public String getName() {
return "JME3 Geometry Editor";
}
/*
* (non-Javadoc)
*
* @see org.eclipse.ice.viz.service.IVizService#getVersion()
*/
@Override
public String getVersion() {
return "1.0";
}
@Override
protected Set<String> findSupportedExtensions() {
return new HashSet<String>();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment