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

#include <Texture.h>

Inheritance diagram for prtx::TextureBuilder:
[legend]

Public Member Functions

TexturePtr createTexture (const prtx::URIPtr &uri, uint32_t width, uint32_t height, const Texture::PixelFormat &format, uint8_t *buffer)
 
TexturePtr createTextureAndReset (const prtx::URIPtr &uri, uint32_t width, uint32_t height, const Texture::PixelFormat &format, uint8_t *buffer)
 
TextureBuilderoperator= (const TextureBuilder &)=delete
 
virtual void setBlindData (const std::wstring &key, void *val)
 
virtual void setBool (const std::wstring &key, Bool val)
 
virtual void setBoolArray (const std::wstring &key, const std::vector< Bool > &val)
 
virtual void setFloat (const std::wstring &key, double val)
 
virtual void setFloatArray (const std::wstring &key, const std::vector< double > &val)
 
virtual void setInt (const std::wstring &key, int32_t val)
 
virtual void setIntArray (const std::wstring &key, const std::vector< int > &val)
 
virtual void setString (const std::wstring &key, const std::wstring &val)
 
virtual void setStringArray (const std::wstring &key, const WStringVector &val)
 
 TextureBuilder (const TextureBuilder &)=delete
 
- Public Member Functions inherited from prtx::AttributableSetter
virtual void setBoolArray (const std::wstring &key, const BoolVector &val)=0
 
virtual void setIntArray (const std::wstring &key, const Int32Vector &val)=0
 

Detailed Description

Builder for Texture instances. Set metadata values first and then use a create function to createXXX() an instance. See Texture for valid metadata keys.

Member Function Documentation

◆ createTexture()

TexturePtr prtx::TextureBuilder::createTexture ( const prtx::URIPtr uri,
uint32_t  width,
uint32_t  height,
const Texture::PixelFormat format,
uint8_t *  buffer 
)

Creates a Texture instance with the currently set metadata.

Parameters
uriURI of the Texture.
widthWidth of the Texture in pixels.
heightHeight of the Texture in pixels.
formatPixelFormat of the Texture.
bufferPixelbuffer. Size must be (width*height*Texture::getBytesPerPixel(format)). Instance takes ownership.

◆ createTextureAndReset()

TexturePtr prtx::TextureBuilder::createTextureAndReset ( const prtx::URIPtr uri,
uint32_t  width,
uint32_t  height,
const Texture::PixelFormat format,
uint8_t *  buffer 
)

Creates a Texture instance with the currently set metadata and resets the builder.

Parameters
uriURI of the Texture.
widthWidth of the Texture in pixels.
heightHeight of the Texture in pixels.
formatPixelFormat of the Texture.
bufferPixelbuffer. Size must be (width*height*Texture::getBytesPerPixel(format)). Instance takes ownership.

◆ setBlindData()

virtual void prtx::TextureBuilder::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::TextureBuilder::setBool ( const std::wstring &  key,
Bool  val 
)
virtual

Sets a boolean value.

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

Implements prtx::AttributableSetter.

◆ setFloat()

virtual void prtx::TextureBuilder::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::TextureBuilder::setFloatArray ( const std::wstring &  key,
const std::vector< double > &  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::TextureBuilder::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.

◆ setString()

virtual void prtx::TextureBuilder::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::TextureBuilder::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.


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