VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
tableFn1D.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2013 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#pragma once
10
11
#include <stdio.h>
12
#include <vlutil/vlMachineTypes.h>
13
#include "
vrfutil/baseTableFn.h
"
14
#include "
vrfutil/rwReal.h
"
15
#include "
vrfutil/nLenRealVec.h
"
16
24
25
#include "
vrfutil/vrfutilDefines.h
"
26
class
DT_DLL_vrfutil
Dt1DTableFn
:
public
DtBaseTableFunction
27
{
28
public
:
29
31
Dt1DTableFn
();
32
34
Dt1DTableFn
(
const
DtString
& name,
DtReaderWriterRegistry
*
35
parentRegistry = NULL);
36
Dt1DTableFn
(
const
DtSymbolString& name,
DtReaderWriterRegistry
*
37
parentRegistry = NULL);
38
40
virtual
~
Dt1DTableFn
();
41
43
Dt1DTableFn
(
const
Dt1DTableFn
& orig);
44
46
Dt1DTableFn
(
const
DtString
& name,
const
Dt1DTableFn
& orig,
47
DtReaderWriterRegistry
* parentRegistry = NULL);
48
Dt1DTableFn
(
const
DtSymbolString& name,
const
Dt1DTableFn
& orig,
49
DtReaderWriterRegistry
* parentRegistry = NULL);
50
52
Dt1DTableFn
&
operator=
(
const
Dt1DTableFn
& orig);
53
54
bool
operator==
(
const
Dt1DTableFn
&)
const
;
55
57
virtual
bool
init
(
const
DtReal value);
58
62
virtual
bool
init
(
63
const
DtU32 n,
const
DtReal * domain,
const
DtReal * data);
64
66
virtual
bool
init
(
const
DtU32 n,
67
const
DtNLengthRealVector
& domain,
68
const
DtNLengthRealVector
& data);
69
73
virtual
const
char
*
readerWriterType
()
const
;
74
75
private
:
78
using
DtBaseTableFunction::init
;
79
80
public
:
81
83
virtual
DtReal
lookup
(DtReal coordinate1,...)
const
;
84
virtual
DtReal
lookup
(
const
DtReal * coordinates)
const
;
85
87
virtual
DtReal
integrate
(DtReal lower, DtReal upper,...)
const
;
88
90
virtual
void
getSelf
(DtlObjPtr args,
const
DtFilename& searchPath,
91
const
DtVariableBindingsList
& variableBindings);
92
94
virtual
void
putData
(FILE * fp,
int
indentLevel=0);
95
virtual
DtlObjPtr
getData
(DtlObjPtr args,
const
DtFilename& searchPath,
96
const
DtVariableBindingsList
& variableBindings);
97
98
protected
:
99
103
DtU32 findIndex(DtReal num)
const
;
104
105
protected
:
106
107
DtNLengthRealVector
myData
;
108
DtNLengthRealVector
myDomain
;
109
DtNLengthRealVector
myCollimatedData
;
110
DtReal *
mySlope
;
111
112
};
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)