VR-Forces 4.1 Class Documentation
tableFn1D.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2000 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: tableFn1D.h,v $ $Revision: 1.12 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef Dt1DTableFn_H_
13 #define Dt1DTableFn_H_
14 
15 #include <stdio.h>
16 #include <vlutil/vlMachineTypes.h>
17 #include "vrfutil/baseTableFn.h"
18 #include "vrfutil/rwReal.h"
19 #include "vrfutil/nLenRealVec.h"
20 
28 
29 #include "vrfutil/vrfutilDefines.h"
31 {
32 public:
33 
35  Dt1DTableFn();
36 
39  parentRegistry = NULL);
41  parentRegistry = NULL);
42 
44  virtual ~Dt1DTableFn();
45 
47  Dt1DTableFn(const Dt1DTableFn& orig);
48 
50  Dt1DTableFn(const DtString& name, const Dt1DTableFn& orig,
51  DtReaderWriterRegistry* parentRegistry = NULL);
52  Dt1DTableFn(const DtSymbolString& name, const Dt1DTableFn& orig,
53  DtReaderWriterRegistry* parentRegistry = NULL);
54 
56  Dt1DTableFn& operator=(const Dt1DTableFn& orig);
57 
59  virtual bool init(const DtReal value);
60 
64  virtual bool init(
65  const DtU32 n, const DtReal * domain, const DtReal * data);
66 
68  virtual bool init(const DtU32 n,
69  const DtNLengthRealVector & domain,
70  const DtNLengthRealVector & data);
71 
75  virtual const char* readerWriterType() const;
76 
77 private:
81 
82 public:
83 
85  virtual DtReal lookup(DtReal coordinate1,...) const;
86  virtual DtReal lookup(const DtReal * coordinates) const;
87 
89  virtual DtReal integrate(DtReal lower, DtReal upper,...) const;
90 
92  virtual void getSelf(DtlObjPtr args, const DtFilename& searchPath,
93  const DtVariableBindingsList& variableBindings);
94 
96  virtual void putData(FILE * fp, int indentLevel=0);
97  virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
98  const DtVariableBindingsList& variableBindings);
99 
100 protected:
101 
105  DtU32 findIndex(DtReal num) const;
106 
107 protected:
108 
112  DtReal * mySlope;
113 
114 };
115 
116 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)