HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
COP_SlapcompInputFetcher.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
*/
7
8
#pragma once
9
10
#include "
COP_API.h
"
11
12
#include <
IMX/IMX_Layer.h
>
13
#include <
UT/UT_StringHolder.h
>
14
#include <
UT/UT_NonCopyable.h
>
15
16
class
COP_CableStructure
;
17
18
/// Interface for getting IMX_Layer inputs for a slapcomp program on demand.
19
class
COP_API
COP_SlapcompInputFetcher
:
public
UT_NonCopyable
20
{
21
public
:
22
virtual
~COP_SlapcompInputFetcher
() {}
23
24
/// Gets the desired IMX_Layer. If the given layer name is C and no such
25
/// layer exists, this method will also check for a color layer.
26
IMX_LayerConstPtr
getLayer
(
const
UT_StringHolder
& layer_name)
27
{
28
using namespace
UT::Literal;
29
IMX_LayerConstPtr
layer
= getLayerInternal(layer_name);
30
if
(!
layer
&& layer_name ==
"C"
_sh)
31
layer
= getLayerInternal(
"color"
_sh);
32
return
layer
;
33
}
34
35
/// Returns types and names of all inputs available to this fetcher.
36
virtual
COP_CableStructure
getLayerStructure()
const
= 0;
37
38
protected
:
39
/// Implementation for getLayer.
40
/// Does not need to worry about aliasing the layer name C to color.
41
virtual
IMX_LayerConstPtr
getLayerInternal(
42
const
UT_StringHolder
& layer_name) = 0;
43
};
44
COP_SlapcompInputFetcher::getLayer
IMX_LayerConstPtr getLayer(const UT_StringHolder &layer_name)
Definition:
COP_SlapcompInputFetcher.h:26
COP_CableStructure
Definition:
COP_CableStructure.h:19
IMX_Layer.h
COP_SlapcompInputFetcher::~COP_SlapcompInputFetcher
virtual ~COP_SlapcompInputFetcher()
Definition:
COP_SlapcompInputFetcher.h:22
layer
GLenum GLuint GLint GLint layer
Definition:
glcorearb.h:1299
UT_StringHolder
Definition:
UT_StringHolder.h:1009
IMX_LayerConstPtr
UT_SharedPtr< const IMX_Layer > IMX_LayerConstPtr
Definition:
IMX_Layer.h:27
COP_SlapcompInputFetcher
Interface for getting IMX_Layer inputs for a slapcomp program on demand.
Definition:
COP_SlapcompInputFetcher.h:19
UT_NonCopyable.h
UT_StringHolder.h
UT_NonCopyableNS::UT_NonCopyable
Definition:
UT_NonCopyable.h:17
COP_API
#define COP_API
Definition:
COP_API.h:8
COP_API.h
COP
COP_SlapcompInputFetcher.h
Generated on Thu Sep 4 2025 02:37:40 for HDK by
1.8.6