|
uint64_t | VuoSceneObject_getNextId (void) |
| Returns a number, unique within this process, for identifying a particlar scene object instance.
|
|
void | VuoSceneObject_free (void *sceneObject) |
| Frees the memory associated with the object.
|
|
VuoSceneObject | VuoSceneObject_makeEmpty (void) |
| Creates a new, empty scene object.
|
|
VuoSceneObject | VuoSceneObject_makeGroup (VuoList_VuoSceneObject childObjects, VuoTransform transform) |
| Creates a new scene object that can contain (and transform) other scene objects, but doesn't render anything itself.
|
|
VuoSceneObject | VuoSceneObject_makeMesh (VuoMesh mesh, VuoShader shader, VuoTransform transform) |
| Creates a visible (mesh) scene object.
|
|
VuoSceneObject | VuoSceneObject_makeQuad (VuoShader shader, VuoPoint3d center, VuoPoint3d rotation, VuoReal width, VuoReal height) |
| Returns a scene object that renders a quad with the specified shader.
|
|
VuoSceneObject | VuoSceneObject_makeQuadWithNormals (VuoShader shader, VuoPoint3d center, VuoPoint3d rotation, VuoReal width, VuoReal height) |
| Returns a scene object that renders a quad with the specified shader.
|
|
VuoSceneObject | VuoSceneObject_makeImage (VuoImage image, VuoPoint3d center, VuoPoint3d rotation, VuoReal size, VuoOrientation fixed, VuoReal alpha) |
| Returns an unlit scene object with the specified image .
|
|
VuoSceneObject | VuoSceneObject_makeLitImage (VuoImage image, VuoPoint3d center, VuoPoint3d rotation, VuoReal size, VuoOrientation fixed, VuoReal alpha, VuoColor highlightColor, VuoReal shininess) |
| Returns a lit scene object with the specified image .
|
|
VuoSceneObject | VuoSceneObject_makeCube (VuoTransform transform, VuoShader frontShader, VuoShader leftShader, VuoShader rightShader, VuoShader backShader, VuoShader topShader, VuoShader bottomShader) |
| Returns a scene object consisting of 6 child objects (square quads), each with its own shader.
|
|
VuoSceneObject | VuoSceneObject_makeCube1 (VuoTransform transform, VuoShader shader) |
| Returns a cube scene object with a single shader applied to all 6 sides.
|
|
VuoSceneObject | VuoSceneObject_makeCube_VuoShader (VuoTransform transform, VuoShader shader) |
| Creates a cube painted on all sides by shader .
|
|
VuoSceneObject | VuoSceneObject_makeCube_VuoImage (VuoTransform transform, VuoImage image) |
| Creates a cube painted on all sides by image .
|
|
VuoSceneObject | VuoSceneObject_makeCube_VuoColor (VuoTransform transform, VuoColor color) |
| Creates a cube painted on all sides by color .
|
|
VuoSceneObject | VuoSceneObject_makeCube_VuoCubemap (VuoTransform transform, VuoCubemap cubemap) |
| Creates a cube painted with a cubemap.
|
|
VuoSceneObject | VuoSceneObject_makeCubeMulti (VuoTransform transform, VuoInteger columns, VuoInteger rows, VuoInteger slices, VuoShader front, VuoShader left, VuoShader right, VuoShader back, VuoShader top, VuoShader bottom) |
| Creates a cube with subdivided faces and multiple shaders.
|
|
VuoSceneObject | VuoSceneObject_makeText (VuoText text, VuoFont font, VuoBoolean scaleWithScene, float wrapWidth) |
| Returns a scene object representing deferred-rendered text.
|
|
VuoSceneObject | VuoSceneObject_makePerspectiveCamera (VuoText name, VuoTransform transform, float fieldOfView, float distanceMin, float distanceMax) |
| Returns a perspective camera having the position and negative-rotation specified by transform (its scale is ignored).
|
|
VuoSceneObject | VuoSceneObject_makeStereoCamera (VuoText name, VuoTransform transform, VuoReal fieldOfView, VuoReal distanceMin, VuoReal distanceMax, VuoReal confocalDistance, VuoReal intraocularDistance) |
| Returns a stereoscopic camera having the position and negative-rotation specified by transform (its scale is ignored).
|
|
VuoSceneObject | VuoSceneObject_makeOrthographicCamera (VuoText name, VuoTransform transform, float width, float distanceMin, float distanceMax) |
| Returns an orthographic camera having the position and negative-rotation specified by transform (its scale is ignored).
|
|
VuoSceneObject | VuoSceneObject_makeFisheyeCamera (VuoText name, VuoTransform transform, VuoReal fieldOfView, float distanceMin, float distanceMax, VuoReal vignetteWidth, VuoReal vignetteSharpness) |
| Returns a fisheye camera having the position and negative-rotation specified by transform (its scale is ignored).
|
|
VuoSceneObject | VuoSceneObject_makeDefaultCamera (void) |
| Returns a perspective camera at (0,0,1), facing along -z, 90 degree FOV, and clip planes at 0.1 and 10.0.
|
|
bool | VuoSceneObject_find (VuoSceneObject sceneObject, VuoText nameToMatch, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject *foundObject) |
| Searches the scenegraph (depth-first) for a scene object with the given name.
|
|
bool | VuoSceneObject_findById (VuoSceneObject sceneObject, uint64_t idToMatch, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject *foundObject) |
| Searches the scenegraph (depth-first) for a scene object with the given id.
|
|
bool | VuoSceneObject_findWithType (VuoSceneObject sceneObject, VuoSceneObjectSubType typeToMatch, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject *foundObject) |
| Searches the scenegraph (depth-first) for the first scene object with the specified type.
|
|
bool | VuoSceneObject_findCamera (VuoSceneObject sceneObject, VuoText nameToMatch, VuoSceneObject *foundCamera) |
| Performs a depth-first search of the scenegraph.
|
|
bool | VuoSceneObject_isPopulated (VuoSceneObject sceneObject) |
| Returns true if the scene object has a non-empty type.
|
|
static VuoSceneObjectSubType | VuoSceneObject_typeFromCString (const char *typeString) |
| Returns the VuoSceneObjectSubType corresponding with the typeString .
|
|
static const char * | VuoSceneObject_cStringForType (VuoSceneObjectSubType type) |
| Returns a string constant representing type .
|
|
VuoSceneObject | VuoSceneObject_makeAmbientLight (VuoColor color, float brightness) |
| Returns an ambient light with the specified color and brightness (typically between 0 and 1).
|
|
VuoSceneObject | VuoSceneObject_makePointLight (VuoColor color, float brightness, VuoPoint3d position, float range, float sharpness) |
| Returns a point light (uniform emission in all directions).
|
|
VuoSceneObject | VuoSceneObject_makeSpotlight (VuoColor color, float brightness, VuoTransform transform, float cone, float range, float sharpness) |
| Returns a spot light (emists only in the specified direction).
|
|
void | VuoSceneObject_findLights (VuoSceneObject sceneObject, VuoColor *ambientColor, float *ambientBrightness, VuoList_VuoSceneObject *pointLights, VuoList_VuoSceneObject *spotLights) |
| Finds and returns all the lights in the scene, with their transforms applied.
|
|
void | VuoSceneObject_visit (const VuoSceneObject object, bool(^function)(const VuoSceneObject currentObject, float modelviewMatrix[16])) |
| Applies function to object and its child objects, without preserving changes to objects.
|
|
static void | VuoSceneObject_applyInternal (VuoSceneObject sceneObject, void(^function)(VuoSceneObject currentObject, float modelviewMatrix[16]), float modelviewMatrix[16]) |
| Helper for VuoSceneObject_apply.
|
|
void | VuoSceneObject_apply (VuoSceneObject object, void(^function)(VuoSceneObject currentObject, float modelviewMatrix[16])) |
| Applies function to object and its child objects, and outputs the modified object .
|
|
void | VuoSceneObject_transform (VuoSceneObject object, VuoTransform transform) |
| Applies a transformation to the sceneobject (combining it with its previous transform).
|
|
void | VuoSceneObject_translate (VuoSceneObject object, VuoPoint3d translation) |
| Moves the sceneobject in 3D space.
|
|
void | VuoSceneObject_scale (VuoSceneObject object, VuoPoint3d scale) |
| Scales the sceneobject in 3D space.
|
|
VuoText | VuoSceneObject_getName (VuoSceneObject object) |
| Returns the sceneobject's display name.
|
|
VuoList_VuoSceneObject | VuoSceneObject_getChildObjects (VuoSceneObject object) |
| Returns the list of this sceneobject's child sceneobjects.
|
|
VuoBlendMode | VuoSceneObject_getBlendMode (const VuoSceneObject object) |
| Returns the sceneobject's blend mode.
|
|
VuoSceneObjectSubType | VuoSceneObject_getType (const VuoSceneObject object) |
| Returns the sceneobject's type.
|
|
uint64_t | VuoSceneObject_getId (const VuoSceneObject object) |
| Returns the sceneobject's identification number (unique among objects in the currently-running composition).
|
|
VuoShader | VuoSceneObject_getShader (const VuoSceneObject object) |
| Returns the sceneobject's shader.
|
|
bool | VuoSceneObject_isRealSize (const VuoSceneObject object) |
| Returns true if the sceneobject should ignore rotations and scales, and be sized to match the shader's first image.
|
|
bool | VuoSceneObject_shouldPreservePhysicalSize (const VuoSceneObject object) |
| Returns true if the sceneobject should use the texture's scaleFactor and the backingScaleFactor to determine the rendered size.
|
|
VuoMesh | VuoSceneObject_getMesh (const VuoSceneObject object) |
| Returns the sceneobject's mesh.
|
|
VuoText | VuoSceneObject_getText (const VuoSceneObject object) |
| Returns the sceneobject's rendered text.
|
|
VuoFont | VuoSceneObject_getTextFont (const VuoSceneObject object) |
| Returns the sceneobject's font.
|
|
bool | VuoSceneObject_shouldTextScaleWithScene (const VuoSceneObject object) |
| Returns true if the sceneobject's text should change depending on the scene's rendering destination, or false if it should maintain its nominal size.
|
|
float | VuoSceneObject_getTextWrapWidth (const VuoSceneObject object) |
| Returns the width at which the sceneobject's rendered text should wrap.
|
|
float | VuoSceneObject_getCameraFieldOfView (const VuoSceneObject object) |
| Returns the sceneobject's field of view (for perspective cameras).
|
|
float | VuoSceneObject_getCameraWidth (const VuoSceneObject object) |
| Returns the sceneobject's camera width (for isometric cameras).
|
|
float | VuoSceneObject_getCameraDistanceMin (const VuoSceneObject object) |
| Returns the sceneobject's depth buffer minimum distance.
|
|
float | VuoSceneObject_getCameraDistanceMax (const VuoSceneObject object) |
| Returns the sceneobject's depth buffer maximum distance.
|
|
float | VuoSceneObject_getCameraVignetteWidth (const VuoSceneObject object) |
| Returns the sceneobject's vignette width (for fisheye cameras).
|
|
float | VuoSceneObject_getCameraVignetteSharpness (const VuoSceneObject object) |
| Returns the sceneobject's vignette sharpness (for fisheye cameras).
|
|
float | VuoSceneObject_getCameraIntraocularDistance (const VuoSceneObject object) |
| Returns the sceneobject's camera intraocular distance (for stereoscopic cameras).
|
|
float | VuoSceneObject_getCameraConfocalDistance (const VuoSceneObject object) |
| Returns the sceneobject's camera confocal distance (for stereoscopic cameras).
|
|
VuoColor | VuoSceneObject_getLightColor (const VuoSceneObject object) |
| Returns the sceneobject's light color.
|
|
float | VuoSceneObject_getLightBrightness (const VuoSceneObject object) |
| Returns the sceneobject's light brightness.
|
|
float | VuoSceneObject_getLightRange (const VuoSceneObject object) |
| Returns the sceneobject's light cone range.
|
|
float | VuoSceneObject_getLightSharpness (const VuoSceneObject object) |
| Returns the sceneobject's light cone sharpness.
|
|
float | VuoSceneObject_getLightCone (const VuoSceneObject object) |
| Returns the sceneobject's light cone angle.
|
|
VuoTransform | VuoSceneObject_getTransform (const VuoSceneObject object) |
| Returns the sceneobject's transform.
|
|
VuoPoint3d | VuoSceneObject_getTranslation (const VuoSceneObject object) |
| Returns the sceneobject's transform's translation.
|
|
void | VuoSceneObject_setType (VuoSceneObject object, VuoSceneObjectSubType type) |
| Changes the sceneobject's type.
|
|
void | VuoSceneObject_setId (VuoSceneObject object, uint64_t id) |
| Changes the sceneobject's identification number (should be unique among objects in the currently-running composition).
|
|
void | VuoSceneObject_setName (VuoSceneObject object, VuoText name) |
| Changes the sceneobject's display name.
|
|
void | VuoSceneObject_setChildObjects (VuoSceneObject object, VuoList_VuoSceneObject childObjects) |
| Changes the sceneobject's list of child objects.
|
|
void | VuoSceneObject_setMesh (VuoSceneObject object, VuoMesh mesh) |
| Changes the sceneobject's mesh.
|
|
void | VuoSceneObject_setTransform (VuoSceneObject object, VuoTransform transform) |
| Changes the sceneobject's transform.
|
|
void | VuoSceneObject_setTranslation (VuoSceneObject object, VuoPoint3d translation) |
| Changes the sceneobject's transform's translation.
|
|
void | VuoSceneObject_setScale (VuoSceneObject object, VuoPoint3d scale) |
| Changes the sceneobject's transform's scale.
|
|
void | VuoSceneObject_setShader (VuoSceneObject object, VuoShader shader) |
| Changes the sceneobject's shader.
|
|
void | VuoSceneObject_setFaceCulling (VuoSceneObject object, VuoMesh_FaceCulling faceCulling) |
| Sets the faceCulling on object and its child objects.
|
|
void | VuoSceneObject_setBlendMode (VuoSceneObject object, VuoBlendMode blendMode) |
| Sets the blendMode on object and its child objects.
|
|
void | VuoSceneObject_setRealSize (VuoSceneObject object, bool isRealSize) |
| Changes whether the sceneobject should ignore rotations and scales and be sized to match the shader's first image.
|
|
void | VuoSceneObject_setPreservePhysicalSize (VuoSceneObject object, bool shouldPreservePhysicalSize) |
| Changes whether the sceneobject should use the texture's scaleFactor and the backingScaleFactor to determine the rendered size.
|
|
void | VuoSceneObject_setText (VuoSceneObject object, VuoText text) |
| Changes the sceneobject's rendered text.
|
|
void | VuoSceneObject_setTextFont (VuoSceneObject object, VuoFont font) |
| Changes the sceneobject's font for rendered text.
|
|
void | VuoSceneObject_setCameraFieldOfView (VuoSceneObject object, float fieldOfView) |
| Changes the sceneobject's camera field of view (for perspective cameras).
|
|
void | VuoSceneObject_setCameraDistanceMin (VuoSceneObject object, float distanceMin) |
| Changes the sceneobject's depth buffer minimum distance.
|
|
void | VuoSceneObject_setCameraDistanceMax (VuoSceneObject object, float distanceMax) |
| Changes the sceneobject's depth buffer maximum distance.
|
|
VuoSceneObject | VuoSceneObject_copy (const VuoSceneObject object) |
| Creates a new scene object hierarchy that references the input object's meshes and shaders.
|
|
VuoBox | VuoSceneObject_bounds (const VuoSceneObject so) |
| Get the axis aligned bounding box of this sceneobject and its children (and its children's children).
|
|
bool | VuoSceneObject_meshBounds (const VuoSceneObject sceneObject, VuoBox *bounds, float matrix[16]) |
| Bounding box of the vertices for this SceneObject (taking into account transform).
|
|
void | VuoSceneObject_center (VuoSceneObject sceneObject) |
| Make the bounds center of all vertices == {0,0,0}.
|
|
void | VuoSceneObject_normalize (VuoSceneObject sceneObject) |
| Change the root sceneobject's transform such that the entire scenegraph renders within a 1x1x1 axis-aligned cube.
|
|
VuoSceneObject | VuoSceneObject_makeFromJson (json_object *js) |
| Decodes the JSON object js to create a new value.
|
|
json_object * | VuoSceneObject_getJson (const VuoSceneObject sceneObject) |
| Encodes value as a JSON object.
|
|
unsigned long | VuoSceneObject_getVertexCount (const VuoSceneObject sceneObject) |
| Returns the total number of vertices in the scene object (but not its descendants).
|
|
unsigned long | VuoSceneObject_getElementCount (const VuoSceneObject sceneObject) |
| Returns the total number of element in the scene object (but not its descendants).
|
|
void | VuoSceneObject_getStatistics (const VuoSceneObject sceneObject, unsigned long *descendantCount, unsigned long *totalVertexCount, unsigned long *totalElementCount) |
| Traverses the specified scenegraph and returns statistics about it.
|
|
static VuoList_VuoText | VuoSceneObject_findShaderNames (VuoSceneObject sceneObject) |
| Returns a list of all unique shader names in the sceneobject and its descendants.
|
|
char * | VuoSceneObject_getSummary (const VuoSceneObject sceneObject) |
| Produces a brief human-readable summary of value .
|
|
static void | VuoSceneObject_dump_internal (const VuoSceneObject sceneObject, unsigned int level) |
| Outputs information about the sceneobject (and its descendants).
|
|
void | VuoSceneObject_dump (const VuoSceneObject so) |
| Outputs information about the sceneobject (and its descendants).
|
|
VuoSceneObject | VuoSceneObject_flatten (const VuoSceneObject so) |
| Combines all meshes (including child objects) together into a single mesh.
|
|
static csgjs_model | VuoSceneObject_getCsgjsModel (const VuoSceneObject so) |
| Converts a VuoSceneObject to a csgjs_model .
|
|
static VuoSceneObject | VuoSceneObject_makeFromCsgjsModel (const csgjs_model &cm) |
| Converts a csgjs_model to a VuoSceneObject.
|
|
static float | convertQualityToEpsilon (float quality) |
|
VuoSceneObject | VuoSceneObject_union (VuoList_VuoSceneObject objects, float quality) |
| Returns the union of objects .
|
|
VuoSceneObject | VuoSceneObject_subtract (const VuoSceneObject a, const VuoSceneObject b, float quality) |
| Returns the boolean difference of a minus b .
|
|
VuoSceneObject | VuoSceneObject_intersect (VuoList_VuoSceneObject objects, float quality) |
| Returns the intersection of objects .
|
|