From 06b4fcb06630530d2740861ebe7054acd22ab9c7 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 26 Jul 2015 14:22:50 +0000 Subject: [PATCH] Remove orphaned file. Thanks Stinkfist --- src/ifcconvert/SurfaceStyle.h | 78 ----------------------------------- win/IfcConvert.vcproj | 26 +++++------- 2 files changed, 11 insertions(+), 93 deletions(-) delete mode 100644 src/ifcconvert/SurfaceStyle.h diff --git a/src/ifcconvert/SurfaceStyle.h b/src/ifcconvert/SurfaceStyle.h deleted file mode 100644 index 87a3e4930d..0000000000 --- a/src/ifcconvert/SurfaceStyle.h +++ /dev/null @@ -1,78 +0,0 @@ -/******************************************************************************** - * * - * This file is part of IfcOpenShell. * - * * - * IfcOpenShell is free software: you can redistribute it and/or modify * - * it under the terms of the Lesser GNU General Public License as published by * - * the Free Software Foundation, either version 3.0 of the License, or * - * (at your option) any later version. * - * * - * IfcOpenShell is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * Lesser GNU General Public License for more details. * - * * - * You should have received a copy of the Lesser GNU General Public License * - * along with this program. If not, see . * - * * - ********************************************************************************/ - -/******************************************************************************** - * * - * This file defines default materials for several IFC datatypes * - * * - ********************************************************************************/ - -#ifndef SURFACESTYLE_H -#define SURFACESTYLE_H - -#include -#include - -#include - -class SurfaceStyle { -public: - class ColorComponent { - private: - std::array data; - public: - ColorComponent(double r, double g, double b) { - data[0] = r; data[1] = g; data[2] = b; - } - const double& R() const { return data[0]; } - const double& G() const { return data[1]; } - const double& B() const { return data[2]; } - double& R() { return data[0]; } - double& G() { return data[1]; } - double& B() { return data[2]; } - }; -private: - std::string name; - ColorComponent diffuse, specular, ambient; - double transparency; - double specularity; -public: - SurfaceStyle(const std::string& name, - double dr = 0.7, double dg = 0.7, double db = 0.7, - double sr = 0.2, double sg = 0.2, double sb = 0.2, - double ar = 0.1, double ag = 0.1, double ab = 0.1, - double Ns = 10.0, double Tr = 1.0) - : name(name) - , diffuse(dr, dg, db) - , specular(sr, sg, sb) - , ambient(ar, ag, ab) - , transparency(Tr) - , specularity(Ns) - {} - const std::string& Name() const { return name; } - const ColorComponent& Diffuse() const { return diffuse; } - const ColorComponent& Specular() const { return specular; } - const ColorComponent& Ambient() const { return ambient; } - double Transparency() const { return transparency; } - double Specularity() const { return specularity; } -}; - -SurfaceStyle GetDefaultMaterial(const std::string& s); - -#endif \ No newline at end of file diff --git a/win/IfcConvert.vcproj b/win/IfcConvert.vcproj index 23cc883718..8506fd6c68 100644 --- a/win/IfcConvert.vcproj +++ b/win/IfcConvert.vcproj @@ -171,19 +171,19 @@ RelativePath="..\src\ifcconvert\ColladaSerializer.cpp" > - - - - @@ -197,35 +197,31 @@ RelativePath="..\src\ifcconvert\ColladaSerializer.h" > - - - - - - - - -