HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GD_IOJSON.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GD_IOJSON.h ( GA Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GD_IOJSON__
12 #define __GD_IOJSON__
13 
14 #include "GD_API.h"
15 #include <GA/GA_IOJSON.h>
16 
17 /// @brief Extension of GA_IOJSON which saves GD specific properties
18 ///
19 /// The GD_IOJSON saves two additional keywords
20 /// - "altitude" @n The altitude of the trim profiles/curves
21 /// - "trimregions" @n Trim region sections
22 class GD_API GD_IOJSON : public GA_IOJSON
23 {
24 public:
25  GD_IOJSON() {}
26  virtual ~GD_IOJSON() {}
27 
28 protected:
30  const char *token, const GA_LoadMap &map) const;
31  bool jsonSaveExtra(const GA_Detail &gdp, UT_JSONWriter &w,
32  const GA_SaveMap &map) const;
33 };
34 
35 #endif
36 
GD_IOJSON()
Definition: GD_IOJSON.h:25
virtual bool jsonSaveExtra(const GA_Detail &gdp, UT_JSONWriter &w, const GA_SaveMap &savemap) const
Used to pass options and map offset values during saving.
Definition: GA_SaveMap.h:48
virtual bool jsonLoadExtra(GA_Detail &gdp, UT_JSONParser &p, const char *token, const GA_LoadMap &loadmap) const
JSON reader class which handles parsing of JSON or bJSON files.
Definition: UT_JSONParser.h:72
Class which writes ASCII or binary JSON streams.
Definition: UT_JSONWriter.h:32
virtual ~GD_IOJSON()
Definition: GD_IOJSON.h:26
Options during loading.
Definition: GA_LoadMap.h:42
Extension of GA_IOJSON which saves GD specific properties.
Definition: GD_IOJSON.h:22
JSON I/O of geometry objects.
Definition: GA_IOJSON.h:37
#define GD_API
Definition: GD_API.h:10
Container class for all geometry.
Definition: GA_Detail.h:96
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:856