17 "title" :
"Projection Type",
18 "description" :
"Describes how an image is transformed when rendering with a perspective.",
19 "keywords" : [
"scale",
"distance",
"project",
"map",
"mapping" ],
22 "VuoList_VuoProjectionType"
34 const char *valueAsString =
"";
36 if (json_object_get_type(js) == json_type_string)
37 valueAsString = json_object_get_string(js);
41 if (! strcmp(valueAsString,
"perspective"))
42 value = VuoProjectionType_Perspective;
43 else if (! strcmp(valueAsString,
"affine"))
44 value = VuoProjectionType_Affine;
55 char *valueAsString =
"";
59 case VuoProjectionType_Perspective:
60 valueAsString =
"perspective";
62 case VuoProjectionType_Affine:
63 valueAsString =
"affine";
67 return json_object_new_string(valueAsString);
87 char *valueAsString =
"";
91 case VuoProjectionType_Perspective:
92 valueAsString =
"Perspective";
94 case VuoProjectionType_Affine:
95 valueAsString =
"Affine";
99 return strdup(valueAsString);