ArcGIS Procedural Runtime  3.2.10650
List of all members | Public Member Functions
prtx::GeometryBuilder Class Reference

#include <Geometry.h>

Inheritance diagram for prtx::GeometryBuilder:
[legend]

Public Member Functions

uint32_t addMesh (const MeshPtr &mesh)
 
void addMeshes (const MeshPtrVector &meshes)
 
virtual GeometryPtr createShared (std::wstring *warnings=0) const
 
virtual GeometryPtr createSharedAndReset (std::wstring *warnings=0)
 
 GeometryBuilder ()
 
 GeometryBuilder (const Geometry &geometry)
 
void setURI (const URIPtr &uri)
 
virtual void setBool (const std::wstring &key, Bool val)
 
virtual void setInt (const std::wstring &key, int32_t val)
 
virtual void setFloat (const std::wstring &key, double val)
 
virtual void setString (const std::wstring &key, const std::wstring &val)
 
virtual void setBoolArray (const std::wstring &key, const BoolVector &val)
 
virtual void setIntArray (const std::wstring &key, const Int32Vector &val)
 
virtual void setFloatArray (const std::wstring &key, const DoubleVector &val)
 
virtual void setStringArray (const std::wstring &key, const WStringVector &val)
 
virtual void setBlindData (const std::wstring &key, void *val)
 
- Public Member Functions inherited from prtx::SharedPtrBuilder< Geometry >
SharedPtrBuilderoperator= (const SharedPtrBuilder &)=delete
 
 SharedPtrBuilder (const SharedPtrBuilder &)=delete
 

Detailed Description

Builder to create (immutable) Geometry instances.

Constructor & Destructor Documentation

◆ GeometryBuilder() [1/2]

prtx::GeometryBuilder::GeometryBuilder ( )

Constructs an empty GeometryBuilder.

◆ GeometryBuilder() [2/2]

prtx::GeometryBuilder::GeometryBuilder ( const Geometry geometry)

Constructs a GeometryBuilder initialized to the passed geometry.

Parameters
geometryGeometry to initialize builder with.

Member Function Documentation

◆ addMesh()

uint32_t prtx::GeometryBuilder::addMesh ( const MeshPtr mesh)

Adds a mesh to the builder.

Parameters
meshMesh to add.
Returns
index of newly inserted mesh in internal vector.

◆ addMeshes()

void prtx::GeometryBuilder::addMeshes ( const MeshPtrVector meshes)

Adds a vector of meshes to the builder.

Parameters
meshesMeshes to add.

◆ createShared()

virtual GeometryPtr prtx::GeometryBuilder::createShared ( std::wstring *  warnings = 0) const
virtual

Creates a geometry instance. Throws an exception if requirements are not met.

Parameters
[out]warningsOptional pointer to return warnings.
Returns
shared pointer to new Geometry instance.

Implements prtx::SharedPtrBuilder< Geometry >.

◆ createSharedAndReset()

virtual GeometryPtr prtx::GeometryBuilder::createSharedAndReset ( std::wstring *  warnings = 0)
virtual

Creates a geometry instance and resets the builder's state. Throws an exception if requirements are not met.

Parameters
[out]warningsOptional pointer to return warnings.
Returns
shared pointer to new Geometry instance.

Implements prtx::SharedPtrBuilder< Geometry >.

◆ setBlindData()

virtual void prtx::GeometryBuilder::setBlindData ( const std::wstring &  key,
void *  val 
)
virtual

Sets a blind data value.

Parameters
keyThe key of the value.
valThe blind data value to set.

Implements prtx::AttributableSetter.

◆ setBool()

virtual void prtx::GeometryBuilder::setBool ( const std::wstring &  key,
Bool  val 
)
virtual

◆ setBoolArray()

virtual void prtx::GeometryBuilder::setBoolArray ( const std::wstring &  key,
const BoolVector val 
)
virtual

Sets a boolean array.

Parameters
keyThe key of the array.
valVector with the values to set.

Implements prtx::AttributableSetter.

◆ setFloat()

virtual void prtx::GeometryBuilder::setFloat ( const std::wstring &  key,
double  val 
)
virtual

Sets a float value.

Parameters
keyThe key of the value.
valThe value to set.

Implements prtx::AttributableSetter.

◆ setFloatArray()

virtual void prtx::GeometryBuilder::setFloatArray ( const std::wstring &  key,
const DoubleVector val 
)
virtual

Sets a float array.

Parameters
keyThe key of the array.
valVector with the values to set.

Implements prtx::AttributableSetter.

◆ setInt()

virtual void prtx::GeometryBuilder::setInt ( const std::wstring &  key,
int32_t  val 
)
virtual

Sets an integer value.

Parameters
keyThe key of the value.
valThe value to set.

Implements prtx::AttributableSetter.

◆ setIntArray()

virtual void prtx::GeometryBuilder::setIntArray ( const std::wstring &  key,
const Int32Vector val 
)
virtual

Sets an integer array.

Parameters
keyThe key of the array.
valVector with the values to set.

Implements prtx::AttributableSetter.

◆ setString()

virtual void prtx::GeometryBuilder::setString ( const std::wstring &  key,
const std::wstring &  val 
)
virtual

Sets a string value.

Parameters
keyThe key of the string.
valThe string to set.

Implements prtx::AttributableSetter.

◆ setStringArray()

virtual void prtx::GeometryBuilder::setStringArray ( const std::wstring &  key,
const WStringVector val 
)
virtual

Sets a string array.

Parameters
keyThe key of the array.
valVector with the values to set.

Implements prtx::AttributableSetter.

◆ setURI()

void prtx::GeometryBuilder::setURI ( const URIPtr uri)

Sets the URI for the Geometry.

Parameters
uriURI for the geometry.

The documentation for this class was generated from the following file: