| /******************************************************************************* |
| * 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, |
| * Regent L'Archeveque - initial API and implementation |
| * |
| * SPDX-License-Identifier: EPL-1.0 |
| * |
| *******************************************************************************/ |
| package org.eclipse.apogy.core.environment.surface.impl; |
| |
| import javax.vecmath.Point3d; |
| import javax.vecmath.Vector3d; |
| |
| public abstract class AbstractLineOfSightImageMapLayerCustomImpl extends AbstractLineOfSightImageMapLayerImpl { |
| |
| public static final short NO_MESH_PROJECTION = 0; |
| public static final short NO_LINE_OF_SIGHT = 1; |
| public static final short LINE_OF_SIGHT = 2; |
| |
| protected Point3d[][] pixelsIntersectionPoints; |
| protected Vector3d[][] pixelNormals; |
| protected short[][] lineOfSights; |
| |
| /** |
| * Returns an array of int representing the color for each lineOfsight value |
| * |
| * @param lineOfSights The array of line of sight flags. |
| * @return the array containing the color associated with the line of sight |
| * status. |
| */ |
| abstract protected int[][] getPixelsColor(short[][] lineOfSights); |
| } // AbstractLineOfSightImageMapLayerImpl |