VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
tableFn1DReg.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
23
24
#include "
vrfutil/vrfutilDefines.h
"
25
class
DT_DLL_vrfutil
Dt1DRegularTableFn
:
public
DtBaseTableFunction
26
{
27
public
:
28
30
Dt1DRegularTableFn
();
31
33
Dt1DRegularTableFn
(
const
DtString
& name,
DtReaderWriterRegistry
*
34
parentRegistry = NULL);
35
Dt1DRegularTableFn
(
const
DtSymbolString& name,
DtReaderWriterRegistry
*
36
parentRegistry = NULL);
37
39
Dt1DRegularTableFn
(
const
DtReal bottom,
40
const
DtReal top,
41
const
DtReal inc,
42
const
DtReal* data);
43
45
virtual
~
Dt1DRegularTableFn
();
46
48
Dt1DRegularTableFn
(
const
Dt1DRegularTableFn
& orig);
49
51
Dt1DRegularTableFn
(
const
DtString
& name,
const
Dt1DRegularTableFn
& orig,
52
DtReaderWriterRegistry
* parentRegistry = NULL);
53
Dt1DRegularTableFn
(
const
DtSymbolString& name,
const
Dt1DRegularTableFn
& orig,
54
DtReaderWriterRegistry
* parentRegistry = NULL);
55
57
Dt1DRegularTableFn
&
operator=
(
const
Dt1DRegularTableFn
& orig);
58
60
virtual
bool
init
(
const
DtReal value);
61
67
virtual
bool
init
(
const
DtReal bottom,
const
DtReal top,
const
DtReal inc,
68
const
DtReal* data);
69
71
virtual
bool
init
(
const
DtReal bottom,
const
DtReal top,
const
DtReal inc,
72
const
DtNLengthRealVector
& data);
73
77
virtual
const
char
*
readerWriterType
()
const
;
78
79
bool
operator==
(
const
Dt1DRegularTableFn
&)
const
;
80
81
private
:
84
using
DtBaseTableFunction::init
;
85
86
public
:
87
89
virtual
DtReal
lookup
(DtReal coordinate1,...)
const
;
90
virtual
DtReal
lookup
(
const
DtReal* coordinates)
const
;
91
93
virtual
DtReal
integrate
(DtReal lower, DtReal upper,...)
const
;
94
96
virtual
void
getSelf
(DtlObjPtr args,
const
DtFilename& searchPath,
97
const
DtVariableBindingsList
& variableBindings);
98
100
virtual
void
putData
(FILE* fp,
int
indentLevel = 0);
101
virtual
DtlObjPtr
getData
(DtlObjPtr args,
const
DtFilename& searchPath,
102
const
DtVariableBindingsList
& variableBindings);
103
105
void
putSelf
(FILE *fp,
int
indentLevel = 0,
bool
writeUnspecified =
false
,
106
const
DtFilename& path =
DtReaderWriter::appPath
());
107
108
protected
:
109
110
DtReal
mySpan
;
111
DtRwReal
myDomainTop
;
112
DtRwReal
myDomainBottom
;
113
DtRwReal
myInc
;
114
DtNLengthRealVector
myData
;
115
DtReal *
myDomain
;
116
DtReal *
mySlope
;
117
118
};
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
)