17 "title" :
"3D Distribution",
18 "description" :
"A distribution of points in 3D space.",
22 "VuoList_VuoDistribution3d"
37 const char *valueAsString =
"";
38 if (json_object_get_type(js) == json_type_string)
39 valueAsString = json_object_get_string(js);
43 if (strcmp(valueAsString,
"cube-surface") == 0)
44 value = VuoDistribution3d_CubeSurface;
45 else if (strcmp(valueAsString,
"sphere-volume") == 0)
46 value = VuoDistribution3d_SphereVolume;
47 else if (strcmp(valueAsString,
"sphere-surface") == 0)
48 value = VuoDistribution3d_SphereSurface;
58 char *valueAsString =
"cube-volume";
60 if (value == VuoDistribution3d_CubeSurface)
61 valueAsString =
"cube-surface";
62 else if (value == VuoDistribution3d_SphereVolume)
63 valueAsString =
"sphere-volume";
64 else if (value == VuoDistribution3d_SphereSurface)
65 valueAsString =
"sphere-surface";
67 return json_object_new_string(valueAsString);
88 char *valueAsString =
"Cube Volume";
90 if (value == VuoDistribution3d_CubeSurface)
91 valueAsString =
"Cube Surface";
92 else if (value == VuoDistribution3d_SphereVolume)
93 valueAsString =
"Sphere Volume";
94 else if (value == VuoDistribution3d_SphereSurface)
95 valueAsString =
"Sphere Surface";
97 return strdup(valueAsString);
105 return valueA == valueB;
113 return valueA < valueB;