All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.irurueta.geometry.io.Material3DS Maven / Gradle / Ivy

/*
 * Copyright (C) 2012 Alberto Irurueta Carro ([email protected])
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.irurueta.geometry.io;

/**
 * Defines a material in a 3D Studio Max file.
 */
public class Material3DS extends Material {

    /**
     * Material name.
     */
    private String materialName;

    /**
     * Constructor.
     */
    public Material3DS() {
        super();
        materialName = null;
    }

    /**
     * Constructor.
     *
     * @param materialName material name.
     */
    public Material3DS(final String materialName) {
        super();
        this.materialName = materialName;
    }

    /**
     * Returns material name.
     *
     * @return material name.
     */
    public String getMaterialName() {
        return materialName;
    }

    /**
     * Sets material name.
     *
     * @param materialName material name to be set.
     */
    public void setMaterialName(final String materialName) {
        this.materialName = materialName;
    }

    /**
     * Indicates if material name has been set and is available.
     *
     * @return true if available, false otherwise.
     */
    public boolean isMaterialNameAvailable() {
        return materialName != null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy