VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfutil
1DTableFn.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/baseTableFunction.h
"
14
#include "
vrfutil/rwReal.h
"
15
#include "
vrfutil/nLengthRealVector.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
DtReaderWriter::SearchPaths
& searchPaths,
91
const
DtVariableBindingsList
& variableBindings);
92
94
virtual
void
putData
(FILE * fp,
int
indentLevel=0);
95
virtual
DtlObjPtr
getData
(DtlObjPtr args,
const
DtReaderWriter::SearchPaths
& searchPaths,
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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)