ANSYS::Nexus::GLTFWriter::Value Class Reference
Last update: 17.04.2023Values are objects for storing single and multiple numbers and strings. More...
#include <GLTFWriter.h>
Public Member Functions | |
virtual bool | Set (unsigned int count, const char **v)=0 |
virtual bool | Set (unsigned int count, const bool *v)=0 |
virtual bool | Set (unsigned int count, const char *v)=0 |
virtual bool | Set (unsigned int count, const short *v)=0 |
virtual bool | Set (unsigned int count, const unsigned short *v)=0 |
virtual bool | Set (unsigned int count, const int *v)=0 |
virtual bool | Set (unsigned int count, const unsigned int *v)=0 |
virtual bool | Set (unsigned int count, const float *v)=0 |
virtual bool | Set (unsigned int count, const double *v)=0 |
virtual bool | Set (const char *v1, const char *v2=0, const char *v3=0, const char *v4=0)=0 |
virtual bool | Set (double v1)=0 |
virtual bool | Set (double v1, double v2)=0 |
virtual bool | Set (double v1, double v2, double v3)=0 |
virtual bool | Set (double v1, double v2, double v3, double v4)=0 |
virtual bool | Append (const char *value)=0 |
virtual bool | Append (double value)=0 |
virtual unsigned int | Size () const =0 |
virtual const char * | elemS (unsigned int pos) const =0 |
virtual double | elemD (unsigned int pos) const =0 |
Static Public Member Functions | |
static Value * | Create (GLTF *gltf, const char *name, const Value *value=0) |
static Value * | Create (GLTF *gltf, const char *name, unsigned int count, const char **v) |
static Value * | Create (GLTF *gltf, const char *name, unsigned int count, const bool *v) |
static Value * | Create (GLTF *gltf, const char *name, unsigned int count, const char *v) |
static Value * | Create (GLTF *gltf, const char *name, unsigned int count, const short *v) |
static Value * | Create (GLTF *gltf, const char *name, unsigned int count, const unsigned short *v) |
static Value * | Create (GLTF *gltf, const char *name, unsigned int count, const int *v) |
static Value * | Create (GLTF *gltf, const char *name, unsigned int count, const unsigned int *v) |
static Value * | Create (GLTF *gltf, const char *name, unsigned int count, const float *v) |
static Value * | Create (GLTF *gltf, const char *name, unsigned int count, const double *v) |
static Value * | Create (GLTF *gltf, const char *name, const char *v1, const char *v2=0, const char *v3=0, const char *v4=0) |
static Value * | Create (GLTF *gltf, const char *name, double v1) |
static Value * | Create (GLTF *gltf, const char *name, double v1, double v2) |
static Value * | Create (GLTF *gltf, const char *name, double v1, double v2, double v3) |
static Value * | Create (GLTF *gltf, const char *name, double v1, double v2, double v3, double v4) |
Detailed Description
Values are objects for storing single and multiple numbers and strings.
Definition at line 25 of file GLTFValue.h.
Member Function Documentation
◆ Append() [1/2]
|
pure virtual |
Appends to the content of a value. Extends the size of the value.
- Returns
- Status of Set.
- Parameters
-
[in] value Element value to append
◆ Append() [2/2]
|
pure virtual |
Appends to the content of a value. Extends the size of the value.
- Returns
- Status of Set.
- Parameters
-
[in] value Element value to append
◆ Create() [1/15]
|
static |
Creates a value with 1-4 elements.
- Returns
- Value object. Do not delete this pointer.
- Parameters
-
[in] gltf GLTF object. [in] name Name of value. [in] v1 Initial content of value element 1. [in] v2 Optional content of value element 2. [in] v3 Optional content of value element 3. [in] v4 Optional content of value element 4.
◆ Create() [2/15]
|
static |
Creates a value with an optional content.
- Returns
- Value object. Do not delete this pointer.
- Parameters
-
[in] gltf GLTF object. [in] name Name of value. [in] value Optional, initial content of value.
- Examples
- Test002.cpp, Test007.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.
◆ Create() [3/15]
◆ Create() [4/15]
◆ Create() [5/15]
◆ Create() [6/15]
|
static |
Creates a value with 4 elements.
- Returns
- Value object. Do not delete this pointer.
- Parameters
-
[in] gltf GLTF object. [in] name Name of value. [in] v1 Initial content of value element 1. [in] v2 Initial content of value element 2. [in] v3 Initial content of value element 3. [in] v4 Initial content of value element 4.
◆ Create() [7/15]
◆ Create() [8/15]
◆ Create() [9/15]
◆ Create() [10/15]
◆ Create() [11/15]
◆ Create() [12/15]
◆ Create() [13/15]
◆ Create() [14/15]
◆ Create() [15/15]
◆ elemD()
|
pure virtual |
◆ elemS()
|
pure virtual |
◆ Set() [1/14]
|
pure virtual |
Resizes value to a 1 to 4 size element and sets the content.
- Returns
- Status of Set.
- Parameters
-
[in] v1 Element 1 value. [in] v2 Optional, element 1 value [in] v3 Optional, element 2 value [in] v4 Optional, element 3 value
◆ Set() [2/14]
|
pure virtual |
Resizes value to a single element and sets the content.
- Returns
- Status of Set.
- Parameters
-
[in] v1 Element 1 value.
◆ Set() [3/14]
|
pure virtual |
Resizes value to 2 elements and sets the content.
- Returns
- Status of Set.
- Parameters
-
[in] v1 Element 1 value. [in] v2 Element 2 value.
◆ Set() [4/14]
|
pure virtual |
Resizes value to 3 elements and sets the content.
- Returns
- Status of Set.
- Parameters
-
[in] v1 Element 1 value. [in] v2 Element 2 value. [in] v3 Element 3 value.
◆ Set() [5/14]
|
pure virtual |
Resizes value to 4 elements and sets the content.
- Returns
- Status of Set.
- Parameters
-
[in] v1 Element 1 value. [in] v2 Element 2 value. [in] v3 Element 3 value. [in] v4 Element 4 value.
◆ Set() [6/14]
|
pure virtual |
Resises value and sets the content of a value from a vector of values.
- Returns
- Status of Set.
- Parameters
-
[in] count Amount of v content to use. [in] v Elements values.
◆ Set() [7/14]
|
pure virtual |
Resises value and sets the content of a value from a vector of values.
- Returns
- Status of Set.
- Parameters
-
[in] count Amount of v content to use. [in] v Elements values.
◆ Set() [8/14]
|
pure virtual |
Resises value and sets the content of a value from a vector of values.
- Returns
- Status of Set.
- Parameters
-
[in] count Amount of v content to use. [in] v Elements values.
◆ Set() [9/14]
|
pure virtual |
Resises value and sets the content of a value from a vector of values.
- Returns
- Status of Set.
- Parameters
-
[in] count Amount of v content to use. [in] v Elements values.
◆ Set() [10/14]
|
pure virtual |
Resises value and sets the content of a value from a vector of values.
- Returns
- Status of Set.
- Parameters
-
[in] count Amount of v content to use. [in] v Elements values.
◆ Set() [11/14]
|
pure virtual |
Resises value and sets the content of a value from a vector of values.
- Returns
- Status of Set.
- Parameters
-
[in] count Amount of v content to use. [in] v Elements values.
◆ Set() [12/14]
|
pure virtual |
Resises value and sets the content of a value from a vector of values.
- Returns
- Status of Set.
- Parameters
-
[in] count Amount of v content to use. [in] v Elements values.
◆ Set() [13/14]
|
pure virtual |
Resises value and sets the content of a value from a vector of values.
- Returns
- Status of Set.
- Parameters
-
[in] count Amount of v content to use. [in] v Elements values.
◆ Set() [14/14]
|
pure virtual |
Resises value and sets the content of a value from a vector of values.
- Returns
- Status of Set.
- Parameters
-
[in] count Amount of v content to use. [in] v Elements values.
◆ Size()
|
pure virtual |
Returns number of entries in value.
- Returns
- Size of value.
The documentation for this class was generated from the following file:
- D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFValue.h