-
Notifications
You must be signed in to change notification settings - Fork 7
/
FilterDAT.h
52 lines (39 loc) · 1.77 KB
/
FilterDAT.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
46
47
48
49
50
51
52
/* Shared Use License: This file is owned by Derivative Inc. (Derivative)
* and can only be used, and/or modified for use, in conjunction with
* Derivative's TouchDesigner software, and only if you are a licensee who has
* accepted Derivative's TouchDesigner license or assignment agreement
* (which also govern the use of this file). You may share or redistribute
* a modified version of this file provided the following conditions are met:
*
* 1. The shared file or redistribution must retain the information set out
* above and this list of conditions.
* 2. Derivative's name (Derivative Inc.) or its trademarks may not be used
* to endorse or promote products derived from this file without specific
* prior written permission from Derivative.
*/
#ifndef __FilterDAT__
#define __FilterDAT__
#include "DAT_CPlusPlusBase.h"
using namespace TD;
/*
This example implements a DAT that takes one input and changes the content's case.
It takes the following parameters:
- Case: One of [Upper Camel Case, Lower Case, Upper Case]. Which determines how the
content's case changes.
- Keep Spaces: If On, the output will have white space.
*/
// Check methods [getNumInfoCHOPChans, getInfoCHOPChan, getInfoDATSize, getInfoDATEntries]
// if you want to output values to the Info CHOP/DAT
// To get more help about these functions, look at SOP_CPlusPlusBase.h
class FilterDAT : public DAT_CPlusPlusBase
{
public:
FilterDAT(const OP_NodeInfo*);
virtual ~FilterDAT();
virtual void getGeneralInfo(DAT_GeneralInfo*, const OP_Inputs*, void* reserved) override;
virtual void execute(DAT_Output*, const OP_Inputs*, void* reserved) override;
virtual void setupParameters(OP_ParameterManager*, void* reserved) override;
private:
void fillTable(const OP_Inputs*, DAT_Output*, const OP_DATInput*);
};
#endif