// commercial license or contractual agreement.
#include <Quantity_Color.hxx>
-#include <Quantity.hxx>
#include <Quantity_ColorDefinitionError.hxx>
#include <Standard_ErrorHandler.hxx>
Standard_Boolean Quantity_Color::ColorFromName (const Standard_CString theName,
Quantity_NameOfColor& theColor)
{
- return Quantity::NameOfColorFromString (theName, theColor);
- /*
TCollection_AsciiString aName (theName);
aName.UpperCase();
if (aName.Search("QUANTITY_NOC_") == 1)
return Standard_True;
}
}
- return Standard_False;*/
+ return Standard_False;
}
Quantity_Color::Quantity_Color () {
Standard_CString Quantity_Color::StringName (
const Quantity_NameOfColor AName) {
- return Quantity::NameOfColorToString (AName);
-/*
Standard_CString TheName;
switch (AName) {
throw Standard_OutOfRange("Bad name");
break;
}
-return (TheName);*/
+return (TheName);
}
//\f