Loading...
Searching...
No Matches
Function.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPPDFFunction
6#define PDFTRON_H_CPPPDFFunction
7
8#include <C/PDF/TRN_Function.h>
9#include <SDF/Obj.h>
10
11
12namespace pdftron {
13 namespace PDF {
14
15
29{
30public:
31
36 Function (SDF::Obj funct_dict = 0);
37 Function(const Function& f);
40
41 enum Type
42 {
43 e_sampled = 0, // uses a table of sample values to define the function.
44 e_exponential = 2, // defines a set of coefficients for an exponential function.
45 e_stitching = 3, // a combination of other functions, partitioned across a domain.
46 e_postscript = 4 // A PostScript calculator function.
47 };
48
52 Type GetType() const;
53
58
63
71 std::vector<double> Eval(const std::vector<double>& in_arr);
72
73#ifndef SWIG
74 void Eval(double *in, double *out);
75#endif
76
81
85 void Destroy();
86
87// @cond PRIVATE_DOC
88#ifndef SWIGHIDDEN
89 Function(TRN_Function impl);
90 TRN_Function mp_func;
91#endif
92// @endcond
93};
94
95
96#include <Impl/Function.inl>
97
98 }; // namespace PDF
99}; // namespace pdftron
100
101#endif // PDFTRON_H_CPPPDFFunction
Function(const Function &f)
std::vector< double > Eval(const std::vector< double > &in_arr)
void Eval(double *in, double *out)
Function(SDF::Obj funct_dict=0)
Function & operator=(const Function &f)