Vuo  1.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Functions
VuoRenderedLayers

Description

A layer (or hierarchical structure of layers) and its dimensions in pixels.

Classes

struct  VuoRenderedLayers
 A layer (or hierarchical structure of layers) and its dimensions in pixels. More...
 

Typedefs

typedef struct VuoRenderedLayers VuoRenderedLayers
 A layer (or hierarchical structure of layers) and its dimensions in pixels.
 

Functions

VuoRenderedLayers VuoRenderedLayers_makeFromJson (json_object *js)
 
json_objectVuoRenderedLayers_getJson (const VuoRenderedLayers value)
 
char * VuoRenderedLayers_getSummary (const VuoRenderedLayers value)
 
VuoRenderedLayers VuoRenderedLayers_makeEmpty (void)
 Creates a VuoRenderedLayers with no root layer and zero size.
 
VuoRenderedLayers VuoRenderedLayers_make (VuoSceneObject rootSceneObject, unsigned long int pixelsWide, unsigned long int pixelsHigh, float backingScaleFactor)
 Creates a VuoRenderedLayers with the given rendering root layer, rendering dimensions, and no window.
 
VuoRenderedLayers VuoRenderedLayers_makeWithWindow (VuoSceneObject rootSceneObject, unsigned long int pixelsWide, unsigned long int pixelsHigh, float backingScaleFactor, VuoWindowReference window)
 Creates a VuoRenderedLayers with the given rendering root layer, rendering dimensions, and window.
 
bool VuoRenderedLayers_findLayer (VuoRenderedLayers renderedLayers, VuoText layerName, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject *foundObject)
 Finds the layer with the given name, along with its ancestor layers.
 
bool VuoRenderedLayers_getTransformedLayer (VuoRenderedLayers renderedLayers, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject targetObject, VuoPoint2d *layerCenter, VuoPoint2d layerCorners[4])
 Outputs the center and corner points of the layer with the given name, as transformed in renderedLayers.
 
bool VuoRenderedLayers_getTransformedPoint (VuoRenderedLayers renderedLayers, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject targetObject, VuoPoint2d point, VuoPoint2d *transformedPoint)
 Outputs a point as transformed by ancestorObjects and targetObject.
 
bool VuoRenderedLayers_getInverseTransformedPoint (VuoRenderedLayers renderedLayers, VuoList_VuoSceneObject ancestorObjects, VuoSceneObject targetObject, VuoPoint2d point, VuoPoint2d *inverseTransformedPoint)
 Transform point from world to local coordinates.
 
bool VuoRenderedLayers_getRect (VuoRenderedLayers renderedLayers, VuoLayer layer, VuoRectangle *rect)
 Get a axis-aligned bounding rect in model space in Vuo coordinates for a layer and its children.
 
VuoPoint2d VuoRenderedLayers_getTextSize (VuoRenderedLayers renderedLayers, VuoText text, VuoFont font, bool includeTrailingWhiteSpace)
 Outputs the size in Vuo coordinates of a real-size text layer.
 
VuoRectangle VuoRenderedLayers_getBoundingBox (VuoPoint2d layerCorners[4])
 Returns the axis-aligned bounding box for the 4 points.
 
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.
 
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 it's children.
 
VuoRenderedLayers VuoRenderedLayers_makeFromString (const char *str)
 Automatically generated function.
 
char * VuoRenderedLayers_getString (const VuoRenderedLayers value)
 Automatically generated function.
 
void VuoRenderedLayers_retain (VuoRenderedLayers value)
 Automatically generated function.
 
void VuoRenderedLayers_release (VuoRenderedLayers value)
 Automatically generated function.
 

Class Documentation

struct VuoRenderedLayers
Class Members
float backingScaleFactor
unsigned long int pixelsHigh
unsigned long int pixelsWide
VuoSceneObject rootSceneObject
VuoWindowReference window

Typedef Documentation

A layer (or hierarchical structure of layers) and its dimensions in pixels.

Function Documentation

bool VuoRenderedLayers_findLayer ( VuoRenderedLayers  renderedLayers,
VuoText  layerName,
VuoList_VuoSceneObject  ancestorObjects,
VuoSceneObject foundObject 
)

Finds the layer with the given name, along with its ancestor layers.

The layer may be a group with children but no mesh.

VuoRectangle VuoRenderedLayers_getBoundingBox ( VuoPoint2d  layerCorners[4])

Returns the axis-aligned bounding box for the 4 points.

bool VuoRenderedLayers_getInverseTransformedPoint ( VuoRenderedLayers  renderedLayers,
VuoList_VuoSceneObject  ancestorObjects,
VuoSceneObject  targetObject,
VuoPoint2d  point,
VuoPoint2d inverseTransformedPoint 
)

Transform point from world to local coordinates.

struct json_object * VuoRenderedLayers_getJson ( const VuoRenderedLayers  value)
read
bool VuoRenderedLayers_getRect ( VuoRenderedLayers  renderedLayers,
VuoLayer  layer,
VuoRectangle rect 
)

Get a axis-aligned bounding rect in model space in Vuo coordinates for a layer and its children.

char* VuoRenderedLayers_getString ( const VuoRenderedLayers  value)

Automatically generated function.

char * VuoRenderedLayers_getSummary ( const VuoRenderedLayers  value)
VuoPoint2d VuoRenderedLayers_getTextSize ( VuoRenderedLayers  renderedLayers,
VuoText  text,
VuoFont  font,
bool  includeTrailingWhiteSpace 
)

Outputs the size in Vuo coordinates of a real-size text layer.

bool VuoRenderedLayers_getTransformedLayer ( VuoRenderedLayers  renderedLayers,
VuoList_VuoSceneObject  ancestorObjects,
VuoSceneObject  targetObject,
VuoPoint2d layerCenter,
VuoPoint2d  layerCorners[4] 
)

Outputs the center and corner points of the layer with the given name, as transformed in renderedLayers.

bool VuoRenderedLayers_getTransformedPoint ( VuoRenderedLayers  renderedLayers,
VuoList_VuoSceneObject  ancestorObjects,
VuoSceneObject  targetObject,
VuoPoint2d  point,
VuoPoint2d transformedPoint 
)

Outputs a point as transformed by ancestorObjects and targetObject.

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 it's children.

point should be in the same coordinate space as renderedLayers.

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.

VuoRenderedLayers VuoRenderedLayers_make ( VuoSceneObject  rootSceneObject,
unsigned long int  pixelsWide,
unsigned long int  pixelsHigh,
float  backingScaleFactor 
)

Creates a VuoRenderedLayers with the given rendering root layer, rendering dimensions, and no window.

VuoRenderedLayers VuoRenderedLayers_makeEmpty ( void  )

Creates a VuoRenderedLayers with no root layer and zero size.

VuoRenderedLayers VuoRenderedLayers_makeFromJson ( json_object js)
VuoRenderedLayers VuoRenderedLayers_makeFromString ( const char *  str)

Automatically generated function.

VuoRenderedLayers VuoRenderedLayers_makeWithWindow ( VuoSceneObject  rootSceneObject,
unsigned long int  pixelsWide,
unsigned long int  pixelsHigh,
float  backingScaleFactor,
VuoWindowReference  window 
)

Creates a VuoRenderedLayers with the given rendering root layer, rendering dimensions, and window.

void VuoRenderedLayers_release ( VuoRenderedLayers  value)

Automatically generated function.

void VuoRenderedLayers_retain ( VuoRenderedLayers  value)

Automatically generated function.