Skip to content

Commit

Permalink
Minor reorder for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 7, 2024
1 parent 9609d1d commit bb9d8be
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions source/PyMaterialX/PyMaterialXCore/PyElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,6 @@ void bindPyElement(py::module& mod)
BIND_ELEMENT_FUNC_INSTANCE(TypeDef)
BIND_ELEMENT_FUNC_INSTANCE(Visibility);

py::class_<mx::ElementEquivalenceResult>(mod, "ElementEquivalenceResult")
.def_readonly_static("ATTRIBUTE", &mx::ElementEquivalenceResult::ATTRIBUTE)
.def_readonly_static("ATTRIBUTE_NAMES", &mx::ElementEquivalenceResult::ATTRIBUTE_NAMES)
.def_readonly_static("CHILD_COUNT", &mx::ElementEquivalenceResult::CHILD_COUNT)
.def_readonly_static("CHILD_NAME", &mx::ElementEquivalenceResult::CHILD_NAME)
.def_readonly_static("NAME", &mx::ElementEquivalenceResult::NAME)
.def_readonly_static("CATEGORY", &mx::ElementEquivalenceResult::CATEGORY)
.def_readwrite("path1", &mx::ElementEquivalenceResult::path1)
.def_readwrite("path2", &mx::ElementEquivalenceResult::path2)
.def_readwrite("differenceType", &mx::ElementEquivalenceResult::differenceType)
.def_readwrite("attributeName", &mx::ElementEquivalenceResult::attributeName);

py::class_<mx::ElementEquivalenceOptions>(mod, "ElementEquivalenceOptions")
.def_readwrite("format", &mx::ElementEquivalenceOptions::format)
.def_readwrite("precision", &mx::ElementEquivalenceOptions::precision)
.def_readwrite("skipAttributes", &mx::ElementEquivalenceOptions::skipAttributes)
.def_readwrite("skipValueComparisons", &mx::ElementEquivalenceOptions::skipValueComparisons)
.def(py::init<>());

py::class_<mx::TypedElement, mx::TypedElementPtr, mx::Element>(mod, "TypedElement")
.def("setType", &mx::TypedElement::setType)
.def("hasType", &mx::TypedElement::hasType)
Expand Down Expand Up @@ -230,6 +211,25 @@ void bindPyElement(py::module& mod)
py::class_<mx::GenericElement, mx::GenericElementPtr, mx::Element>(mod, "GenericElement")
.def_readonly_static("CATEGORY", &mx::GenericElement::CATEGORY);

py::class_<mx::ElementEquivalenceResult>(mod, "ElementEquivalenceResult")
.def_readonly_static("ATTRIBUTE", &mx::ElementEquivalenceResult::ATTRIBUTE)
.def_readonly_static("ATTRIBUTE_NAMES", &mx::ElementEquivalenceResult::ATTRIBUTE_NAMES)
.def_readonly_static("CHILD_COUNT", &mx::ElementEquivalenceResult::CHILD_COUNT)
.def_readonly_static("CHILD_NAME", &mx::ElementEquivalenceResult::CHILD_NAME)
.def_readonly_static("NAME", &mx::ElementEquivalenceResult::NAME)
.def_readonly_static("CATEGORY", &mx::ElementEquivalenceResult::CATEGORY)
.def_readwrite("path1", &mx::ElementEquivalenceResult::path1)
.def_readwrite("path2", &mx::ElementEquivalenceResult::path2)
.def_readwrite("differenceType", &mx::ElementEquivalenceResult::differenceType)
.def_readwrite("attributeName", &mx::ElementEquivalenceResult::attributeName);

py::class_<mx::ElementEquivalenceOptions>(mod, "ElementEquivalenceOptions")
.def_readwrite("format", &mx::ElementEquivalenceOptions::format)
.def_readwrite("precision", &mx::ElementEquivalenceOptions::precision)
.def_readwrite("skipAttributes", &mx::ElementEquivalenceOptions::skipAttributes)
.def_readwrite("skipValueComparisons", &mx::ElementEquivalenceOptions::skipValueComparisons)
.def(py::init<>());

py::class_<mx::StringResolver, mx::StringResolverPtr>(mod, "StringResolver")
.def("setFilePrefix", &mx::StringResolver::setFilePrefix)
.def("getFilePrefix", &mx::StringResolver::getFilePrefix)
Expand Down

0 comments on commit bb9d8be

Please sign in to comment.