@@ -28,6 +28,11 @@ namespace sdf
2828{
2929 // Inline bracket to help doxygen filtering.
3030 inline namespace SDF_VERSION_NAMESPACE {
31+ //
32+
33+ // Forward declarations.
34+ class ParserConfig ;
35+
3136 // / \brief Texture to be used on heightmaps.
3237 class SDFORMAT_VISIBLE HeightmapTexture
3338 {
@@ -42,6 +47,15 @@ namespace sdf
4247 // / an error code and message. An empty vector indicates no error.
4348 public: Errors Load (ElementPtr _sdf);
4449
50+ // / \brief Load the heightmap texture geometry based on a element pointer.
51+ // / This is *not* the usual entry point. Typical usage of the SDF DOM is
52+ // / through the Root object.
53+ // / \param[in] _sdf The SDF Element pointer
54+ // / \param[in] _config Parser configuration
55+ // / \return Errors, which is a vector of Error objects. Each Error includes
56+ // / an error code and message. An empty vector indicates no error.
57+ public: Errors Load (sdf::ElementPtr _sdf, const ParserConfig &_config);
58+
4559 // / \brief Get the heightmap texture's size.
4660 // / \return The size of the heightmap texture in meters.
4761 public: double Size () const ;
@@ -129,6 +143,15 @@ namespace sdf
129143 // / an error code and message. An empty vector indicates no error.
130144 public: Errors Load (ElementPtr _sdf);
131145
146+ // / \brief Load the heightmap geometry based on a element pointer.
147+ // / This is *not* the usual entry point. Typical usage of the SDF DOM is
148+ // / through the Root object.
149+ // / \param[in] _sdf The SDF Element pointer
150+ // / \param[in] _config Parser configuration
151+ // / \return Errors, which is a vector of Error objects. Each Error includes
152+ // / an error code and message. An empty vector indicates no error.
153+ public: Errors Load (ElementPtr _sdf, const ParserConfig &_config);
154+
132155 // / \brief Get the heightmap's URI.
133156 // / \return The URI of the heightmap data.
134157 public: std::string Uri () const ;
0 commit comments