ImfMatrixAttribute.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. // Copyright (c) Contributors to the OpenEXR Project.
  4. //
  5. #ifndef INCLUDED_IMF_MATRIX_ATTRIBUTE_H
  6. #define INCLUDED_IMF_MATRIX_ATTRIBUTE_H
  7. //-----------------------------------------------------------------------------
  8. //
  9. // class M33fAttribute
  10. // class M33dAttribute
  11. // class M44fAttribute
  12. // class M44dAttribute
  13. //
  14. //-----------------------------------------------------------------------------
  15. #include "ImfExport.h"
  16. #include "ImfNamespace.h"
  17. #include "ImfAttribute.h"
  18. #include <ImathMatrix.h>
  19. #if defined(_MSC_VER)
  20. // suppress warning about non-exported base classes
  21. #pragma warning (push)
  22. #pragma warning (disable : 4251)
  23. #pragma warning (disable : 4275)
  24. #endif
  25. OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
  26. typedef TypedAttribute<IMATH_NAMESPACE::M33f> M33fAttribute;
  27. typedef TypedAttribute<IMATH_NAMESPACE::M33d> M33dAttribute;
  28. typedef TypedAttribute<IMATH_NAMESPACE::M44f> M44fAttribute;
  29. typedef TypedAttribute<IMATH_NAMESPACE::M44d> M44dAttribute;
  30. #ifndef COMPILING_IMF_MATRIX_ATTRIBUTE
  31. extern template class IMF_EXPORT_EXTERN_TEMPLATE TypedAttribute<IMATH_NAMESPACE::M33f>;
  32. extern template class IMF_EXPORT_EXTERN_TEMPLATE TypedAttribute<IMATH_NAMESPACE::M33d>;
  33. extern template class IMF_EXPORT_EXTERN_TEMPLATE TypedAttribute<IMATH_NAMESPACE::M44f>;
  34. extern template class IMF_EXPORT_EXTERN_TEMPLATE TypedAttribute<IMATH_NAMESPACE::M44d>;
  35. #endif
  36. OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
  37. #if defined(_MSC_VER)
  38. #pragma warning(pop)
  39. #endif
  40. #endif