-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from HarutakaMatsumoto/develop
Implemented some CityObjectElements and enabled tesselate @HarutakaMatsumoto Thank you for your efforts.
- Loading branch information
Showing
22 changed files
with
382 additions
and
30 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
|
||
#include <citygml/object.h> | ||
|
||
|
||
namespace citygml { | ||
union LIBCITYGML_EXPORT ExternalObjectReference { | ||
std::string name; | ||
std::string uri; | ||
|
||
ExternalObjectReference(); | ||
~ExternalObjectReference(); | ||
}; | ||
|
||
class LIBCITYGML_EXPORT ExternalReference: public Object { | ||
friend class CityGMLFactory; | ||
|
||
protected: | ||
ExternalReference(std::string const& id); | ||
// ~ExternalReference() noexcept override; // Destructor | ||
public: | ||
std::string informationSystem; | ||
ExternalObjectReference externalObject; | ||
}; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include <citygml/featureobject.h> | ||
|
||
namespace citygml { | ||
|
||
class LIBCITYGML_EXPORT RectifiedGridCoverage : public FeatureObject | ||
{ | ||
friend class CityGMLFactory; | ||
|
||
protected: | ||
RectifiedGridCoverage(std::string const& id = "RectifiedGridCoverage"); | ||
}; | ||
|
||
LIBCITYGML_EXPORT std::ostream& operator<<( std::ostream& os, const RectifiedGridCoverage& o ); | ||
|
||
} | ||
|
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,30 @@ | ||
#pragma once | ||
|
||
#include "parser/gmlobjectparser.h" | ||
#include <citygml/externalreference.h> | ||
|
||
|
||
namespace citygml { | ||
class ExternalReferenceParser: public GMLObjectElementParser { | ||
public: | ||
ExternalReferenceParser(CityGMLDocumentParser& documentParser, CityGMLFactory& factory, std::shared_ptr<CityGMLLogger> logger, std::function<void(ExternalReference *)> callback); | ||
|
||
// ElementParser interface | ||
virtual std::string elementParserName() const override; | ||
virtual bool handlesElement(NodeType::XMLNode const& node) const override; | ||
|
||
protected: | ||
// CityGMLElementParser interaface | ||
virtual bool parseElementStartTag(NodeType::XMLNode const& node, Attributes & attribute) override; | ||
virtual bool parseElementEndTag(NodeType::XMLNode const& node, std::string const& characters) override; | ||
virtual bool parseChildElementStartTag(NodeType::XMLNode const& node, Attributes & attributes) override; | ||
virtual bool parseChildElementEndTag(NodeType::XMLNode const& node, std::string const& characters) override; | ||
|
||
// GMLObjectElementParser interface | ||
virtual Object* getObject() override; | ||
|
||
private: | ||
std::shared_ptr<ExternalReference> model; | ||
std::function<void(ExternalReference *)> callback; | ||
}; | ||
} |
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,34 @@ | ||
#pragma once | ||
|
||
#include "parser/gmlfeaturecollectionparser.h" | ||
|
||
#include <citygml/rectifiedgridcoverage.h> | ||
|
||
|
||
namespace citygml { | ||
|
||
class RectifiedGridCoverageParser : public GMLFeatureCollectionElementParser { | ||
public: | ||
RectifiedGridCoverageParser(CityGMLDocumentParser& documentParser, CityGMLFactory& factory, std::shared_ptr<CityGMLLogger> logger, std::function<void(RectifiedGridCoverage *)> callback); | ||
|
||
// ElementParser interface | ||
virtual std::string elementParserName() const override; | ||
virtual bool handlesElement(const NodeType::XMLNode &node) const override; | ||
protected: | ||
|
||
// CityGMLElementParser interface | ||
virtual bool parseElementStartTag(const NodeType::XMLNode& node, Attributes& attributes) override; | ||
virtual bool parseElementEndTag(const NodeType::XMLNode& node, const std::string& characters) override; | ||
virtual bool parseChildElementStartTag(const NodeType::XMLNode& node, Attributes& attributes) override; | ||
virtual bool parseChildElementEndTag(const NodeType::XMLNode& node, const std::string& characters) override; | ||
|
||
// GMLFeatureCollectionElementParser interface | ||
virtual FeatureObject* getFeatureObject() override; | ||
|
||
private: | ||
std::function<void(RectifiedGridCoverage*)> m_callback; | ||
RectifiedGridCoverage * m_model; | ||
}; | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <citygml/externalreference.h> | ||
|
||
namespace citygml { | ||
ExternalObjectReference::ExternalObjectReference() { | ||
} | ||
|
||
ExternalObjectReference::~ExternalObjectReference() { | ||
} | ||
|
||
ExternalReference::ExternalReference(std::string const& id) : Object(id) { | ||
} | ||
} |
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.