VR-Forces 4.1 Class Documentation
tableFn1DReg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2000 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: tableFn1DReg.h,v $ $Revision: 1.14 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef Dt1DRegularTableFn_H_
13 #define Dt1DRegularTableFn_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 
27 
28 #include "vrfutil/vrfutilDefines.h"
30 {
31 public:
32 
35 
38  parentRegistry = NULL);
40  parentRegistry = NULL);
41 
43  Dt1DRegularTableFn(const DtReal bottom,
44  const DtReal top,
45  const DtReal inc,
46  const DtReal* data);
47 
49  virtual ~Dt1DRegularTableFn();
50 
53 
55  Dt1DRegularTableFn(const DtString& name, const Dt1DRegularTableFn& orig,
56  DtReaderWriterRegistry* parentRegistry = NULL);
57  Dt1DRegularTableFn(const DtSymbolString& name, const Dt1DRegularTableFn& orig,
58  DtReaderWriterRegistry* parentRegistry = NULL);
59 
62 
64  virtual bool init(const DtReal value);
65 
71  virtual bool init(const DtReal bottom, const DtReal top, const DtReal inc,
72  const DtReal* data);
73 
75  virtual bool init(const DtReal bottom, const DtReal top, const DtReal inc,
76  const DtNLengthRealVector& data);
77 
81  virtual const char* readerWriterType() const;
82 
83 private:
87 
88 public:
89 
91  virtual DtReal lookup(DtReal coordinate1,...) const;
92  virtual DtReal lookup(const DtReal* coordinates) const;
93 
95  virtual DtReal integrate(DtReal lower, DtReal upper,...) const;
96 
98  virtual void getSelf(DtlObjPtr args, const DtFilename& searchPath,
99  const DtVariableBindingsList& variableBindings);
100 
102  virtual void putData(FILE* fp, int indentLevel = 0);
103  virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
104  const DtVariableBindingsList& variableBindings);
105 
107  void putSelf(FILE *fp, int indentLevel = 0, bool writeUnspecified = false,
108  const DtFilename& path = DtReaderWriter::appPath());
109 
110 protected:
111 
112  DtReal mySpan;
117  DtReal * myDomain;
118  DtReal * mySlope;
119 
120 };
121 
122 #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)