HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_Primitive::jsonWriter Class Reference

#include <GT_Primitive.h>

Public Member Functions

 jsonWriter (UT_JSONWriter &w, const char *primitive_name)
 
 ~jsonWriter ()
 
UT_JSONWriteroperator* ()
 

Detailed Description

The jsonWriter class can be used by sub-classes to simplify saving primitives to a JSON object. For example:

jsonWriter w("PolygonMesh");
myVertexList.save(*w);
myFaceOffsets.save(*w);

The constructor automatically starts an array. The destructor closes the array.

Definition at line 199 of file GT_Primitive.h.

Constructor & Destructor Documentation

GT_Primitive::jsonWriter::jsonWriter ( UT_JSONWriter w,
const char *  primitive_name 
)
GT_Primitive::jsonWriter::~jsonWriter ( )

Member Function Documentation

UT_JSONWriter& GT_Primitive::jsonWriter::operator* ( )
inline

Definition at line 204 of file GT_Primitive.h.


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