VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwSphere.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include "vrfutil/vrfutilDefines.h"
18 #include "geometry/sphere.h"
19 #include "geometry/point.h"
21 
25 
27 {
28 public:
30  DtRwSphere(const DtVector& newCenter, double newRadius);
31 
33  DtRwSphere(const DtString& name, const DtVector& newCenter, double newRadius,
34  DtReaderWriterRegistry* const parentRegistry = NULL);
35 
36  DtRwSphere(const DtSymbolString& name, const DtVector& newCenter, double newRadius,
37  DtReaderWriterRegistry* const parentRegistry = NULL);
38 
39  DtRwSphere(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
40  DtRwSphere(const DtSymbolString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
41 
43  DtRwSphere(const DtString& name, const DtSphere&
44  fromBoundingVolume, DtReaderWriterRegistry* const parentRegistry = NULL);
45 
46  DtRwSphere(const DtSymbolString& name, const DtSphere&
47  fromBoundingVolume, DtReaderWriterRegistry* const parentRegistry = NULL);
48 
50  DtRwSphere(const DtRwSphere& orig);
51 
53  DtRwSphere(const DtString& name, const DtRwSphere&
54  fromRwBoundingVolume, DtReaderWriterRegistry* const parentRegistry = NULL);
55 
56  DtRwSphere(const DtSymbolString& name, const DtRwSphere&
57  fromRwBoundingVolume, DtReaderWriterRegistry* const parentRegistry = NULL);
58 
60  virtual ~DtRwSphere();
61 
63  DtRwSphere & operator=(const DtRwSphere & orig);
64  DtRwSphere & operator=(const DtSphere & orig);
65 
66  DtVector centerVector() const;
67 
68  virtual void putData(std::string& fp, int indentLevel = 0);
69  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
70  const DtVariableBindingsList& variableBindings);
71 
75  virtual const char* readerWriterType() const;
76 
77  virtual bool operator==(const DtRwSphere&) const;
78 
81  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
82  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
85 
87  static const char* theXmlType();
88 
89  virtual const char* xmlType() const
90  {
91  return theXmlType();
92  }
94 
95 protected:
96 
97 };
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
Definition: sphere.h:22
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
Definition: readerWriter.h:85
File: rwSphere.h.
Definition: rwSphere.h:26
Definition: readerWriterRegistry.h:39
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
virtual const char * xmlType() const
Routines to archive/dearchive from an XML Environment.
Definition: rwSphere.h:89
virtual void putData(std::string &fp, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
DT_DLL_readerWriter std::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)