Warnings on vc14 were eliminated
[occt.git] / src / Vrml / Vrml_MaterialBinding.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
42cf5bc1 14
15#include <Vrml_MaterialBinding.hxx>
7fd59977 16
b311480e 17Vrml_MaterialBinding::Vrml_MaterialBinding(const Vrml_MaterialBindingAndNormalBinding aValue)
7fd59977 18{
19 myValue = aValue;
20}
21
22 Vrml_MaterialBinding::Vrml_MaterialBinding()
23{
24 myValue = Vrml_DEFAULT;
25}
26
27void Vrml_MaterialBinding::SetValue(const Vrml_MaterialBindingAndNormalBinding aValue)
28{
29 myValue = aValue;
30}
31
32Vrml_MaterialBindingAndNormalBinding Vrml_MaterialBinding::Value() const
33{
34 return myValue;
35}
36
37Standard_OStream& Vrml_MaterialBinding::Print(Standard_OStream& anOStream) const
38{
586db386 39 anOStream << "MaterialBinding {\n";
7fd59977 40 switch ( myValue )
41 {
586db386 42 case Vrml_DEFAULT: break; // anOStream << " value\tDEFAULT";
43 case Vrml_OVERALL: anOStream << " value\tOVERALL\n"; break;
44 case Vrml_PER_PART: anOStream << " value\tPER_PART\n"; break;
45 case Vrml_PER_PART_INDEXED: anOStream << " value\tPER_PART_INDEXED\n"; break;
46 case Vrml_PER_FACE: anOStream << " value\tPER_FACE\n"; break;
47 case Vrml_PER_FACE_INDEXED: anOStream << " value\tPER_FACE_INDEXED\n"; break;
48 case Vrml_PER_VERTEX: anOStream << " value\tPER_VERTEX\n"; break;
49 case Vrml_PER_VERTEX_INDEXED: anOStream << " value\tPER_VERTEX_INDEXED\n"; break;
7fd59977 50 }
586db386 51 anOStream << "}\n";
7fd59977 52 return anOStream;
53}
54