Skip to main content

Post-processing tools 2024 R2

ANSYS::AVZ::GLTFWriter::Value Class Reference

Last update: 16.07.2025

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::AVZ::GLTFWriter::Value:

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

Definition at line 25 of file GLTFValue.h.

Constructor & Destructor Documentation

◆ ~Value()

virtual ANSYS::AVZ::GLTFWriter::Value::~Value ( )
inlineprotectedvirtual

Definition at line 28 of file GLTFValue.h.

Member Function Documentation

◆ Append() [1/2]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Append ( const char *  value)
pure virtual

Appends to the content of a value. Extends the size of the value.

Returns
Status of Set.
Parameters
[in]valueElement value to append

◆ Append() [2/2]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Append ( double  value)
pure virtual

Appends to the content of a value. Extends the size of the value.

Returns
Status of Set.
Parameters
[in]valueElement value to append

◆ Create() [1/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
const char *  v1,
const char *  v2 = 0,
const char *  v3 = 0,
const char *  v4 = 0 
)
static

Creates a value with 1-4 elements.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]v1Initial content of value element 1.
[in]v2Optional content of value element 2.
[in]v3Optional content of value element 3.
[in]v4Optional content of value element 4.

◆ Create() [2/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
const Value *  value = 0 
)
static

Creates a value with an optional content.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]valueOptional, initial content of value.

◆ Create() [3/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
double  v1 
)
static

Creates a value with a single element.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]v1Initial content of value element 1.

◆ Create() [4/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
double  v1,
double  v2 
)
static

Creates a value with 2 elements.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]v1Initial content of value element 1.
[in]v2Initial content of value element 2.

◆ Create() [5/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
double  v1,
double  v2,
double  v3 
)
static

Creates a value with 3 elements.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]v1Initial content of value element 1.
[in]v2Initial content of value element 2.
[in]v3Initial content of value element 3.

◆ Create() [6/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
double  v1,
double  v2,
double  v3,
double  v4 
)
static

Creates a value with 4 elements.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]v1Initial content of value element 1.
[in]v2Initial content of value element 2.
[in]v3Initial content of value element 3.
[in]v4Initial content of value element 4.

◆ Create() [7/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
unsigned int  count,
const bool *  v 
)
static

Creates a value from a vector of values.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]countAmount of v content to use
[in]vInitial content of value elements.

◆ Create() [8/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
unsigned int  count,
const char **  v 
)
static

Creates a value from a vector of values.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]countAmount of v content to use
[in]vInitial content of value elements.

◆ Create() [9/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
unsigned int  count,
const char *  v 
)
static

Creates a value from a vector of values.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]countAmount of v content to use
[in]vInitial content of value elements.

◆ Create() [10/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
unsigned int  count,
const double *  v 
)
static

Creates a value from a vector of values.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]countAmount of v content to use
[in]vInitial content of value elements.

◆ Create() [11/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
unsigned int  count,
const float *  v 
)
static

Creates a value from a vector of values.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]countAmount of v content to use
[in]vInitial content of value elements.

◆ Create() [12/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
unsigned int  count,
const int *  v 
)
static

Creates a value from a vector of values.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]countAmount of v content to use
[in]vInitial content of value elements.

◆ Create() [13/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
unsigned int  count,
const short *  v 
)
static

Creates a value from a vector of values.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]countAmount of v content to use
[in]vInitial content of value elements.

◆ Create() [14/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
unsigned int  count,
const unsigned int *  v 
)
static

Creates a value from a vector of values.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]countAmount of v content to use
[in]vInitial content of value elements.

◆ Create() [15/15]

static Value * ANSYS::AVZ::GLTFWriter::Value::Create ( GLTF *  gltf,
const char *  name,
unsigned int  count,
const unsigned short *  v 
)
static

Creates a value from a vector of values.

Returns
Value object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]nameName of value.
[in]countAmount of v content to use
[in]vInitial content of value elements.

◆ elemD()

virtual double ANSYS::AVZ::GLTFWriter::Value::elemD ( unsigned int  pos) const
pure virtual

Returns value of string element

Returns
Value element at position
Parameters
[in]posIndex of element

◆ elemS()

virtual const char * ANSYS::AVZ::GLTFWriter::Value::elemS ( unsigned int  pos) const
pure virtual

Returns value of string element

Returns
Value element at position
Parameters
[in]posIndex of element

◆ Set() [1/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( const char *  v1,
const char *  v2 = 0,
const char *  v3 = 0,
const char *  v4 = 0 
)
pure virtual

Resizes value to a 1 to 4 size element and sets the content.

Returns
Status of Set.
Parameters
[in]v1Element 1 value.
[in]v2Optional, element 1 value
[in]v3Optional, element 2 value
[in]v4Optional, element 3 value

◆ Set() [2/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( double  v1)
pure virtual

Resizes value to a single element and sets the content.

Returns
Status of Set.
Parameters
[in]v1Element 1 value.

◆ Set() [3/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( double  v1,
double  v2 
)
pure virtual

Resizes value to 2 elements and sets the content.

Returns
Status of Set.
Parameters
[in]v1Element 1 value.
[in]v2Element 2 value.

◆ Set() [4/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( double  v1,
double  v2,
double  v3 
)
pure virtual

Resizes value to 3 elements and sets the content.

Returns
Status of Set.
Parameters
[in]v1Element 1 value.
[in]v2Element 2 value.
[in]v3Element 3 value.

◆ Set() [5/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( double  v1,
double  v2,
double  v3,
double  v4 
)
pure virtual

Resizes value to 4 elements and sets the content.

Returns
Status of Set.
Parameters
[in]v1Element 1 value.
[in]v2Element 2 value.
[in]v3Element 3 value.
[in]v4Element 4 value.

◆ Set() [6/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( unsigned int  count,
const bool *  v 
)
pure virtual

Resises value and sets the content of a value from a vector of values.

Returns
Status of Set.
Parameters
[in]countAmount of v content to use.
[in]vElements values.

◆ Set() [7/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( unsigned int  count,
const char **  v 
)
pure virtual

Resises value and sets the content of a value from a vector of values.

Returns
Status of Set.
Parameters
[in]countAmount of v content to use.
[in]vElements values.

◆ Set() [8/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( unsigned int  count,
const char *  v 
)
pure virtual

Resises value and sets the content of a value from a vector of values.

Returns
Status of Set.
Parameters
[in]countAmount of v content to use.
[in]vElements values.

◆ Set() [9/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( unsigned int  count,
const double *  v 
)
pure virtual

Resises value and sets the content of a value from a vector of values.

Returns
Status of Set.
Parameters
[in]countAmount of v content to use.
[in]vElements values.

◆ Set() [10/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( unsigned int  count,
const float *  v 
)
pure virtual

Resises value and sets the content of a value from a vector of values.

Returns
Status of Set.
Parameters
[in]countAmount of v content to use.
[in]vElements values.

◆ Set() [11/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( unsigned int  count,
const int *  v 
)
pure virtual

Resises value and sets the content of a value from a vector of values.

Returns
Status of Set.
Parameters
[in]countAmount of v content to use.
[in]vElements values.

◆ Set() [12/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( unsigned int  count,
const short *  v 
)
pure virtual

Resises value and sets the content of a value from a vector of values.

Returns
Status of Set.
Parameters
[in]countAmount of v content to use.
[in]vElements values.

◆ Set() [13/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( unsigned int  count,
const unsigned int *  v 
)
pure virtual

Resises value and sets the content of a value from a vector of values.

Returns
Status of Set.
Parameters
[in]countAmount of v content to use.
[in]vElements values.

◆ Set() [14/14]

virtual bool ANSYS::AVZ::GLTFWriter::Value::Set ( unsigned int  count,
const unsigned short *  v 
)
pure virtual

Resises value and sets the content of a value from a vector of values.

Returns
Status of Set.
Parameters
[in]countAmount of v content to use.
[in]vElements values.

◆ Size()

virtual unsigned int ANSYS::AVZ::GLTFWriter::Value::Size ( ) const
pure virtual

Returns number of entries in value.

Returns
Size of value.

The documentation for this class was generated from the following file:
  • D:/Product-src/webgl_viewer/gltfwriterlib/include/GLTFValue.h

Connect with Ansys