forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefaultColorManagementSystem.h
45 lines (32 loc) · 1.27 KB
/
DefaultColorManagementSystem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#ifndef MATERIALX_DEFAULT_COLOR_MANAGEMENT_SYSTEM_H
#define MATERIALX_DEFAULT_COLOR_MANAGEMENT_SYSTEM_H
/// @file
/// Default color management system implementation
#include <MaterialXGenShader/ColorManagementSystem.h>
MATERIALX_NAMESPACE_BEGIN
/// A shared pointer to a DefaultColorManagementSystem
using DefaultColorManagementSystemPtr = shared_ptr<class DefaultColorManagementSystem>;
/// @class DefaultColorManagementSystem
/// Class for a default color management system.
class MX_GENSHADER_API DefaultColorManagementSystem : public ColorManagementSystem
{
public:
virtual ~DefaultColorManagementSystem() { }
/// Create a new DefaultColorManagementSystem
static DefaultColorManagementSystemPtr create(const string& target);
/// Return the DefaultColorManagementSystem name
const string& getName() const override;
protected:
/// Returns an implementation for a given transform
ImplementationPtr getImplementation(const ColorSpaceTransform& transform) const override;
/// Protected constructor
DefaultColorManagementSystem(const string& target);
private:
string _target;
};
MATERIALX_NAMESPACE_END
#endif