001/* 002 * (C) Copyright 2006-2016 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Tiago Cardoso <[email protected]> 018 * Miguel Nixo 019 */ 020package org.nuxeo.ecm.platform.threed; 021 022import java.util.ArrayList; 023import java.util.List; 024 025public class ThreeDConstants { 026 027 public static final String THREED_TYPE = "ThreeD"; 028 029 public static final String THREED_FACET = "ThreeD"; 030 031 public static final String THREED_SCHEMA = "threed"; 032 033 public static final String THREED_CHANGED_EVENT = "threeDChanged"; 034 035 public static final String EXTENSION_COLLADA = "dae"; 036 037 public static final String EXTENSION_3DSTUDIO = "3ds"; 038 039 public static final String EXTENSION_FILMBOX = "fbx"; 040 041 public static final String EXTENSION_STANFORD = "ply"; 042 043 public static final String EXTENSION_WAVEFRONT = "obj"; 044 045 public static final String EXTENSION_EXTENSIBLE_3D_GRAPHICS = "x3d"; 046 047 public static final String EXTENSION_STEREOLITHOGRAPHY = "stl"; 048 049 public static final String EXTENSION_GLTF = "gltf"; 050 051 public static final String EXTENSION_RENDER = "png"; 052 053 public static final String THUMBNAIL_PICTURE_TITLE = "Thumbnail"; 054 055 public static final String STATIC_3D_PCTURE_TITLE = "Static3D"; 056 057 public static final List SUPPORTED_EXTENSIONS = new ArrayList<String>() { 058 { 059 add(EXTENSION_COLLADA); 060 add(EXTENSION_3DSTUDIO); 061 add(EXTENSION_FILMBOX); 062 add(EXTENSION_STANFORD); 063 add(EXTENSION_WAVEFRONT); 064 add(EXTENSION_EXTENSIBLE_3D_GRAPHICS); 065 add(EXTENSION_STEREOLITHOGRAPHY); 066 add(EXTENSION_GLTF); 067 } 068 }; 069 070 // Constant utility class 071 private ThreeDConstants() { 072 } 073 074}