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
tsTest_Evaluator.h
Go to the documentation of this file.
1
//
2
// Copyright 2023 Pixar
3
//
4
// Licensed under the Apache License, Version 2.0 (the "Apache License")
5
// with the following modification; you may not use this file except in
6
// compliance with the Apache License and the following modification to it:
7
// Section 6. Trademarks. is deleted and replaced with:
8
//
9
// 6. Trademarks. This License does not grant permission to use the trade
10
// names, trademarks, service marks, or product names of the Licensor
11
// and its affiliates, except as required to comply with Section 4(c) of
12
// the License and to reproduce the content of the NOTICE file.
13
//
14
// You may obtain a copy of the Apache License at
15
//
16
// http://www.apache.org/licenses/LICENSE-2.0
17
//
18
// Unless required by applicable law or agreed to in writing, software
19
// distributed under the Apache License with the above modification is
20
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
// KIND, either express or implied. See the Apache License for the specific
22
// language governing permissions and limitations under the Apache License.
23
//
24
25
#ifndef PXR_BASE_TS_TS_TEST_EVALUATOR_H
26
#define PXR_BASE_TS_TS_TEST_EVALUATOR_H
27
28
#include "
pxr/pxr.h
"
29
#include "
pxr/base/ts/api.h
"
30
#include "
pxr/base/ts/tsTest_SplineData.h
"
31
#include "
pxr/base/ts/tsTest_SampleTimes.h
"
32
#include "
pxr/base/ts/tsTest_Types.h
"
33
34
#include <vector>
35
36
PXR_NAMESPACE_OPEN_SCOPE
37
38
class
TS_API
TsTest_Evaluator
39
{
40
public
:
41
// Required. Evaluates a spline at the specified times.
42
virtual
TsTest_SampleVec
Eval(
43
const
TsTest_SplineData
&splineData,
44
const
TsTest_SampleTimes
&sampleTimes)
const
= 0;
45
46
// Optional. Produces samples at implementation-determined times,
47
// sufficient to produce a piecewise linear approximation of the spline with
48
// an absolute value error less than the specified tolerance. Default
49
// implementation returns no samples.
50
virtual
TsTest_SampleVec
Sample(
51
const
TsTest_SplineData
&splineData,
52
double
tolerance)
const
;
53
54
// Optional. Produce a copy of splineData with inner loops, if any, baked
55
// out into ordinary knots. Default implementation returns the input data
56
// unmodified.
57
virtual
TsTest_SplineData
BakeInnerLoops(
58
const
TsTest_SplineData
&splineData)
const
;
59
};
60
61
PXR_NAMESPACE_CLOSE_SCOPE
62
63
#endif
tsTest_SampleTimes.h
TsTest_SplineData
Definition:
tsTest_SplineData.h:39
TsTest_SampleVec
std::vector< TsTest_Sample > TsTest_SampleVec
Definition:
tsTest_Types.h:47
tsTest_SplineData.h
TsTest_SampleTimes
Definition:
tsTest_SampleTimes.h:37
api.h
pxr.h
TsTest_Evaluator
Definition:
tsTest_Evaluator.h:38
tsTest_Types.h
TS_API
#define TS_API
Definition:
api.h:41
PXR_NAMESPACE_OPEN_SCOPE
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition:
path.h:1432
PXR_NAMESPACE_CLOSE_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition:
pxr.h:91
pxr
base
ts
tsTest_Evaluator.h
Generated on Tue Dec 17 2024 03:41:17 for HDK by
1.8.6