-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afc3bb3
commit a20198c
Showing
14 changed files
with
532 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
Include/Model/Reader/v100/NMR_ModelReaderNode100_TriangleSet.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/*++ | ||
Copyright (C) 2019 3MF Consortium | ||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
--*/ | ||
|
||
#ifndef __NMR_MODELREADERNODE100_TRIANGLESET | ||
#define __NMR_MODELREADERNODE100_TRIANGLESET | ||
|
||
#include "Model/Reader/NMR_ModelReaderNode.h" | ||
#include "Model/Classes/NMR_ModelComponent.h" | ||
#include "Model/Classes/NMR_ModelObject.h" | ||
#include "Model/Classes/NMR_ModelTriangleSet.h" | ||
|
||
namespace NMR { | ||
|
||
class CModelReaderNode100_TriangleSet : public CModelReaderNode { | ||
protected: | ||
|
||
std::string m_sName; | ||
std::string m_sIdentifier; | ||
|
||
PModelTriangleSet m_pTriangleSet; | ||
|
||
virtual void OnAttribute(_In_z_ const nfChar * pAttributeName, _In_z_ const nfChar * pAttributeValue); | ||
virtual void OnNSChildElement(_In_z_ const nfChar* pChildName, _In_z_ const nfChar* pNameSpace, _In_ CXmlReader* pXMLReader); | ||
|
||
public: | ||
CModelReaderNode100_TriangleSet() = delete; | ||
CModelReaderNode100_TriangleSet(_In_ PModelWarnings pWarnings); | ||
|
||
virtual void parseXML(_In_ CXmlReader * pXMLReader); | ||
|
||
PModelTriangleSet createTriangleSet(); | ||
}; | ||
|
||
typedef std::shared_ptr <CModelReaderNode100_TriangleSet> PModelReaderNode100_TriangleSet; | ||
|
||
} | ||
|
||
#endif // __NMR_MODELREADERNODE100_TRIANGLESET |
55 changes: 55 additions & 0 deletions
55
Include/Model/Reader/v100/NMR_ModelReaderNode100_TriangleSetRef.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/*++ | ||
Copyright (C) 2019 3MF Consortium | ||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
--*/ | ||
|
||
#ifndef __NMR_MODELREADERNODE100_TRIANGLESETREF | ||
#define __NMR_MODELREADERNODE100_TRIANGLESETREF | ||
|
||
#include "Model/Reader/NMR_ModelReaderNode.h" | ||
|
||
namespace NMR { | ||
|
||
class CModelReaderNode100_TriangleSetRef : public CModelReaderNode { | ||
protected: | ||
|
||
uint32_t m_nIndex; | ||
|
||
virtual void OnAttribute(_In_z_ const nfChar * pAttributeName, _In_z_ const nfChar * pAttributeValue); | ||
public: | ||
CModelReaderNode100_TriangleSetRef() = delete; | ||
CModelReaderNode100_TriangleSetRef(_In_ PModelWarnings pWarnings); | ||
|
||
virtual void parseXML(_In_ CXmlReader * pXMLReader); | ||
|
||
uint32_t getIndex(); | ||
}; | ||
|
||
typedef std::shared_ptr <CModelReaderNode100_TriangleSetRef> PModelReaderNode100_TriangleSetRef; | ||
|
||
} | ||
|
||
#endif // __NMR_MODELREADERNODE100_TRIANGLESETREF |
62 changes: 62 additions & 0 deletions
62
Include/Model/Reader/v100/NMR_ModelReaderNode100_TriangleSets.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/*++ | ||
Copyright (C) 2019 3MF Consortium | ||
All rights reserved. | ||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
--*/ | ||
|
||
#ifndef __NMR_MODELREADERNODE100_TRIANGLESETS | ||
#define __NMR_MODELREADERNODE100_TRIANGLESETS | ||
|
||
#include "Model/Reader/NMR_ModelReaderNode.h" | ||
#include "Model/Classes/NMR_ModelComponent.h" | ||
#include "Model/Classes/NMR_ModelObject.h" | ||
#include "Model/Classes/NMR_ModelTriangleSet.h" | ||
|
||
namespace NMR { | ||
|
||
class CModelReaderNode100_TriangleSets : public CModelReaderNode { | ||
protected: | ||
CMesh * m_pMesh; | ||
CModel * m_pModel; | ||
|
||
std::vector <PModelTriangleSet> m_TriangleSets; | ||
|
||
virtual void OnAttribute(_In_z_ const nfChar * pAttributeName, _In_z_ const nfChar * pAttributeValue); | ||
virtual void OnNSChildElement(_In_z_ const nfChar * pChildName, _In_z_ const nfChar * pNameSpace, _In_ CXmlReader * pXMLReader); | ||
|
||
public: | ||
CModelReaderNode100_TriangleSets() = delete; | ||
CModelReaderNode100_TriangleSets(_In_ CModel * pModel, _In_ CMesh * pMesh, _In_ PModelWarnings pWarnings); | ||
|
||
virtual void parseXML(_In_ CXmlReader * pXMLReader); | ||
|
||
std::vector <PModelTriangleSet> getTriangleSets (); | ||
}; | ||
|
||
typedef std::shared_ptr <CModelReaderNode100_TriangleSets> PModelReaderNode100_TriangleSets; | ||
|
||
} | ||
|
||
#endif // __NMR_MODELREADERNODE100_TRIANGLESETS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.