Vuo  1.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoLayer.c File Reference

Description

VuoLayer implementation.

Functions

VuoLayer VuoLayer_makeEmpty (void)
 Creates a new, empty scene object.
 
VuoLayer VuoLayer_make (VuoText name, VuoImage image, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal alpha)
 Creates a visible layer that shows an image.
 
VuoLayer VuoLayer_makeRealSize (VuoText name, VuoImage image, VuoPoint2d center, VuoReal alpha)
 Creates a visible layer that shows an image.
 
static VuoLayer VuoLayer_makeWithShadowInternal (VuoText name, VuoImage image, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal alpha, VuoColor shadowColor, VuoReal shadowBlur, VuoReal shadowAngle, VuoReal shadowDistance, VuoBoolean isRealSize)
 Creates a layer with a shadow, optionally real size.
 
VuoLayer VuoLayer_makeWithShadow (VuoText name, VuoImage image, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal alpha, VuoColor shadowColor, VuoReal shadowBlur, VuoReal shadowAngle, VuoReal shadowDistance)
 Creates a visible layer with a shadow.
 
VuoLayer VuoLayer_makeRealSizeWithShadow (VuoText name, VuoImage image, VuoPoint2d center, VuoReal alpha, VuoColor shadowColor, VuoReal shadowBlur, VuoReal shadowAngle, VuoReal shadowDistance)
 Creates a visible layer with a shadow.
 
VuoLayer VuoLayer_makeColor (VuoText name, VuoColor color, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height)
 Creates a rectangular layer with the specified color.
 
VuoLayer VuoLayer_makeOval (VuoText name, VuoColor color, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal sharpness)
 Creates an oval layer with the specified color.
 
VuoLayer VuoLayer_makeRoundedRectangle (VuoText name, VuoColor color, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal sharpness, VuoReal roundness)
 Creates a rounded rectangle layer with the specified color.
 
VuoLayer VuoLayer_makeLinearGradient (VuoText name, VuoList_VuoColor colors, VuoPoint2d start, VuoPoint2d end, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal noiseAmount)
 Creates a visible layer with a linear gradient.
 
VuoLayer VuoLayer_makeRadialGradient (VuoText name, VuoList_VuoColor colors, VuoPoint2d gradientCenter, VuoReal radius, VuoPoint2d center, VuoReal rotation, VuoReal width, VuoReal height, VuoReal noiseAmount)
 Creates a visible layer with a radial gradient.
 
VuoLayer VuoLayer_makeGroup (VuoList_VuoLayer childLayers, VuoTransform2d transform)
 Creates a layer with a group of child layers.
 
static VuoRectangle VuoLayer_getBoundingRectangleWithSceneObject (VuoSceneObject so, VuoInteger viewportWidth, VuoInteger viewportHeight, float backingScaleFactor)
 Returns a rectangle enclosing the sceneobject (which is assumed to be 2-dimensional).
 
VuoRectangle VuoLayer_getBoundingRectangle (VuoLayer layer, VuoInteger viewportWidth, VuoInteger viewportHeight, float backingScaleFactor)
 Returns the minimal rectangle enclosing the layer and its child layers.
 
bool VuoLayer_isPopulated (VuoLayer layer)
 Returns true if the layer or any of its children have a non-empty type.
 
VuoLayer VuoLayer_makeFromJson (json_object *js)
 
json_objectVuoLayer_getJson (const VuoLayer value)
 
char * VuoLayer_getSummary (const VuoLayer value)
 

Function Documentation

static VuoRectangle VuoLayer_getBoundingRectangleWithSceneObject ( VuoSceneObject  so,
VuoInteger  viewportWidth,
VuoInteger  viewportHeight,
float  backingScaleFactor 
)
static

Returns a rectangle enclosing the sceneobject (which is assumed to be 2-dimensional).

static VuoLayer VuoLayer_makeWithShadowInternal ( VuoText  name,
VuoImage  image,
VuoPoint2d  center,
VuoReal  rotation,
VuoReal  width,
VuoReal  alpha,
VuoColor  shadowColor,
VuoReal  shadowBlur,
VuoReal  shadowAngle,
VuoReal  shadowDistance,
VuoBoolean  isRealSize 
)
static

Creates a layer with a shadow, optionally real size.

Parameters
nameThe layer's name (used by, e.g., VuoRenderedLayers_findLayer).
imageThe image shown on the layer.
centerThe center of the layer, in Vuo Coordinates.
rotationThe layer's angle, in degrees.
widthThe width of the layer, in Vuo Coordinates.
alphaThe opacity of the layer, 0–1.
shadowColorThe color of the layer's shadow.
shadowBlurThe amount to blur the layer's shadow, in pixels.
shadowAngleThe angle of the layer's shadow, in degrees.
shadowDistanceThe distance that the shadow is offset from the layer, in Vuo Coordinates.
isRealSizeShould this layer be rendered at actual (pixel-perfect) size?