VR-Forces 4.5 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(const DtString& name, const DtRwVector & orig,
57  DtReaderWriterRegistry* parentRegistry = NULL);
58 
60  DtRwVector & operator=(const DtRwVector & orig);
61  DtRwVector & operator=(const DtVector & orig);
62 
63  virtual ~DtRwVector();
64 
67  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
68  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
71 
73  static const char* theXmlType();
74 
75  virtual const char* xmlType() const
76  {
77  return theXmlType();
78  }
80 
81  virtual void putData(std::string& fp, int indentLevel = 0);
82  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
83  const DtVariableBindingsList& variableBindings);
84 
85  virtual double distSquaredTo(const DtVector& point) const;
86 
90  virtual const char* readerWriterType() const;
91 
93  virtual DtString prettyPrint() const;
94 
95  bool operator==(const DtRwVector&) const;
96  bool operator!=(const DtRwVector& rhs) const { return !(*this == rhs); };
97 
99  virtual double value() const { return magnitudeSquared(); };
100 
101 protected:
102 
103 };
104 
105 
110 {
111 public:
113  DtRwOffsetVector(const DtString& name = DtString::nullString(),
114  DtReaderWriterRegistry* parentRegistry = NULL);
115 
116  DtRwOffsetVector(const DtSymbolString& name,
117  DtReaderWriterRegistry* parentRegistry = NULL);
118 
120  DtRwOffsetVector(double x, double y, double z,
121  const DtString& name = DtString::nullString(),
122  DtReaderWriterRegistry* parentRegistry = NULL);
123 
124  DtRwOffsetVector(double x, double y, double z,
125  const DtSymbolString& name,
126  DtReaderWriterRegistry* parentRegistry = NULL);
127 
129  DtRwOffsetVector(const DtVector & fromVec,
130  const DtString& name = DtString::nullString(),
131  DtReaderWriterRegistry* parentRegistry = NULL);
132 
133  DtRwOffsetVector(const DtVector & fromVec,
134  const DtSymbolString& name,
135  DtReaderWriterRegistry* parentRegistry = NULL);
136 
137  DtRwOffsetVector(const DtString& name, const DtRwOffsetVector & fromVec,
138  DtReaderWriterRegistry* parentRegistry = NULL);
139 
140  virtual ~DtRwOffsetVector();
141 
144  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
145  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
147  const DtVariableBindingsList& bindings = DtVariableBindingsList());
148  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
149  const DtVariableBindingsList& variableBindings);
150 
152  static const char* theXmlType();
153 
154  virtual const char* xmlType() const
155  {
156  return theXmlType();
157  }
159 
161  DtRwOffsetVector(const DtRwOffsetVector & orig,
162  DtReaderWriterRegistry* parentRegistry = NULL);
163 
166  DtRwOffsetVector & operator=(const DtRwVector & orig);
167  DtRwOffsetVector & operator=(const DtVector & orig);
168 
172  virtual const char* readerWriterType() const;
173 
175 
176  virtual void setFront(double);
177  virtual double front() const;
179 
181 
182  virtual void setRight(double);
183  virtual double right() const;
185 
187 
188  virtual void setUp(double);
189  virtual double up() const;
191 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)