VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rwVector.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
13 
16 
17 #pragma once
18 
19 #include <matrix/vlVector.h>
20 #include "vrfutil/readerWriter.h"
21 #include "vrfutil/vrfutilDefines.h"
22 
24 {
25 public:
27  DtRwVector(const DtString& name = DtString::nullString(),
28  DtReaderWriterRegistry* parentRegistry = NULL);
29 
30  DtRwVector(const DtSymbolString& name,
31  DtReaderWriterRegistry* parentRegistry = NULL);
32 
34  DtRwVector(double x, double y, double z,
35  const DtString& name = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = NULL);
37 
38  DtRwVector(double x, double y, double z,
39  const DtSymbolString& name,
40  DtReaderWriterRegistry* parentRegistry = NULL);
41 
43  DtRwVector(const DtVector & fromVec,
44  const DtString& name = DtString::nullString(),
45  DtReaderWriterRegistry* parentRegistry = NULL);
46 
47  DtRwVector(const DtVector & fromVec,
48  const DtSymbolString& name,
49  DtReaderWriterRegistry* parentRegistry = NULL);
50 
52  DtRwVector(const DtRwVector & orig,
53  DtReaderWriterRegistry* parentRegistry = NULL);
54 
56  DtRwVector & operator=(const DtRwVector & orig);
57  DtRwVector & operator=(const DtVector & orig);
58 
59  virtual ~DtRwVector();
60 
63  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
64  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
67 
69  static const char* theXmlType();
70 
71  virtual const char* xmlType() const
72  {
73  return theXmlType();
74  }
76 
77  virtual void putData(FILE * fp, int indentLevel = 0);
78  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
79  const DtVariableBindingsList& variableBindings);
80 
81  virtual double distSquaredTo(const DtVector& point) const;
82 
86  virtual const char* readerWriterType() const;
87 
89  virtual DtString prettyPrint() const;
90 
91  bool operator==(const DtRwVector&) const;
92  bool operator!=(const DtRwVector& rhs) const { return !(*this == rhs); };
93 
94 protected:
95 
96 };
97 
98 
103 {
104 public:
106  DtRwOffsetVector(const DtString& name = DtString::nullString(),
107  DtReaderWriterRegistry* parentRegistry = NULL);
108 
109  DtRwOffsetVector(const DtSymbolString& name,
110  DtReaderWriterRegistry* parentRegistry = NULL);
111 
113  DtRwOffsetVector(double x, double y, double z,
114  const DtString& name = DtString::nullString(),
115  DtReaderWriterRegistry* parentRegistry = NULL);
116 
117  DtRwOffsetVector(double x, double y, double z,
118  const DtSymbolString& name,
119  DtReaderWriterRegistry* parentRegistry = NULL);
120 
122  DtRwOffsetVector(const DtVector & fromVec,
123  const DtString& name = DtString::nullString(),
124  DtReaderWriterRegistry* parentRegistry = NULL);
125 
126  DtRwOffsetVector(const DtVector & fromVec,
127  const DtSymbolString& name,
128  DtReaderWriterRegistry* parentRegistry = NULL);
129 
130  virtual ~DtRwOffsetVector();
131 
134  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
135  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
137  const DtVariableBindingsList& bindings = DtVariableBindingsList());
138 
140  static const char* theXmlType();
141 
142  virtual const char* xmlType() const
143  {
144  return theXmlType();
145  }
147 
149  DtRwOffsetVector(const DtRwOffsetVector & orig,
150  DtReaderWriterRegistry* parentRegistry = NULL);
151 
154  DtRwOffsetVector & operator=(const DtRwVector & orig);
155  DtRwOffsetVector & operator=(const DtVector & orig);
156 
160  virtual const char* readerWriterType() const;
161 
163  virtual void setFront(double);
164  double front() const;
165 
167  virtual void setRight(double);
168  double right() const;
169 
171  virtual void setUp(double);
172  double up() const;
173 };

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)