Vuo  2.3.2
Classes | Functions
VuoRenderedLayers.h File Reference

Description

VuoRenderedLayers C type definition.

Definition in file VuoRenderedLayers.h.

Go to the source code of this file.

Classes

struct  VuoRenderedLayers
 A snapshot of a window's state: the window itself and its most recent pointer interactions, dimensions, and layers. More...
 

Functions

VuoRenderedLayers VuoRenderedLayers_makeEmpty (void)
 Creates a VuoRenderedLayers that doesn't yet store any information about rendered items or the rendering destination. More...
 
void VuoRenderedLayers_setInteractions (VuoRenderedLayers renderedLayers, VuoList_VuoInteraction interactions)
 Populates part of the information stored in the VuoRenderedLayers instance. More...
 
void VuoRenderedLayers_setRootSceneObject (VuoRenderedLayers renderedLayers, VuoSceneObject rootSceneObject)
 Populates part of the information stored in the VuoRenderedLayers instance. More...
 
void VuoRenderedLayers_setWindow (VuoRenderedLayers renderedLayers, VuoWindowReference window)
 Populates part of the information stored in the VuoRenderedLayers instance. More...
 
VuoList_VuoInteraction VuoRenderedLayers_getInteractions (const VuoRenderedLayers renderedLayers)
 Returns the list of interactions (if any). More...
 
VuoSceneObject VuoRenderedLayers_getRootSceneObject (const VuoRenderedLayers renderedLayers)
 Returns the root sceneobject (if any). More...
 
bool VuoRenderedLayers_getRenderingDimensions (const VuoRenderedLayers renderedLayers, unsigned long int *pixelsWide, unsigned long int *pixelsHigh, float *backingScaleFactor) VuoWarnUnusedResult
 If the requested piece of information has been populated, returns true and passes it through the last argument(s). More...
 
bool VuoRenderedLayers_getWindow (const VuoRenderedLayers renderedLayers, VuoWindowReference *window) VuoWarnUnusedResult
 Outputs the window reference via the second argument, if it's been populated, and returns true. More...
 
bool VuoRenderedLayers_windowChanged (const VuoRenderedLayers accumulatedRenderedLayers, const VuoRenderedLayers newerRenderedLayers)
 Returns true if the window in newerRenderedLayers is a change from accumulatedRenderedLayers. More...
 
void VuoRenderedLayers_update (VuoRenderedLayers accumulatedRenderedLayers, const VuoRenderedLayers newerRenderedLayers, bool *renderingDimensionsChanged)
 Updates accumulatedRenderedLayers with the values that are populated in newerRenderedLayers. More...
 
VuoRenderedLayers VuoRenderedLayers_make (VuoSceneObject rootSceneObject, unsigned long int pixelsWide, unsigned long int pixelsHigh, float backingScaleFactor, VuoList_VuoInteraction interactions)
 Creates a VuoRenderedLayers with the given rendering root layer, rendering dimensions, and no window. More...
 
VuoRenderedLayers VuoRenderedLayers_makeWithWindow (VuoSceneObject rootSceneObject, unsigned long int pixelsWide, unsigned long int pixelsHigh, float backingScaleFactor, VuoWindowReference window, VuoList_VuoInteraction interactions)
 Creates a VuoRenderedLayers with the given rendering root layer, rendering dimensions, and window. More...
 
bool VuoRenderedLayers_findLayer (VuoRenderedLayers renderedLayers, VuoText layerName, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject *foundObject) VuoWarnUnusedResult
 Finds the layer with the given name, along with its ancestor layers. More...
 
bool VuoRenderedLayers_findLayerId (VuoRenderedLayers renderedLayers, uint64_t layerId, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject *foundObject) VuoWarnUnusedResult
 Finds the layer with the given ID, along with its ancestor layers. More...
 
bool VuoRenderedLayers_getTransformedLayer (VuoRenderedLayers renderedLayers, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject targetObject, VuoPoint2d *layerCenter, VuoPoint2d layerCorners[4], bool includeChildrenInBounds) VuoWarnUnusedResult
 Outputs the center and corner points of the layer with the given name, as transformed in renderedLayers. More...
 
bool VuoRenderedLayers_getTransformedPoint (VuoRenderedLayers renderedLayers, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject targetObject, VuoPoint2d point, VuoPoint2d *transformedPoint) VuoWarnUnusedResult
 Outputs a point as transformed by ancestorObjects and targetObject. More...
 
bool VuoRenderedLayers_getInverseTransformedPoint (VuoRenderedLayers renderedLayers, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject targetObject, VuoPoint2d point, VuoPoint2d *inverseTransformedPoint) VuoWarnUnusedResult
 Transform point from world to local coordinates. More...
 
bool VuoRenderedLayers_getInverseTransformedPointLayer (VuoRenderedLayers renderedLayers, uint64_t targetLayer, VuoPoint2d point, VuoPoint2d *localPoint) VuoWarnUnusedResult
 Transform a world point to targetObject local coordinates. More...
 
bool VuoRenderedLayers_getRect (VuoRenderedLayers renderedLayers, VuoSceneObject layer, VuoRectangle *rect) VuoWarnUnusedResult
 Get a axis-aligned bounding rect in model space (transformed by layer) in Vuo coordinates for a layer and its children. More...
 
VuoPoint2d VuoRenderedLayers_getTextSize (VuoRenderedLayers renderedLayers, VuoText text, VuoFont font, bool scaleWithScene, float verticalScale, float rotationZ, float wrapWidth, bool includeTrailingWhiteSpace)
 Outputs the size, in Vuo Coordinates, of a text layer (real-size or scaled). More...
 
VuoRectangle VuoRenderedLayers_getBoundingBox (VuoPoint2d layerCorners[4])
 Returns the axis-aligned bounding box for the 4 points. More...
 
bool VuoRenderedLayers_isPointInQuad (VuoPoint2d corners[4], VuoPoint2d point)
 Returns true if the given point is within (or on the boundary) of the quad with the given corner points. More...
 
bool VuoRenderedLayers_isPointInLayer (VuoRenderedLayers renderedLayers, VuoText layerName, VuoPoint2d point)
 Returns true if the given point is within (or on the boundary) of the layer with the given name, or any of its children. More...
 
bool VuoRenderedLayers_isPointInLayerId (VuoRenderedLayers renderedLayers, uint64_t layerId, VuoPoint2d point)
 Returns true if the given point is within (or on the boundary) of the layer with the given id, or any of its children. More...
 
void VuoRenderedLayers_getEventsInLayer (VuoRenderedLayers renderedLayers, uint64_t id, bool *anyHover, bool *anyPressed, bool *anyReleased, bool *anyClicked)
 Iterates through all interactions and tests for input events over the layer of layerName. More...
 
VuoRenderedLayers VuoRenderedLayers_makeFromJson (json_object *js)
 
json_objectVuoRenderedLayers_getJson (const VuoRenderedLayers renderedLayers)
 
char * VuoRenderedLayers_getSummary (const VuoRenderedLayers renderedLayers)
 
VuoRenderedLayers VuoRenderedLayers_makeFromString (const char *str)
 Automatically generated function. More...
 
char * VuoRenderedLayers_getString (const VuoRenderedLayers value)
 Automatically generated function. More...
 
void VuoRenderedLayers_retain (VuoRenderedLayers value)
 Automatically generated function. More...
 
void VuoRenderedLayers_release (VuoRenderedLayers value)
 Automatically generated function. More...