| // ***************************************************************************** |
| // Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency |
| // 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: |
| // Pierre Allard - initial API and implementation |
| // Regent L'Archeveque |
| // Sebastien Gemme |
| // |
| // SPDX-License-Identifier: EPL-1.0 |
| // ***************************************************************************** |
| @GenModel(prefix="ApogyCommonTopologyUIJME3", |
| copyrightText="******************************************************************************* |
| Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency |
| 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: |
| Pierre Allard - initial API and implementation |
| Regent L'Archeveque, |
| Sebastien Gemme |
| |
| SPDX-License-Identifier: EPL-1.0 |
| *******************************************************************************", |
| modelName="ApogyCommonTopologyUIJME3", |
| childCreationExtenders="true", |
| extensibleProviderFactory="true", |
| suppressGenModelAnnotations="false") |
| @GenModel(dynamicTemplates="true", templateDirectory="platform:/plugin/org.eclipse.apogy.common.emf.codegen/templates") |
| @GenModel(modelDirectory="/org.eclipse.apogy.common.topology.ui.jme3/src-gen") |
| @GenModel(editDirectory="/org.eclipse.apogy.common.topology.ui.jme3.edit/src-gen") |
| // @GenModel(testsDirectory="/org.eclipse.apogy.common.topology.ui.jme3.tests/src-gen") |
| |
| package org.eclipse.apogy.common.topology.ui.jme3 |
| |
| import com.jme3.scene.Geometry |
| import org.eclipse.apogy.common.Apogy |
| |
| // Types |
| |
| type Color3f wraps javax.vecmath.Color3f |
| type ColorRGBA wraps com.jme3.math.ColorRGBA |
| type JMEVector3f wraps com.jme3.math.Vector3f |
| type Vector3f wraps javax.vecmath.Vector3f |
| type JME3SceneObject wraps JME3SceneObject |
| type JME3Node wraps com.jme3.scene.Node |
| type JME3Geometry wraps Geometry |
| |
| /** |
| * Factory for JME3. |
| */ |
| @Apogy(isSingleton="true", hasCustomClass="true") |
| class JME3TypeFactory |
| { |
| /** |
| * Creates a ColorRGBA from a Color3f. |
| * @param color The Color3f. |
| * @return The ColorRGBA. The alpha is set to fully opaque. |
| */ |
| op ColorRGBA createColorRGBA(Color3f color) |
| |
| /** |
| * Creates a JMEVector3f from a Vector3f. |
| * @param vector The Vector3f. |
| * @return The JMEVector3f. |
| */ |
| op JMEVector3f createVector3f(Vector3f vector) |
| } |