Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
cinder Namespace Reference

Namespaces

 app
 
 audio
 
 cocoa
 
 detail
 
 dx
 
 gl
 
 ip
 
 params
 
 qtime
 
 signals
 
 svg
 
 winrt
 

Classes

class  Anim
 
class  AnimBase
 
class  Arcball
 
class  Area
 
class  AxisAlignedBox3f
 
class  BandedMatrix
 
class  BSpline
 
class  BSplineBasis
 
class  Buffer
 
class  CallbackMgr
 Implements a utility class for maintaining a list of callbacks. More...
 
class  Camera
 
class  CameraOrtho
 
class  CameraPersp
 
class  CameraStereo
 
class  Capture
 
class  CaptureExc
 
class  CaptureExcInitFail
 
class  CaptureExcInvalidChannelOrder
 
class  CaptureImplAvFoundationDevice
 
class  CaptureImplCocoaDummyDevice
 This class implements a stubbed-out Capture implementation in order to allow an iOS app which requires capture support to run in the simulator. More...
 
class  CaptureImplDirectShow
 
class  CaptureImplQtKitDevice
 
class  ChannelT
 A single channel of image data, either a color channel of a Surface or a grayscale image. Implicitly shared object. More...
 
struct  CHANTRAIT
 
struct  CHANTRAIT< float >
 
struct  CHANTRAIT< uint16_t >
 
struct  CHANTRAIT< uint8_t >
 
class  cinder_stream_bidirectional_device
 
class  cinder_stream_sink
 
class  cinder_stream_source
 
class  Clipboard
 Singleton representing the system's clipboard. More...
 
class  ColorAT
 
class  ColorT
 
struct  CompareNode
 
class  ConcurrentCircularBuffer
 
class  Cue
 
class  DataSource
 
class  DataSourceBuffer
 
class  DataSourcePath
 
class  DataSourceUrl
 
class  DataTarget
 
class  DataTargetPath
 
class  DataTargetStream
 
class  Display
 
struct  EaseInAtan
 Easing equation for an atan ease-in, accelerating from zero velocity. Functor edition. Used by permssion from Chris McKenzie. More...
 
struct  EaseInBack
 Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-in, accelerating from zero velocity. Functor edition. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
struct  EaseInBounce
 Easing equation for a bounce (exponentially decaying parabolic bounce) ease-in, accelerating from zero velocity. Functor edition. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
struct  EaseInCirc
 Easing equation for a circular (sqrt(1-t^2)) ease-in, accelerating from zero velocity. Functor edition. More...
 
struct  EaseInCubic
 Easing equation function for a cubic (t^3) ease-in, accelerating from zero velocity. Functor edition. More...
 
struct  EaseInElastic
 Easing equation for an elastic (exponentially decaying sine wave) ease-in, accelerating from zero velocity. Functor edition. More...
 
struct  EaseInExpo
 Easing equation for an exponential (2^t) ease-in, accelerating from zero velocity. Functor edition. More...
 
struct  EaseInOutAtan
 Easing equation for an atan ease-in/out, accelerating until halfway, then decelerating. Functor edition. Used by permssion from Chris McKenzie. More...
 
struct  EaseInOutBack
 Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-in/out, accelerating until halfway, then decelerating. Functor edition. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
struct  EaseInOutBounce
 Easing equation for a bounce (exponentially decaying parabolic bounce) ease-in/out, accelerating until halfway, then decelerating. Functor edition. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
struct  EaseInOutCirc
 Easing equation for a circular (sqrt(1-t^2)) ease-in/out, accelerating until halfway, then decelerating. Functor edition. More...
 
struct  EaseInOutCubic
 Easing equation for a cubic (t^3) ease-in/out, accelerating until halfway, then decelerating. Functor edition. More...
 
struct  EaseInOutElastic
 Easing equation for an elastic (exponentially decaying sine wave) ease-in/out, accelerating until halfway, then decelerating. Functor edition. More...
 
struct  EaseInOutExpo
 Easing equation for an exponential (2^t) ease-in/out, accelerating until halfway, then decelerating. Functor edition. More...
 
struct  EaseInOutQuad
 Easing equation for a quadratic (t^2) ease-in/out, accelerating until halfway, then decelerating. Functor edition. More...
 
struct  EaseInOutQuart
 Easing equation for a quartic (t^4) ease-in/out, accelerating until halfway, then decelerating. Functor edition. More...
 
struct  EaseInOutQuint
 Easing equation for a quintic (t^5) ease-in/out, accelerating until halfway, then decelerating. Functor edition. More...
 
struct  EaseInOutSine
 Easing equation for a sinusoidal (sin(t)) ease-in/out, accelerating until halfway, then decelerating. Functor edition. More...
 
struct  EaseInQuad
 Easing equation for a quadratic (t^2) ease-in, accelerating from zero velocity. Functor edition. More...
 
struct  EaseInQuart
 Easing equation for a quartic (t^4) ease-in, accelerating from zero velocity. Functor edition. More...
 
struct  EaseInQuint
 Easing equation function for a quintic (t^5) ease-in, accelerating from zero velocity. Functor edition. More...
 
struct  EaseInSine
 Easing equation for a sinusoidal (sin(t)) ease-in, accelerating from zero velocity. Functor edition. More...
 
struct  EaseNone
 Easing equation for a simple linear tweening with no easing. Functor edition. More...
 
struct  EaseOutAtan
 Easing equation for an atan ease-out, decelerating from zero velocity. Functor edition. Used by permssion from Chris McKenzie. More...
 
struct  EaseOutBack
 Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-out, decelerating from zero velocity. Functor edition. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
struct  EaseOutBounce
 Easing equation for a bounce (exponentially decaying parabolic bounce) ease-out, decelerating from zero velocity. Functor edition. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
struct  EaseOutCirc
 Easing equation for a circular (sqrt(1-t^2)) ease-out, decelerating from zero velocity. Functor edition. More...
 
struct  EaseOutCubic
 Easing equation for a cubic (t^3) ease-out, decelerating to zero velocity. Functor edition. More...
 
struct  EaseOutElastic
 Easing equation for an elastic (exponentially decaying sine wave) ease-out, decelerating from zero velocity. Functor edition. More...
 
struct  EaseOutExpo
 Easing equation for an exponential (2^t) ease-out, decelerating from zero velocity. Functor edition. More...
 
struct  EaseOutInBack
 Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-out/in, decelerating until halfway, then accelerating. Functor edition. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
struct  EaseOutInBounce
 Easing equation for a bounce (exponentially decaying parabolic bounce) ease-out/in, decelerating until halfway, then accelerating. Functor edition. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
struct  EaseOutInCirc
 Easing equation for a circular (sqrt(1-t^2)) ease-out/in, decelerating until halfway, then accelerating. Functor edition. More...
 
struct  EaseOutInCubic
 Easing equation for a cubic (t^3) ease-out/in, decelerating until halfway, then accelerating. Functor edition. More...
 
struct  EaseOutInElastic
 Easing equation for an elastic (exponentially decaying sine wave) ease-out/in, decelerating until halfway, then accelerating. Functor edition. More...
 
struct  EaseOutInExpo
 Easing equation for an exponential (2^t) ease-out/in, decelerating until halfway, then accelerating. Functor edition. More...
 
struct  EaseOutInQuad
 Easing equation for a quadratic (t^2) ease-out/in, decelerating until halfway, then accelerating. Functor edition. More...
 
struct  EaseOutInQuart
 Easing equation for a quartic (t^4) ease-out/in, decelerating until halfway, then accelerating. Funtor edition. More...
 
struct  EaseOutInQuint
 Easing equation for a quintic (t^5) ease-out/in, decelerating until halfway, then accelerating. Functor edition. More...
 
struct  EaseOutInSine
 Easing equation for a sinusoidal (sin(t)) ease-out/in, decelerating until halfway, then accelerating. Functor edition. More...
 
struct  EaseOutQuad
 Easing equation for a quadratic (t^2) ease-out, decelerating to zero velocity. Functor edition. More...
 
struct  EaseOutQuart
 Easing equation for a quartic (t^4) ease-out, decelerating to zero velocity. Functor edition;. More...
 
struct  EaseOutQuint
 Easing equation function for a quintic (t^5) ease-in, accelerating from zero velocity. Functor edition. More...
 
struct  EaseOutSine
 Easing equation for a sinusoidal (sin(t)) easing out, decelerating from zero velocity. Functor edition. More...
 
class  Exception
 
class  FilterBase
 
class  FilterBesselBlackman
 
class  FilterBox
 
class  FilterCatmullRom
 
class  FilterCubic
 
class  FilterGaussian
 
class  FilterMitchell
 
class  FilterQuadratic
 
class  FilterSincBlackman
 
class  FilterTriangle
 
class  FnTween
 
class  FnTweenRef
 
class  Font
 Represents an instance of a font at a point size. Implicitly shared object. More...
 
class  FontGlyphFailureExc
 
class  FontInvalidNameExc
 
class  Frustum
 
class  ImageIo
 
class  ImageIoException
 
class  ImageIoExceptionFailedLoad
 
class  ImageIoExceptionFailedWrite
 
class  ImageIoExceptionIllegalChannelOrder
 
class  ImageIoExceptionIllegalColorModel
 
class  ImageIoExceptionIllegalDataType
 
class  ImageIoExceptionUnknownExtension
 
struct  ImageIoRegistrant
 
struct  ImageIoRegistrar
 
class  ImageSource
 
class  ImageSourceFileQuartz
 
class  ImageSourceFileQuartzExceptionUnsupportedData
 
class  ImageSourceFileWic
 
class  ImageSourceFileWicExceptionUnsupportedData
 
class  ImageSourcePng
 
class  ImageSourcePngException
 
class  ImageTarget
 
class  ImageTargetFileQuartz
 
class  ImageTargetFileWic
 
class  IoStream
 
class  IoStreamFile
 
class  IStreamCinder
 
class  IStreamFile
 
class  IStreamMem
 
class  IStreamStateRestore
 
class  IStreamUrl
 
class  IStreamUrlImplCocoa
 
class  IStreamUrlImplCurl
 
class  IStreamUrlImplWinInet
 
class  JsonTree
 
struct  KdNode
 
class  KdTree
 
struct  math
 
struct  math< float >
 
class  Matrix22
 
class  Matrix33
 
class  Matrix44
 
class  MatrixAffine2
 Represents a two dimensional affine transformation. More...
 
class  MatrixStack
 
class  MayaCamUI
 
struct  NodeDataTraits
 
struct  NodeDataTraits< Vec2f >
 
struct  NodeDataVectorTraits
 
struct  NullLookupProc
 
class  ObjLoader
 Loads Alias|Wavefront .OBJ file format. More...
 
class  OStream
 
class  OStreamFile
 
class  OStreamMem
 
class  Path2d
 
class  Path2dCalcCache
 Accelerates the calculation of various operations on Path2d. Useful if doing repeated calculations, otherwise just use Path2d member functions. More...
 
class  Path2dExc
 
class  Perlin
 
class  Plane
 
class  PlaneExc
 
class  PolyLine
 
struct  QUATCONV
 
class  Quaternion
 
class  Rand
 
class  Ray
 
class  RectMapping
 
class  RectT
 
class  Serial
 
class  SerialExc
 
class  SerialExcDeviceEnumerationFailed
 
class  SerialExcOpenFailed
 
class  SerialExcReadFailure
 
class  SerialExcWriteFailure
 
class  SerialTimeoutExc
 
class  Shape2d
 
class  Sphere
 
class  StreamBase
 
class  StreamExc
 
class  StreamExcOutOfMemory
 
class  SurfaceChannelOrder
 Specifies the in-memory ordering of the channels of a Surface. More...
 
class  SurfaceConstraints
 Base class for defining the properties of a Surface necessary to be interoperable with different APIs. More...
 
class  SurfaceConstraintsDefault
 
class  SurfaceConstraintsExc
 
class  SurfaceExc
 
class  SurfaceT
 An in-memory representation of an image. Implicitly shared object. More...
 
class  SvgRendererGl
 
class  System
 Queries system software and hardware capabilities of the computer. Values are cached so there is low overhead in calling these functions more than once. More...
 
class  SystemExc
 
class  SystemExcFailedQuery
 
class  TextBox
 
class  TextLayout
 
class  ThreadSetup
 Create an instance of this class at the beginning of any multithreaded code that makes use of Cinder functionality. More...
 
class  Timeline
 
class  TimelineItem
 Base interface for anything that can go on a Timeline. More...
 
class  Timer
 A high-resolution timer class. More...
 
class  Triangulator
 Converts an arbitrary Shape2d into a TriMesh2d. More...
 
class  TriMesh
 
class  TriMesh2d
 
class  Tween
 
class  TweenBase
 
class  TweenRef
 
class  Url
 
class  UrlLoadExc
 Exception for failed Url loading. More...
 
class  UrlOptions
 Options for loadUrl() to dictate caching and timeout behavior. More...
 
class  Vec2
 
class  Vec3
 
class  Vec4
 
class  XmlTree
 

Typedefs

typedef BandedMatrix< float > BandedMatrixf
 
typedef BandedMatrix< double > BandedMatrixd
 
typedef BSpline< Vec2fBSpline2f
 
typedef BSpline< Vec3fBSpline3f
 
typedef std::shared_ptr< class
Capture
CaptureRef
 
typedef std::shared_ptr< class
ImageSource
ImageSourceRef
 
typedef ChannelT< uint8_t > Channel
 8-bit image channel. Synonym for Channel8u. More...
 
typedef ChannelT< uint8_t > Channel8u
 8-bit image channel More...
 
typedef ChannelT< uint16_t > Channel16u
 16-bit image channel. Suitable as an intermediate representation and ImageIo but not a first-class citizen. More...
 
typedef ChannelT< float > Channel32f
 32-bit floating point image channel More...
 
typedef ColorT< float > Color
 
typedef ColorT< float > Colorf
 
typedef ColorT< uint8_t > Color8u
 
typedef ColorAT< float > ColorA
 
typedef ColorAT< float > ColorAf
 
typedef ColorAT< uint8_t > ColorA8u
 
typedef std::shared_ptr< class
DataSource
DataSourceRef
 
typedef std::shared_ptr< class
DataSourcePath
DataSourcePathRef
 
typedef std::shared_ptr< class
DataSourceUrl
DataSourceUrlRef
 
typedef std::shared_ptr< class
DataSourceBuffer
DataSourceBufferRef
 
typedef std::shared_ptr< class
DataTarget
DataTargetRef
 
typedef std::shared_ptr< class
DataTargetPath
DataTargetPathRef
 
typedef std::shared_ptr< class
DataTargetStream
DataTargetStreamRef
 
typedef std::shared_ptr< class
Display
DisplayRef
 
typedef Frustum< float > Frustumf
 
typedef Frustum< double > Frustumd
 
typedef uint32_t CallbackId
 Represents a unique identifier for a callback. More...
 
typedef std::shared_ptr< class
ImageLoader > 
ImageLoaderRef
 
typedef std::shared_ptr< class
ImageTarget
ImageTargetRef
 
typedef std::shared_ptr< class
ImageTargetFile > 
ImageTargetFileRef
 
typedef std::shared_ptr< class
ImageSourceFileQuartz
ImageSourceFileQuartzRef
 
typedef std::shared_ptr< class
ImageSourceFileWic
ImageSourceFileWicRef
 
typedef std::shared_ptr< class
ImageSourcePng
ImageSourcePngRef
 
typedef std::shared_ptr< class
ImageTargetFileQuartz
ImageTargetFileQuartzRef
 
typedef std::shared_ptr< class
ImageTargetFileWic
ImageTargetFileWicRef
 
typedef Matrix22< float > Matrix22f
 
typedef Matrix22< double > Matrix22d
 
typedef Matrix33< float > Matrix33f
 
typedef Matrix33< double > Matrix33d
 
typedef Matrix44< float > Matrix44f
 
typedef Matrix44< double > Matrix44d
 
typedef MatrixAffine2< float > MatrixAffine2f
 
typedef MatrixAffine2< double > MatrixAffine2d
 
typedef Plane< float > Planef
 
typedef Plane< double > Planed
 
typedef PolyLine< Vec2fPolyLine2f
 
typedef PolyLine< Vec2dPolyLine2d
 
typedef Quaternion< float > Quatf
 
typedef Quaternion< double > Quatd
 
typedef RectT< float > Rectf
 
typedef RectT< double > Rectd
 
typedef std::shared_ptr< class
OStream
OStreamRef
 
typedef std::shared_ptr
< IStreamCinder
IStreamRef
 
typedef std::shared_ptr< IoStreamIoStreamRef
 
typedef std::shared_ptr< class
IStreamFile
IStreamFileRef
 
typedef std::shared_ptr< class
OStreamFile
OStreamFileRef
 
typedef std::shared_ptr< class
IoStreamFile
IoStreamFileRef
 
typedef std::shared_ptr< class
IStreamMem
IStreamMemRef
 
typedef std::shared_ptr< class
OStreamMem
OStreamMemRef
 
typedef
boost::iostreams::stream
< cinder_stream_source
cinder_istream
 
typedef
boost::iostreams::stream
< cinder_stream_sink
cinder_ostream
 
typedef
boost::iostreams::stream
< cinder_stream_bidirectional_device
cinder_iostream
 
typedef SurfaceT< uint8_t > Surface
 8-bit image. Synonym for Surface8u. More...
 
typedef SurfaceT< uint8_t > Surface8u
 8-bit image More...
 
typedef SurfaceT< uint16_t > Surface16u
 16-bit image. Suitable as an intermediate representation and ImageIo but not a first-class citizen. More...
 
typedef SurfaceT< float > Surface32f
 32-bit floating point image More...
 
typedef std::shared_ptr< class
Cue
CueRef
 
typedef std::shared_ptr< class
Timeline
TimelineRef
 
typedef std::shared_ptr< class
TimelineItem
TimelineItemRef
 
typedef std::function< float(float)> EaseFn
 
typedef std::shared_ptr< class
IStreamUrl
IStreamUrlRef
 A pointer to an instance of an IStreamUrl. Can be created using IStreamUrl::createRef() More...
 
typedef Vec2< intVec2i
 
typedef Vec2< float > Vec2f
 
typedef Vec2< double > Vec2d
 
typedef Vec3< intVec3i
 
typedef Vec3< float > Vec3f
 
typedef Vec3< double > Vec3d
 
typedef Vec4< intVec4i
 
typedef Vec4< float > Vec4f
 
typedef Vec4< double > Vec4d
 
typedef BSplineFit< float > BSplineFitf
 
typedef BSplineFit< double > BSplineFitd
 
typedef BSplineFitBasis< float > BSplineFitBasisf
 
typedef BSplineFitBasis< double > BSplineFitBasisd
 
typedef
boost::geometry::model::polygon
< boost::geometry::model::d2::point_xy
< double > > 
polygon
 
typedef std::multimap< void
*, TimelineItemRef >::iterator 
s_iter
 
typedef std::multimap< void
*, TimelineItemRef >
::const_iterator 
s_const_iter
 

Enumerations

enum  ColorModel { CM_RGB, CM_HSV }
 
enum  UnicodeBreaks { UNICODE_MUST_BREAK, UNICODE_ALLOW_BREAK, UNICODE_NO_BREAK, UNICODE_INSIDE_CHAR }
 Values returned by calcBreaksUtf8 and calcBreaksUtf16. More...
 

Functions

std::pair< Area, Vec2iclippedSrcDst (const Area &srcSurfaceBounds, const Area &srcArea, const Area &dstSurfaceBounds, const Vec2i &dstLT)
 
std::string toBase64 (const std::string &input, int charsPerLine=0)
 Converts input into a Base64-encoded string. If charsPerLine > 0, carriage returns (
) are inserted every charsPerLine characters, rounded down to the nearest multiple of 4. More...
 
std::string toBase64 (const Buffer &input, int charsPerLine=0)
 Converts input into a Base64-encoded string. If charsPerLine > 0, carriage returns (
) are inserted every charsPerLine characters, rounded down to the nearest multiple of 4. More...
 
std::string toBase64 (const void *input, size_t inputSize, int charsPerLine=0)
 Converts input of length inputSize into a Base64-encoded string. If charsPerLine > 0, carriage returns (
) are inserted every charsPerLine characters, rounded down to the nearest multiple of 4. More...
 
Buffer fromBase64 (const std::string &input)
 Converts Base64-encoded data input into unencoded data. More...
 
Buffer fromBase64 (const Buffer &input)
 Converts Base64-encoded data input into unencoded data. More...
 
Buffer fromBase64 (const void *input, size_t inputSize)
 Converts Base64-encoded data input into unencoded data. More...
 
template<typename T >
BSpline< T > fitBSpline (const std::vector< T > &samples, int degree, int outputSamples)
 
Buffer compressBuffer (const Buffer &aBuffer, int8_t compressionLevel=DEFAULT_COMPRESSION_LEVEL, bool resizeResult=true)
 
Buffer decompressBuffer (const Buffer &aBuffer, bool resizeResult=true, bool useGZip=false)
 
float toRadians (float x)
 
double toRadians (double x)
 
float toDegrees (float x)
 
double toDegrees (double x)
 
template<typename T , typename L >
lerp (const T &a, const T &b, L factor)
 
template<typename T >
lmap (T val, T inMin, T inMax, T outMin, T outMax)
 
template<typename T , typename L >
bezierInterp (T a, T b, T c, T d, L t)
 
template<typename T , typename L >
bezierInterpRef (const T &a, const T &b, const T &c, const T &d, L t)
 
template<typename T >
constrain (T val, T minVal, T maxVal)
 
template<typename T >
fract (T x)
 Returns the fractional part of x, calculated as x - floor( x ) More...
 
template<class T >
sinx_over_x (T x)
 
uint32_t log2floor (uint32_t x)
 
uint32_t log2ceil (uint32_t x)
 
uint32_t nextPowerOf2 (uint32_t x)
 
bool isPowerOf2 (size_t x)
 Returns true if x is a power of two, false otherwise. More...
 
template<typename T >
int solveLinear (T a, T b, T result[1])
 
template<typename T >
int solveQuadratic (T a, T b, T c, T result[2])
 
template<typename T , int ORDER>
rombergIntegral (T a, T b, const std::function< T(T)> &SPEEDFN)
 
template<typename T >
int solveCubic (T a, T b, T c, T d, T result[3])
 
template<typename T , typename Y >
ColorT< T > operator* (Y s, const ColorT< T > &c)
 
template<typename T , typename Y >
ColorAT< T > operator* (Y s, const ColorAT< T > &c)
 
ColorT< float > hsvToRGB (const Vec3f &hsv)
 
Vec3f rgbToHSV (const ColorT< float > &c)
 
ColorT< uint8_t > svgNameToRgb (const char *svgName, bool *found=NULL)
 Converts the named colors of the SVG spec http://en.wikipedia.org/wiki/Web_colors#X11_color_names to sRGB Color8u. If found is non-NULL, it's set to whether the name was located. Returns black on failure. More...
 
std::ostream & operator<< (std::ostream &lhs, const ColorT< float > &rhs)
 
std::ostream & operator<< (std::ostream &lhs, const ColorAT< float > &rhs)
 
std::ostream & operator<< (std::ostream &lhs, const ColorT< uint8_t > &rhs)
 
std::ostream & operator<< (std::ostream &lhs, const ColorAT< uint8_t > &rhs)
 
PolyLine2f calcConvexHull (const std::vector< Vec2f > &points)
 
PolyLine2f calcConvexHull (const Vec2f *points, size_t numPoints)
 
PolyLine2f calcConvexHull (const Shape2d &shape)
 
PolyLine2f calcConvexHull (const Path2d &path)
 
PolyLine2f calcConvexHull (const PolyLine2f &polyLine)
 
DataSourceRef loadFile (const fs::path &path)
 
DataSourceRef loadUrl (const Url &Url, const UrlOptions &options=UrlOptions())
 
DataSourceRef loadUrl (const std::string &urlString, const UrlOptions &options=UrlOptions())
 
DataTargetPathRef writeFile (const fs::path &path, bool createParents=true)
 Returns a DataTarget to file path path, and optionally creates any necessary directories when createParents is true. More...
 
float easeNone (float t)
 Easing equation for a simple linear tweening with no easing. More...
 
float easeInQuad (float t)
 Easing equation for a quadratic (t^2) ease-in, accelerating from zero velocity. More...
 
float easeOutQuad (float t)
 Easing equation for a quadratic (t^2) ease-out, decelerating to zero velocity. More...
 
float easeInOutQuad (float t)
 Easing equation for a quadratic (t^2) ease-in/out, accelerating until halfway, then decelerating. More...
 
float easeOutInQuad (float t)
 Easing equation for a quadratic (t^2) ease-out/in, decelerating until halfway, then accelerating. More...
 
float easeInCubic (float t)
 Easing equation function for a cubic (t^3) ease-in, accelerating from zero velocity. More...
 
float easeOutCubic (float t)
 Easing equation for a cubic (t^3) ease-out, decelerating to zero velocity. More...
 
float easeInOutCubic (float t)
 Easing equation for a cubic (t^3) ease-in/out, accelerating until halfway, then decelerating. More...
 
float easeOutInCubic (float t)
 Easing equation for a cubic (t^3) ease-out/in, decelerating until halfway, then accelerating. More...
 
float easeInQuart (float t)
 Easing equation for a quartic (t^4) ease-in, accelerating from zero velocity. More...
 
float easeOutQuart (float t)
 Easing equation for a quartic (t^4) ease-out, decelerating to zero velocity. More...
 
float easeInOutQuart (float t)
 Easing equation for a quartic (t^4) ease-in/out, accelerating until halfway, then decelerating. More...
 
float easeOutInQuart (float t)
 Easing equation for a quartic (t^4) ease-out/in, decelerating until halfway, then accelerating. More...
 
float easeInQuint (float t)
 Easing equation function for a quintic (t^5) ease-in, accelerating from zero velocity. More...
 
float easeOutQuint (float t)
 Easing equation for a quintic (t^5) ease-out, decelerating to zero velocity. More...
 
float easeInOutQuint (float t)
 Easing equation for a quintic (t^5) ease-in/out, accelerating until halfway, then decelerating. More...
 
float easeOutInQuint (float t)
 Easing equation for a quintic (t^5) ease-out/in, decelerating until halfway, then accelerating. More...
 
float easeInSine (float t)
 Easing equation for a sinusoidal (sin(t)) ease-in, accelerating from zero velocity. More...
 
float easeOutSine (float t)
 Easing equation for a sinusoidal (sin(t)) ease-out, decelerating from zero velocity. More...
 
float easeInOutSine (float t)
 Easing equation for a sinusoidal (sin(t)) ease-in/out, accelerating until halfway, then decelerating. More...
 
float easeOutInSine (float t)
 Easing equation for a sinusoidal (sin(t)) ease-out/in, decelerating until halfway, then accelerating. More...
 
float easeInExpo (float t)
 Easing equation for an exponential (2^t) ease-in, accelerating from zero velocity. More...
 
float easeOutExpo (float t)
 Easing equation for an exponential (2^t) ease-out, decelerating from zero velocity. More...
 
float easeInOutExpo (float t)
 Easing equation for an exponential (2^t) ease-in/out, accelerating until halfway, then decelerating. More...
 
float easeOutInExpo (float t)
 Easing equation for an exponential (2^t) ease-out/in, decelerating until halfway, then accelerating. More...
 
float easeInCirc (float t)
 Easing equation for a circular (sqrt(1-t^2)) ease-in, accelerating from zero velocity. More...
 
float easeOutCirc (float t)
 Easing equation for a circular (sqrt(1-t^2)) ease-out, decelerating from zero velocity. More...
 
float easeInOutCirc (float t)
 Easing equation for a circular (sqrt(1-t^2)) ease-in/out, accelerating until halfway, then decelerating. More...
 
float easeOutInCirc (float t)
 Easing equation for a circular (sqrt(1-t^2)) ease-out/in, decelerating until halfway, then accelerating. More...
 
float easeInBounce (float t, float a=1.70158f)
 Easing equation for a bounce (exponentially decaying parabolic bounce) ease-in, accelerating from zero velocity. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
float easeOutBounce (float t, float a=1.70158f)
 Easing equation for a bounce (exponentially decaying parabolic bounce) ease-out, decelerating from zero velocity. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
float easeInOutBounce (float t, float a=1.70158f)
 Easing equation for a bounce (exponentially decaying parabolic bounce) ease-in/out, accelerating until halfway, then decelerating. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
float easeOutInBounce (float t, float a=1.70158f)
 Easing equation for a bounce (exponentially decaying parabolic bounce) ease-out/in, decelerating until halfway, then accelerating. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
float easeInBack (float t, float s=1.70158f)
 Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-in, accelerating from zero velocity. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
float easeOutBack (float t, float s=1.70158f)
 Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-out, decelerating from zero velocity. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
float easeInOutBack (float t, float s=1.70158f)
 Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-in/out, accelerating until halfway, then decelerating. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
float easeOutInBack (float t, float s)
 Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-out/in, decelerating until halfway, then accelerating. The a parameter controls overshoot, the default producing a 10% overshoot. More...
 
float easeInElastic (float t, float amplitude, float period)
 Easing equation for an elastic (exponentially decaying sine wave) ease-in, accelerating from zero velocity. More...
 
float easeOutElastic (float t, float amplitude, float period)
 Easing equation for an elastic (exponentially decaying sine wave) ease-out, decelerating from zero velocity. More...
 
float easeInOutElastic (float t, float amplitude, float period)
 Easing equation for an elastic (exponentially decaying sine wave) ease-in/out, accelerating until halfway, then decelerating. More...
 
float easeOutInElastic (float t, float amplitude, float period)
 Easing equation for an elastic (exponentially decaying sine wave) ease-out/in, decelerating until halfway, then accelerating. More...
 
float easeInAtan (float t, float a=15)
 Easing equation for an atan ease-in, accelerating from zero velocity. Used by permssion from Chris McKenzie. More...
 
float easeOutAtan (float t, float a=15)
 Easing equation for an atan ease-out, decelerating from zero velocity. Used by permssion from Chris McKenzie. More...
 
float easeInOutAtan (float t, float a=15)
 Easing equation for an atan ease-in/out, accelerating until halfway, then decelerating. Used by permssion from Chris McKenzie. More...
 
ImageSourceRef loadImage (const fs::path &path, ImageSource::Options options=ImageSource::Options(), std::string extension="")
 Loads an image from the file path path. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG. More...
 
ImageSourceRef loadImage (DataSourceRef dataSource, ImageSource::Options options=ImageSource::Options(), std::string extension="")
 Loads an image from dataSource. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG. More...
 
void writeImage (DataTargetRef dataTarget, const ImageSourceRef &imageSource, ImageTarget::Options options=ImageTarget::Options(), std::string extension="")
 Writes imageSource to dataTarget. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG. More...
 
void writeImage (const fs::path &path, const ImageSourceRef &imageSource, ImageTarget::Options options=ImageTarget::Options(), std::string extension="")
 
void writeImage (ImageTargetRef imageTarget, const ImageSourceRef &imageSource)
 Writes imageSource to imageTarget. More...
 
std::ostream & operator<< (std::ostream &out, const JsonTree &json)
 
template<typename T >
Matrix44< T > firstFrame (const Vec3< T > &firstPoint, const Vec3< T > &secondPoint, const Vec3< T > &thirdPoint)
 
template<typename T >
Matrix44< T > nextFrame (const Matrix44< T > &prevMatrix, const Vec3< T > &prevPoint, const Vec3< T > &curPoint, Vec3< T > &prevTangent, Vec3< T > &curTangent)
 
template<typename T >
Matrix44< T > lastFrame (const Matrix44< T > &prevMatrix, const Vec3< T > &prevPoint, const Vec3< T > &lastPoint)
 
template<typename T >
Matrix44< T > firstFrame (const Vec4< T > &firstPoint, const Vec4< T > &secondPoint, const Vec4< T > &thirdPoint)
 
template<typename T >
Matrix44< T > nextFrame (const Matrix44< T > &prevMatrix, const Vec4< T > &prevPoint, const Vec4< T > &curPoint, Vec4< T > &prevTangent, Vec4< T > &curTangent)
 
template<typename T >
Matrix44< T > lastFrame (const Matrix44< T > &prevMatrix, const Vec4< T > &prevPoint, const Vec4< T > &lastPoint)
 
std::ostream & operator<< (std::ostream &out, const Path2d &p)
 
template<typename T >
std::ostream & operator<< (std::ostream &o, const Plane< T > &p)
 
template<typename T >
Vec3< T > operator* (const Vec3< T > &vec, const Quaternion< T > &q)
 
void randSeed (unsigned long seedValue)
 Resets the static random generator to the specific seed seedValue. More...
 
bool randBool ()
 returns a random boolean value More...
 
int32_t randInt ()
 returns a random integer in the range [0,2147483647] More...
 
int32_t randInt (int32_t v)
 returns a random integer in the range [0,v) More...
 
int32_t randInt (int32_t a, int32_t b)
 returns a random integer in the range [a,b) More...
 
float randFloat ()
 returns a random float in the range [0.0f,1.0f] More...
 
float randFloat (float v)
 returns a random float in the range [0.0f,v] More...
 
float randFloat (float a, float b)
 returns a random float in the range [a,b] More...
 
float randPosNegFloat (float a, float b)
 returns a random float in the range [a,b] or the range [-b,-a] More...
 
Vec3f randVec3f ()
 returns a random Vec3f that represents a point on the unit sphere More...
 
Vec2f randVec2f ()
 returns a random Vec2f that represents a point on the unit circle More...
 
float randGaussian ()
 returns a random float via Gaussian distribution More...
 
void getClippedScaledRects (const Area &srcSurfaceBounds, const Rectf &srcRect, const Area &dstSurfaceBounds, const Area &dstArea, Rectf *resultSrcRect, Area *resultDstRect)
 
IStreamFileRef loadFileStream (const fs::path &path)
 Opens the file lcoated at path for read access as a stream. More...
 
OStreamFileRef writeFileStream (const fs::path &path, bool createParents=true)
 Opens the file located at path for write access as a stream, and creates it if it does not exist. Optionally creates any intermediate directories when createParents is true. More...
 
IoStreamFileRef readWriteFileStream (const fs::path &path)
 Opens a path for read-write access as a stream. More...
 
void loadStreamMemory (IStreamRef is, std::shared_ptr< uint8_t > *resultData, size_t *resultDataSize)
 Loads the contents of a stream into a contiguous block of memory, pointed to by resultData. The size of this block is stored in resultDataSize. More...
 
Buffer loadStreamBuffer (IStreamRef is)
 Loads the contents of a stream into a Buffer. More...
 
std::ostream & operator<< (std::ostream &outp, const System::NetworkAdapter &adapter)
 
Surface renderString (const std::string &str, const Font &font, const ColorA &color, float *baselineOffset=0)
 Renders a single string and returns it as a Surface. Optional baselineOffset pointer will receive how many pixels of descender are in the returned Surface. Offset rendering the result Surface by this amount in order to preserve a consistent baseline. Consider gl::drawString() as a more convenient alternative. More...
 
template<typename T >
tweenLerp (const T &start, const T &end, float time)
 
template<>
Quatf tweenLerp (const Quatf &start, const Quatf &end, float time)
 
template<>
Quatd tweenLerp (const Quatd &start, const Quatd &end, float time)
 
std::u16string toUtf16 (const char *utf8Str, size_t lengthInBytes=0)
 
std::u16string toUtf16 (const std::string &utf8Str)
 
std::u32string toUtf32 (const char *utf8Str, size_t lengthInBytes=0)
 
std::u32string toUtf32 (const std::string &utf8Str)
 
std::string toUtf8 (const char16_t *utf16Str, size_t lengthInBytes=0)
 
std::string toUtf8 (const std::u16string &utf16Str)
 
std::string toUtf8 (const char32_t *utf32str, size_t lengthInBytes=0)
 
std::string toUtf8 (const std::u32string &utf32Str)
 
std::u16string toUtf16 (const std::u32string &utf32str)
 
std::u32string toUtf32 (const std::u16string &utf16str)
 
size_t stringLengthUtf8 (const char *str, size_t lengthInBytes=0)
 Returns the number of characters (not bytes) in the the UTF-8 string str. Optimize operation by supplying a non-default lengthInBytes of str. More...
 
uint32_t nextCharUtf8 (const char *str, size_t *inOutByte, size_t lengthInBytes=0)
 Returns the UTF-32 code point of the next character in str, relative to the byte inOutByte. Increments inOutByte to be the first byte of the next character. Optimize operation by supplying a non-default lengthInBytes of str. More...
 
size_t advanceCharUtf8 (const char *str, size_t numChars, size_t lengthInBytes=0)
 Returns the index in bytes of the next character in str, advanced by numChars characters. Optimize operation by supplying a non-default lengthInBytes of str. More...
 
void lineBreakUtf8 (const char *str, const std::function< bool(const char *, size_t)> &measureFn, const std::function< void(const char *, size_t)> &lineProcessFn)
 
void calcLinebreaksUtf8 (const char *str, std::vector< uint8_t > *resultBreaks)
 Sets resultBreaks to be of the same length as the null-terminated UTF-8 string str with the values enumerated by UnicodeBreaks. More...
 
void calcLinebreaksUtf8 (const char *str, size_t strLength, std::vector< uint8_t > *resultBreaks)
 Sets resultBreaks to be of the same length as the UTF-8 string str with the values enumerated by UnicodeBreaks. More...
 
void calcLinebreaksUtf16 (const uint16_t *str, std::vector< uint8_t > *resultBreaks)
 Sets resultBreaks to be of the same length as the null-terminated UTF-16 string str with the values enumerated by UnicodeBreaks. More...
 
void calcLinebreaksUtf16 (const uint16_t *str, size_t strLength, std::vector< uint8_t > *resultBreaks)
 Sets resultBreaks to be of the same length as the UTF-16 string str with the values enumerated by UnicodeBreaks. More...
 
std::ostream & operator<< (std::ostream &out, const Url &url)
 
std::istream & operator>> (std::istream &is, Url &url)
 
IStreamUrlRef loadUrlStream (const Url &url, const UrlOptions &options=UrlOptions())
 
IStreamUrlRef loadUrlStream (const std::string &url, const std::string &user="", const std::string &password="", const UrlOptions &options=UrlOptions())
 
fs::path expandPath (const fs::path &path)
 Returns a canonical version of path by expanding a "~" and symlinks on the Mac "..", "." and "//". More...
 
fs::path getHomeDirectory ()
 Returns a path to the user's home directory. More...
 
fs::path getDocumentsDirectory ()
 Returns a path to the user's documents directory. More...
 
fs::path getTemporaryDirectory ()
 Returns a path to the user's temporary directory. More...
 
fs::path getTemporaryFilePath (const std::string &prefix="")
 Returns a path that is gauranteed to be unique and is suitable for creating a temporary file. An optional prefix parameters allows specification of a file name prefix, some portion of which will be incorporated into the result. Note a race condition that can exist between the uniqueness of the path and the creation of the file. More...
 
std::string getPathDirectory (const std::string &path)
 Returns the directory portion of file path path, the last component of which must be a file name or a terminating path separator. More...
 
std::string getPathFileName (const std::string &path)
 Returns the file name portion of file path path. For example "C:\Images\Beyonce.jpg" returns "Beyonce.jpg". More...
 
std::string getPathExtension (const std::string &path)
 Returns the file extension of the file located at path. More...
 
bool createDirectories (const fs::path &path, bool createParents=true)
 Creates a directory at path and optionally creates any missing parent directories when createParents is true. Returns true upon success. More...
 
void launchWebBrowser (const Url &url)
 Launches a path in a web browser. More...
 
void deleteFile (const fs::path &path)
 Delete the file at path. Fails quietly if the path does not exist. More...
 
std::vector< std::stringsplit (const std::string &str, char separator, bool compress=true)
 Returns a vector of substrings split by the separator separator. split( "one two three", ' ' ) -> [ "one", "two", "three" ] If compress is TRUE, it will consider consecutive separators as one. More...
 
std::vector< std::stringsplit (const std::string &str, const std::string &separators, bool compress=true)
 Returns a vector of substrings split by the characters in separators. split( "one, two, three", " ," ) -> [ "one", "two", "three" ] If compress is TRUE, it will consider consecutive separators as one. More...
 
std::string loadString (DataSourceRef dataSource)
 Loads the contents of dataSource and returns it as a std::string. More...
 
void sleep (float milliseconds)
 Suspends the execution of the current thread until milliseconds have passed. Supports sub-millisecond precision only on Mac OS X. More...
 
char getPathSeparator ()
 Returns the path separator for the host operating system's file system, '\' on Windows and '/' on Mac OS. More...
 
template<typename T >
std::string toString (const T &t)
 
template<typename T >
fromString (const std::string &s)
 
template<>
Url fromString (const std::string &s)
 
std::vector< std::stringstackTrace ()
 Returns a stack trace (aka backtrace) where stackTrace()[0] == caller, stackTrace()[1] == caller's parent, etc. More...
 
int8_t swapEndian (int8_t val)
 
uint8_t swapEndian (uint8_t val)
 
int16_t swapEndian (int16_t val)
 
uint16_t swapEndian (uint16_t val)
 
int32_t swapEndian (int32_t val)
 
uint32_t swapEndian (uint32_t val)
 
float swapEndian (float val)
 
double swapEndian (double val)
 
void swapEndianBlock (uint16_t *blockPtr, size_t blockSizeInBytes)
 
void swapEndianBlock (float *blockPtr, size_t blockSizeInBytes)
 
template<typename T >
Vec2< T > toPolar (Vec2< T > car)
 Converts a coordinate from rectangular (Cartesian) coordinates to polar coordinates of the form (radius, theta) More...
 
template<typename T >
Vec2< T > fromPolar (Vec2< T > pol)
 Converts a coordinate from polar coordinates of the form (radius, theta) to rectangular coordinates. More...
 
template<typename T , typename Y >
Vec2< T > operator* (Y s, const Vec2< T > &v)
 
template<typename T , typename Y >
Vec2< T > operator* (const Vec2< T > &v, Y s)
 
template<typename T , typename Y >
Vec3< T > operator* (Y s, const Vec3< T > &v)
 
template<typename T , typename Y >
Vec3< T > operator* (const Vec3< T > &v, Y s)
 
template<typename T , typename Y >
Vec4< T > operator* (Y s, const Vec4< T > &v)
 
template<typename T , typename Y >
Vec4< T > operator* (const Vec4< T > &v, Y s)
 
template<typename T >
dot (const Vec2< T > &a, const Vec2< T > &b)
 
template<typename T >
dot (const Vec3< T > &a, const Vec3< T > &b)
 
template<typename T >
dot (const Vec4< T > &a, const Vec4< T > &b)
 
template<typename T >
Vec3< T > cross (const Vec3< T > &a, const Vec3< T > &b)
 
template<typename T >
Vec4< T > cross (const Vec4< T > &a, const Vec4< T > &b)
 
template<typename T >
bool isNaN (const Vec2< T > &a)
 
template<typename T >
bool isNaN (const Vec3< T > &a)
 
template<typename T >
bool isNaN (const Vec4< T > &a)
 
std::ostream & operator<< (std::ostream &out, const XmlTree &xml)
 
template<class T >
void allocate2D (int iCols, int iRows, T **&raatArray)
 
template<class T >
void deallocate2D (T **&raatArray)
 
template BSpline< Vec2ffitBSpline (const std::vector< Vec2f > &samples, int degree, int outputSamples)
 
template BSpline< Vec3ffitBSpline (const std::vector< Vec3f > &samples, int degree, int outputSamples)
 
template BSpline< Vec4ffitBSpline (const std::vector< Vec4f > &samples, int degree, int outputSamples)
 
template int solveCubic (float a, float b, float c, float d, float result[3])
 
template int solveCubic (double a, double b, double c, double d, double result[3])
 
ostream & operator<< (ostream &out, const JsonTree &json)
 
template Matrix44f firstFrame (const Vec3f &firstPoint, const Vec3f &secondPoint, const Vec3f &thirdPoint)
 
template Matrix44f nextFrame (const Matrix44f &prevMatrix, const Vec3f &prevPoint, const Vec3f &curPoint, Vec3f &prevTangent, Vec3f &curTangent)
 
template Matrix44f lastFrame (const Matrix44f &prevMatrix, const Vec3f &prevPoint, const Vec3f &lastPoint)
 
template Matrix44d firstFrame (const Vec3d &firstPoint, const Vec3d &secondPoint, const Vec3d &thirdPoint)
 
template Matrix44d nextFrame (const Matrix44d &prevMatrix, const Vec3d &prevPoint, const Vec3d &curPoint, Vec3d &prevTangent, Vec3d &curTangent)
 
template Matrix44d lastFrame (const Matrix44d &prevMatrix, const Vec3d &prevPoint, const Vec3d &lastPoint)
 
float nlerp (float t, float a, float b)
 
template<typename T >
linearYatX (const Vec2< T > p[2], T x)
 
template<typename T >
size_t linearCrossings (const Vec2< T > p[2], const Vec2f &pt)
 
template<typename T >
std::ostream & operator<< (std::ostream &o, const RectT< T > &rect)
 
voidstdAlloc (void *userData, unsigned int size)
 
void stdFree (void *userData, void *ptr)
 
void safeInternetCloseHandle (HINTERNET hInternet)
 
void testAndThrowHttpStatus (HINTERNET hInternet)
 
void deleteFileAsync (const fs::path &path, std::function< void(fs::path)> callback)
 
void parseItem (const rapidxml::xml_node<> &node, XmlTree *parent, XmlTree *result, const XmlTree::ParseOptions &parseOptions)
 
ostream & operator<< (ostream &out, const XmlTree &xml)
 

Variables

const double EPSILON_VALUE = 4.37114e-05
 

Typedef Documentation

typedef std::shared_ptr<class Capture> cinder::CaptureRef
typedef std::shared_ptr< class ImageSource > cinder::ImageSourceRef
typedef ChannelT<uint8_t> cinder::Channel

8-bit image channel. Synonym for Channel8u.

typedef ChannelT<uint8_t> cinder::Channel8u

8-bit image channel

typedef ChannelT<uint16_t> cinder::Channel16u

16-bit image channel. Suitable as an intermediate representation and ImageIo but not a first-class citizen.

typedef ChannelT<float> cinder::Channel32f

32-bit floating point image channel

typedef ColorT<float> cinder::Color
typedef ColorT<float> cinder::Colorf
typedef ColorT<uint8_t> cinder::Color8u
typedef ColorAT<float> cinder::ColorA
typedef ColorAT<float> cinder::ColorAf
typedef ColorAT<uint8_t> cinder::ColorA8u
typedef std::shared_ptr<class DataSource> cinder::DataSourceRef
typedef std::shared_ptr<class DataSourcePath> cinder::DataSourcePathRef
typedef std::shared_ptr<class DataSourceUrl> cinder::DataSourceUrlRef
typedef std::shared_ptr<class DataSourceBuffer> cinder::DataSourceBufferRef
typedef std::shared_ptr<class DataTarget> cinder::DataTargetRef
typedef std::shared_ptr<class DataTargetPath> cinder::DataTargetPathRef
typedef std::shared_ptr<class DataTargetStream> cinder::DataTargetStreamRef
typedef std::shared_ptr<class Display> cinder::DisplayRef
typedef Frustum<float> cinder::Frustumf
typedef Frustum<double> cinder::Frustumd
typedef uint32_t cinder::CallbackId

Represents a unique identifier for a callback.

typedef std::shared_ptr<class ImageLoader> cinder::ImageLoaderRef
typedef std::shared_ptr< class ImageTarget > cinder::ImageTargetRef
typedef std::shared_ptr<class ImageTargetFile> cinder::ImageTargetFileRef
typedef std::shared_ptr<class ImageSourceFileWic> cinder::ImageSourceFileWicRef
typedef std::shared_ptr<class ImageSourcePng> cinder::ImageSourcePngRef
typedef std::shared_ptr<class ImageTargetFileWic> cinder::ImageTargetFileWicRef
typedef Matrix22<float> cinder::Matrix22f
typedef Matrix22<double> cinder::Matrix22d
typedef Matrix33<float> cinder::Matrix33f
typedef Matrix33<double> cinder::Matrix33d
typedef Matrix44<float> cinder::Matrix44f
typedef Matrix44<double> cinder::Matrix44d
typedef Plane<float> cinder::Planef
typedef Plane<double> cinder::Planed
typedef Quaternion<float> cinder::Quatf
typedef Quaternion<double> cinder::Quatd
typedef RectT<float> cinder::Rectf
typedef RectT<double> cinder::Rectd
typedef std::shared_ptr<class OStream> cinder::OStreamRef
typedef std::shared_ptr<IStreamCinder> cinder::IStreamRef
typedef std::shared_ptr<IoStream> cinder::IoStreamRef
typedef std::shared_ptr<class IStreamFile> cinder::IStreamFileRef
typedef std::shared_ptr<class OStreamFile> cinder::OStreamFileRef
typedef std::shared_ptr<class IoStreamFile> cinder::IoStreamFileRef
typedef std::shared_ptr<class IStreamMem> cinder::IStreamMemRef
typedef std::shared_ptr<class OStreamMem> cinder::OStreamMemRef
typedef boost::iostreams::stream<cinder_stream_source> cinder::cinder_istream
typedef boost::iostreams::stream<cinder_stream_sink> cinder::cinder_ostream
typedef SurfaceT<uint8_t> cinder::Surface

8-bit image. Synonym for Surface8u.

typedef SurfaceT<uint8_t> cinder::Surface8u

8-bit image

typedef SurfaceT<uint16_t> cinder::Surface16u

16-bit image. Suitable as an intermediate representation and ImageIo but not a first-class citizen.

typedef SurfaceT<float> cinder::Surface32f

32-bit floating point image

typedef std::shared_ptr<class Cue> cinder::CueRef
typedef std::shared_ptr< Timeline > cinder::TimelineRef
typedef std::shared_ptr<class TimelineItem> cinder::TimelineItemRef
typedef std::function<float (float)> cinder::EaseFn
typedef std::shared_ptr<class IStreamUrl> cinder::IStreamUrlRef

A pointer to an instance of an IStreamUrl. Can be created using IStreamUrl::createRef()

typedef Vec2<float> cinder::Vec2f
typedef Vec2<double> cinder::Vec2d
typedef Vec3<float> cinder::Vec3f
typedef Vec3<double> cinder::Vec3d
typedef Vec4<float> cinder::Vec4f
typedef Vec4<double> cinder::Vec4d
typedef BSplineFit<float> cinder::BSplineFitf
typedef BSplineFit<double> cinder::BSplineFitd
typedef BSplineFitBasis<float> cinder::BSplineFitBasisf
typedef BSplineFitBasis<double> cinder::BSplineFitBasisd
typedef boost::geometry::model::polygon<boost::geometry::model::d2::point_xy<double> > cinder::polygon
typedef std::multimap<void*,TimelineItemRef>::iterator cinder::s_iter
typedef std::multimap<void*,TimelineItemRef>::const_iterator cinder::s_const_iter

Enumeration Type Documentation

Enumerator
CM_RGB 
CM_HSV 

Values returned by calcBreaksUtf8 and calcBreaksUtf16.

Enumerator
UNICODE_MUST_BREAK 
UNICODE_ALLOW_BREAK 
UNICODE_NO_BREAK 
UNICODE_INSIDE_CHAR 

Function Documentation

pair< Area, Vec2i > cinder::clippedSrcDst ( const Area &  srcSurfaceBounds,
const Area &  srcArea,
const Area &  dstSurfaceBounds,
const Vec2i &  dstLT 
)
std::string cinder::toBase64 ( const std::string input,
int  charsPerLine = 0 
)

Converts input into a Base64-encoded string. If charsPerLine > 0, carriage returns (
) are inserted every charsPerLine characters, rounded down to the nearest multiple of 4.

std::string cinder::toBase64 ( const Buffer &  input,
int  charsPerLine = 0 
)

Converts input into a Base64-encoded string. If charsPerLine > 0, carriage returns (
) are inserted every charsPerLine characters, rounded down to the nearest multiple of 4.

std::string cinder::toBase64 ( const void input,
size_t  inputSize,
int  charsPerLine = 0 
)

Converts input of length inputSize into a Base64-encoded string. If charsPerLine > 0, carriage returns (
) are inserted every charsPerLine characters, rounded down to the nearest multiple of 4.

Buffer cinder::fromBase64 ( const std::string input)

Converts Base64-encoded data input into unencoded data.

Buffer cinder::fromBase64 ( const Buffer &  input)

Converts Base64-encoded data input into unencoded data.

Buffer cinder::fromBase64 ( const void input,
size_t  inputSize 
)

Converts Base64-encoded data input into unencoded data.

template<typename T >
BSpline< T > cinder::fitBSpline ( const std::vector< T > &  samples,
int  degree,
int  outputSamples 
)
Buffer cinder::compressBuffer ( const Buffer &  aBuffer,
int8_t  compressionLevel = DEFAULT_COMPRESSION_LEVEL,
bool  resizeResult = true 
)
Buffer cinder::decompressBuffer ( const Buffer &  aBuffer,
bool  resizeResult = true,
bool  useGZip = false 
)
float cinder::toRadians ( float  x)
double cinder::toRadians ( double  x)
float cinder::toDegrees ( float  x)
double cinder::toDegrees ( double  x)
template<typename T , typename L >
T cinder::lerp ( const T &  a,
const T &  b,
factor 
)
template<typename T >
T cinder::lmap ( val,
inMin,
inMax,
outMin,
outMax 
)
template<typename T , typename L >
T cinder::bezierInterp ( a,
b,
c,
d,
t 
)
template<typename T , typename L >
T cinder::bezierInterpRef ( const T &  a,
const T &  b,
const T &  c,
const T &  d,
t 
)
template<typename T >
T cinder::constrain ( val,
minVal,
maxVal 
)
template<typename T >
T cinder::fract ( x)

Returns the fractional part of x, calculated as x - floor( x )

template<class T >
T cinder::sinx_over_x ( x)
uint32_t cinder::log2floor ( uint32_t  x)
uint32_t cinder::log2ceil ( uint32_t  x)
uint32_t cinder::nextPowerOf2 ( uint32_t  x)
bool cinder::isPowerOf2 ( size_t  x)

Returns true if x is a power of two, false otherwise.

template<typename T >
int cinder::solveLinear ( a,
b,
result[1] 
)
template<typename T >
int cinder::solveQuadratic ( a,
b,
c,
result[2] 
)
template<typename T , int ORDER>
T cinder::rombergIntegral ( a,
b,
const std::function< T(T)> &  SPEEDFN 
)
template<typename T >
int cinder::solveCubic ( a,
b,
c,
d,
result[3] 
)
template<typename T , typename Y >
ColorT<T> cinder::operator* ( s,
const ColorT< T > &  c 
)
template<typename T , typename Y >
ColorAT<T> cinder::operator* ( s,
const ColorAT< T > &  c 
)
Colorf cinder::hsvToRGB ( const Vec3f &  hsv)
Vec3f cinder::rgbToHSV ( const ColorT< float > &  c)
ColorT< uint8_t > cinder::svgNameToRgb ( const char *  svgName,
bool *  found = NULL 
)

Converts the named colors of the SVG spec http://en.wikipedia.org/wiki/Web_colors#X11_color_names to sRGB Color8u. If found is non-NULL, it's set to whether the name was located. Returns black on failure.

std::ostream & cinder::operator<< ( std::ostream &  lhs,
const ColorT< float > &  rhs 
)
std::ostream & cinder::operator<< ( std::ostream &  lhs,
const ColorAT< float > &  rhs 
)
std::ostream & cinder::operator<< ( std::ostream &  lhs,
const ColorT< uint8_t > &  rhs 
)
std::ostream & cinder::operator<< ( std::ostream &  lhs,
const ColorAT< uint8_t > &  rhs 
)
PolyLine2f cinder::calcConvexHull ( const std::vector< Vec2f > &  points)
PolyLine2f cinder::calcConvexHull ( const Vec2f *  points,
size_t  numPoints 
)
PolyLine2f cinder::calcConvexHull ( const Shape2d &  shape)
PolyLine2f cinder::calcConvexHull ( const Path2d &  path)
PolyLine2f cinder::calcConvexHull ( const PolyLine2f &  polyLine)
DataSourceRef cinder::loadFile ( const fs::path &  path)
DataSourceRef cinder::loadUrl ( const Url &  Url,
const UrlOptions &  options = UrlOptions() 
)
DataSourceRef cinder::loadUrl ( const std::string urlString,
const UrlOptions &  options = UrlOptions() 
)
DataTargetPathRef cinder::writeFile ( const fs::path &  path,
bool  createParents = true 
)

Returns a DataTarget to file path path, and optionally creates any necessary directories when createParents is true.

float cinder::easeNone ( float  t)

Easing equation for a simple linear tweening with no easing.

float cinder::easeInQuad ( float  t)

Easing equation for a quadratic (t^2) ease-in, accelerating from zero velocity.

float cinder::easeOutQuad ( float  t)

Easing equation for a quadratic (t^2) ease-out, decelerating to zero velocity.

float cinder::easeInOutQuad ( float  t)

Easing equation for a quadratic (t^2) ease-in/out, accelerating until halfway, then decelerating.

float cinder::easeOutInQuad ( float  t)

Easing equation for a quadratic (t^2) ease-out/in, decelerating until halfway, then accelerating.

float cinder::easeInCubic ( float  t)

Easing equation function for a cubic (t^3) ease-in, accelerating from zero velocity.

float cinder::easeOutCubic ( float  t)

Easing equation for a cubic (t^3) ease-out, decelerating to zero velocity.

float cinder::easeInOutCubic ( float  t)

Easing equation for a cubic (t^3) ease-in/out, accelerating until halfway, then decelerating.

float cinder::easeOutInCubic ( float  t)

Easing equation for a cubic (t^3) ease-out/in, decelerating until halfway, then accelerating.

float cinder::easeInQuart ( float  t)

Easing equation for a quartic (t^4) ease-in, accelerating from zero velocity.

float cinder::easeOutQuart ( float  t)

Easing equation for a quartic (t^4) ease-out, decelerating to zero velocity.

float cinder::easeInOutQuart ( float  t)

Easing equation for a quartic (t^4) ease-in/out, accelerating until halfway, then decelerating.

float cinder::easeOutInQuart ( float  t)

Easing equation for a quartic (t^4) ease-out/in, decelerating until halfway, then accelerating.

float cinder::easeInQuint ( float  t)

Easing equation function for a quintic (t^5) ease-in, accelerating from zero velocity.

float cinder::easeOutQuint ( float  t)

Easing equation for a quintic (t^5) ease-out, decelerating to zero velocity.

float cinder::easeInOutQuint ( float  t)

Easing equation for a quintic (t^5) ease-in/out, accelerating until halfway, then decelerating.

float cinder::easeOutInQuint ( float  t)

Easing equation for a quintic (t^5) ease-out/in, decelerating until halfway, then accelerating.

float cinder::easeInSine ( float  t)

Easing equation for a sinusoidal (sin(t)) ease-in, accelerating from zero velocity.

float cinder::easeOutSine ( float  t)

Easing equation for a sinusoidal (sin(t)) ease-out, decelerating from zero velocity.

float cinder::easeInOutSine ( float  t)

Easing equation for a sinusoidal (sin(t)) ease-in/out, accelerating until halfway, then decelerating.

float cinder::easeOutInSine ( float  t)

Easing equation for a sinusoidal (sin(t)) ease-out/in, decelerating until halfway, then accelerating.

float cinder::easeInExpo ( float  t)

Easing equation for an exponential (2^t) ease-in, accelerating from zero velocity.

float cinder::easeOutExpo ( float  t)

Easing equation for an exponential (2^t) ease-out, decelerating from zero velocity.

float cinder::easeInOutExpo ( float  t)

Easing equation for an exponential (2^t) ease-in/out, accelerating until halfway, then decelerating.

float cinder::easeOutInExpo ( float  t)

Easing equation for an exponential (2^t) ease-out/in, decelerating until halfway, then accelerating.

float cinder::easeInCirc ( float  t)

Easing equation for a circular (sqrt(1-t^2)) ease-in, accelerating from zero velocity.

float cinder::easeOutCirc ( float  t)

Easing equation for a circular (sqrt(1-t^2)) ease-out, decelerating from zero velocity.

float cinder::easeInOutCirc ( float  t)

Easing equation for a circular (sqrt(1-t^2)) ease-in/out, accelerating until halfway, then decelerating.

float cinder::easeOutInCirc ( float  t)

Easing equation for a circular (sqrt(1-t^2)) ease-out/in, decelerating until halfway, then accelerating.

float cinder::easeInBounce ( float  t,
float  a = 1.70158f 
)

Easing equation for a bounce (exponentially decaying parabolic bounce) ease-in, accelerating from zero velocity. The a parameter controls overshoot, the default producing a 10% overshoot.

float cinder::easeOutBounce ( float  t,
float  a = 1.70158f 
)

Easing equation for a bounce (exponentially decaying parabolic bounce) ease-out, decelerating from zero velocity. The a parameter controls overshoot, the default producing a 10% overshoot.

float cinder::easeInOutBounce ( float  t,
float  a = 1.70158f 
)

Easing equation for a bounce (exponentially decaying parabolic bounce) ease-in/out, accelerating until halfway, then decelerating. The a parameter controls overshoot, the default producing a 10% overshoot.

float cinder::easeOutInBounce ( float  t,
float  a = 1.70158f 
)

Easing equation for a bounce (exponentially decaying parabolic bounce) ease-out/in, decelerating until halfway, then accelerating. The a parameter controls overshoot, the default producing a 10% overshoot.

float cinder::easeInBack ( float  t,
float  s = 1.70158f 
)

Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-in, accelerating from zero velocity. The a parameter controls overshoot, the default producing a 10% overshoot.

float cinder::easeOutBack ( float  t,
float  s = 1.70158f 
)

Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-out, decelerating from zero velocity. The a parameter controls overshoot, the default producing a 10% overshoot.

float cinder::easeInOutBack ( float  t,
float  s = 1.70158f 
)

Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-in/out, accelerating until halfway, then decelerating. The a parameter controls overshoot, the default producing a 10% overshoot.

float cinder::easeOutInBack ( float  t,
float  s 
)

Easing equation for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) ease-out/in, decelerating until halfway, then accelerating. The a parameter controls overshoot, the default producing a 10% overshoot.

float cinder::easeInElastic ( float  t,
float  amplitude,
float  period 
)

Easing equation for an elastic (exponentially decaying sine wave) ease-in, accelerating from zero velocity.

float cinder::easeOutElastic ( float  t,
float  amplitude,
float  period 
)

Easing equation for an elastic (exponentially decaying sine wave) ease-out, decelerating from zero velocity.

float cinder::easeInOutElastic ( float  t,
float  amplitude,
float  period 
)

Easing equation for an elastic (exponentially decaying sine wave) ease-in/out, accelerating until halfway, then decelerating.

float cinder::easeOutInElastic ( float  t,
float  amplitude,
float  period 
)

Easing equation for an elastic (exponentially decaying sine wave) ease-out/in, decelerating until halfway, then accelerating.

float cinder::easeInAtan ( float  t,
float  a = 15 
)

Easing equation for an atan ease-in, accelerating from zero velocity. Used by permssion from Chris McKenzie.

float cinder::easeOutAtan ( float  t,
float  a = 15 
)

Easing equation for an atan ease-out, decelerating from zero velocity. Used by permssion from Chris McKenzie.

float cinder::easeInOutAtan ( float  t,
float  a = 15 
)

Easing equation for an atan ease-in/out, accelerating until halfway, then decelerating. Used by permssion from Chris McKenzie.

ImageSourceRef cinder::loadImage ( const fs::path &  path,
ImageSource::Options  options = ImageSource::Options(),
std::string  extension = "" 
)

Loads an image from the file path path. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG.

ImageSourceRef cinder::loadImage ( DataSourceRef  dataSource,
ImageSource::Options  options = ImageSource::Options(),
std::string  extension = "" 
)

Loads an image from dataSource. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG.

void cinder::writeImage ( DataTargetRef  dataTarget,
const ImageSourceRef &  imageSource,
ImageTarget::Options  options = ImageTarget::Options(),
std::string  extension = "" 
)

Writes imageSource to dataTarget. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG.

void cinder::writeImage ( const fs::path &  path,
const ImageSourceRef &  imageSource,
ImageTarget::Options  options = ImageTarget::Options(),
std::string  extension = "" 
)

Writes imageSource to file path path. Optional extension parameter allows specification of a file type. For example, "jpg" would force the file to load as a JPEG

Note
If path does not exist, the necessary directories are created automatically.
void cinder::writeImage ( ImageTargetRef  imageTarget,
const ImageSourceRef &  imageSource 
)

Writes imageSource to imageTarget.

std::ostream& cinder::operator<< ( std::ostream &  out,
const JsonTree &  json 
)
template<typename T >
Matrix44< T > cinder::firstFrame ( const Vec3< T > &  firstPoint,
const Vec3< T > &  secondPoint,
const Vec3< T > &  thirdPoint 
)
template<typename T >
Matrix44< T > cinder::nextFrame ( const Matrix44< T > &  prevMatrix,
const Vec3< T > &  prevPoint,
const Vec3< T > &  curPoint,
Vec3< T > &  prevTangent,
Vec3< T > &  curTangent 
)
template<typename T >
Matrix44< T > cinder::lastFrame ( const Matrix44< T > &  prevMatrix,
const Vec3< T > &  prevPoint,
const Vec3< T > &  lastPoint 
)
template<typename T >
Matrix44<T> cinder::firstFrame ( const Vec4< T > &  firstPoint,
const Vec4< T > &  secondPoint,
const Vec4< T > &  thirdPoint 
)
template<typename T >
Matrix44<T> cinder::nextFrame ( const Matrix44< T > &  prevMatrix,
const Vec4< T > &  prevPoint,
const Vec4< T > &  curPoint,
Vec4< T > &  prevTangent,
Vec4< T > &  curTangent 
)
template<typename T >
Matrix44<T> cinder::lastFrame ( const Matrix44< T > &  prevMatrix,
const Vec4< T > &  prevPoint,
const Vec4< T > &  lastPoint 
)
std::ostream& cinder::operator<< ( std::ostream &  out,
const Path2d &  p 
)
template<typename T >
std::ostream& cinder::operator<< ( std::ostream &  o,
const Plane< T > &  p 
)
template<typename T >
Vec3<T> cinder::operator* ( const Vec3< T > &  vec,
const Quaternion< T > &  q 
)
void cinder::randSeed ( unsigned long  seedValue)

Resets the static random generator to the specific seed seedValue.

bool cinder::randBool ( )

returns a random boolean value

int32_t cinder::randInt ( )

returns a random integer in the range [0,2147483647]

int32_t cinder::randInt ( int32_t  v)

returns a random integer in the range [0,v)

int32_t cinder::randInt ( int32_t  a,
int32_t  b 
)

returns a random integer in the range [a,b)

float cinder::randFloat ( )

returns a random float in the range [0.0f,1.0f]

float cinder::randFloat ( float  v)

returns a random float in the range [0.0f,v]

float cinder::randFloat ( float  a,
float  b 
)

returns a random float in the range [a,b]

float cinder::randPosNegFloat ( float  a,
float  b 
)

returns a random float in the range [a,b] or the range [-b,-a]

Vec3f cinder::randVec3f ( )

returns a random Vec3f that represents a point on the unit sphere

Vec2f cinder::randVec2f ( )

returns a random Vec2f that represents a point on the unit circle

float cinder::randGaussian ( )

returns a random float via Gaussian distribution

void cinder::getClippedScaledRects ( const Area &  srcSurfaceBounds,
const Rectf &  srcRect,
const Area &  dstSurfaceBounds,
const Area &  dstArea,
Rectf *  resultSrcRect,
Area *  resultDstRect 
)
IStreamFileRef cinder::loadFileStream ( const fs::path &  path)

Opens the file lcoated at path for read access as a stream.

std::shared_ptr< OStreamFile > cinder::writeFileStream ( const fs::path &  path,
bool  createParents = true 
)

Opens the file located at path for write access as a stream, and creates it if it does not exist. Optionally creates any intermediate directories when createParents is true.

IoStreamFileRef cinder::readWriteFileStream ( const fs::path &  path)

Opens a path for read-write access as a stream.

void cinder::loadStreamMemory ( IStreamRef  is,
std::shared_ptr< uint8_t > *  resultData,
size_t *  resultDataSize 
)

Loads the contents of a stream into a contiguous block of memory, pointed to by resultData. The size of this block is stored in resultDataSize.

Buffer cinder::loadStreamBuffer ( IStreamRef  is)

Loads the contents of a stream into a Buffer.

std::ostream& cinder::operator<< ( std::ostream &  outp,
const System::NetworkAdapter &  adapter 
)
Surface cinder::renderString ( const std::string str,
const Font &  font,
const ColorA &  color,
float *  baselineOffset = 0 
)

Renders a single string and returns it as a Surface. Optional baselineOffset pointer will receive how many pixels of descender are in the returned Surface. Offset rendering the result Surface by this amount in order to preserve a consistent baseline. Consider gl::drawString() as a more convenient alternative.

template<typename T >
T cinder::tweenLerp ( const T &  start,
const T &  end,
float  time 
)
template<>
Quatf cinder::tweenLerp ( const Quatf &  start,
const Quatf &  end,
float  time 
)
template<>
Quatd cinder::tweenLerp ( const Quatd &  start,
const Quatd &  end,
float  time 
)
std::u16string cinder::toUtf16 ( const char *  utf8Str,
size_t  lengthInBytes = 0 
)
std::u16string cinder::toUtf16 ( const std::string utf8Str)
std::u32string cinder::toUtf32 ( const char *  utf8Str,
size_t  lengthInBytes = 0 
)
std::u32string cinder::toUtf32 ( const std::string utf8Str)
std::string cinder::toUtf8 ( const char16_t *  utf16Str,
size_t  lengthInBytes = 0 
)
std::string cinder::toUtf8 ( const std::u16string &  utf16Str)
std::string cinder::toUtf8 ( const char32_t *  utf32str,
size_t  lengthInBytes = 0 
)
std::string cinder::toUtf8 ( const std::u32string &  utf32Str)
std::u16string cinder::toUtf16 ( const std::u32string &  utf32str)
std::u32string cinder::toUtf32 ( const std::u16string &  utf16str)
size_t cinder::stringLengthUtf8 ( const char *  str,
size_t  lengthInBytes = 0 
)

Returns the number of characters (not bytes) in the the UTF-8 string str. Optimize operation by supplying a non-default lengthInBytes of str.

uint32_t cinder::nextCharUtf8 ( const char *  str,
size_t *  inOutByte,
size_t  lengthInBytes = 0 
)

Returns the UTF-32 code point of the next character in str, relative to the byte inOutByte. Increments inOutByte to be the first byte of the next character. Optimize operation by supplying a non-default lengthInBytes of str.

size_t cinder::advanceCharUtf8 ( const char *  str,
size_t  numChars,
size_t  lengthInBytes = 0 
)

Returns the index in bytes of the next character in str, advanced by numChars characters. Optimize operation by supplying a non-default lengthInBytes of str.

void cinder::lineBreakUtf8 ( const char *  str,
const std::function< bool(const char *, size_t)> &  measureFn,
const std::function< void(const char *, size_t)> &  lineProcessFn 
)
void cinder::calcLinebreaksUtf8 ( const char *  str,
std::vector< uint8_t > *  resultBreaks 
)

Sets resultBreaks to be of the same length as the null-terminated UTF-8 string str with the values enumerated by UnicodeBreaks.

void cinder::calcLinebreaksUtf8 ( const char *  str,
size_t  strLength,
std::vector< uint8_t > *  resultBreaks 
)

Sets resultBreaks to be of the same length as the UTF-8 string str with the values enumerated by UnicodeBreaks.

void cinder::calcLinebreaksUtf16 ( const uint16_t *  str,
std::vector< uint8_t > *  resultBreaks 
)

Sets resultBreaks to be of the same length as the null-terminated UTF-16 string str with the values enumerated by UnicodeBreaks.

void cinder::calcLinebreaksUtf16 ( const uint16_t *  str,
size_t  strLength,
std::vector< uint8_t > *  resultBreaks 
)

Sets resultBreaks to be of the same length as the UTF-16 string str with the values enumerated by UnicodeBreaks.

std::ostream& cinder::operator<< ( std::ostream &  out,
const Url &  url 
)
std::istream& cinder::operator>> ( std::istream &  is,
Url &  url 
)
IStreamUrlRef cinder::loadUrlStream ( const Url &  url,
const UrlOptions &  options = UrlOptions() 
)
IStreamUrlRef cinder::loadUrlStream ( const std::string url,
const std::string user = "",
const std::string password = "",
const UrlOptions &  options = UrlOptions() 
)
fs::path cinder::expandPath ( const fs::path &  path)

Returns a canonical version of path by expanding a "~" and symlinks on the Mac "..", "." and "//".

fs::path cinder::getHomeDirectory ( )

Returns a path to the user's home directory.

fs::path cinder::getDocumentsDirectory ( )

Returns a path to the user's documents directory.

fs::path cinder::getTemporaryDirectory ( )

Returns a path to the user's temporary directory.

fs::path cinder::getTemporaryFilePath ( const std::string prefix = "")

Returns a path that is gauranteed to be unique and is suitable for creating a temporary file. An optional prefix parameters allows specification of a file name prefix, some portion of which will be incorporated into the result. Note a race condition that can exist between the uniqueness of the path and the creation of the file.

std::string cinder::getPathDirectory ( const std::string path)

Returns the directory portion of file path path, the last component of which must be a file name or a terminating path separator.

std::string cinder::getPathFileName ( const std::string path)

Returns the file name portion of file path path. For example "C:\Images\Beyonce.jpg" returns "Beyonce.jpg".

std::string cinder::getPathExtension ( const std::string path)

Returns the file extension of the file located at path.

bool cinder::createDirectories ( const fs::path &  path,
bool  createParents = true 
)

Creates a directory at path and optionally creates any missing parent directories when createParents is true. Returns true upon success.

void cinder::launchWebBrowser ( const Url &  url)

Launches a path in a web browser.

void cinder::deleteFile ( const fs::path &  path)

Delete the file at path. Fails quietly if the path does not exist.

std::vector< std::string > cinder::split ( const std::string str,
char  separator,
bool  compress = true 
)

Returns a vector of substrings split by the separator separator. split( "one two three", ' ' ) -> [ "one", "two", "three" ] If compress is TRUE, it will consider consecutive separators as one.

std::vector< std::string > cinder::split ( const std::string str,
const std::string separators,
bool  compress = true 
)

Returns a vector of substrings split by the characters in separators. split( "one, two, three", " ," ) -> [ "one", "two", "three" ] If compress is TRUE, it will consider consecutive separators as one.

string cinder::loadString ( DataSourceRef  dataSource)

Loads the contents of dataSource and returns it as a std::string.

void cinder::sleep ( float  milliseconds)

Suspends the execution of the current thread until milliseconds have passed. Supports sub-millisecond precision only on Mac OS X.

char cinder::getPathSeparator ( )

Returns the path separator for the host operating system's file system, '\' on Windows and '/' on Mac OS.

template<typename T >
std::string cinder::toString ( const T &  t)
template<typename T >
T cinder::fromString ( const std::string s)
template<>
Url cinder::fromString ( const std::string s)
vector< string > cinder::stackTrace ( )

Returns a stack trace (aka backtrace) where stackTrace()[0] == caller, stackTrace()[1] == caller's parent, etc.

int8_t cinder::swapEndian ( int8_t  val)
uint8_t cinder::swapEndian ( uint8_t  val)
int16_t cinder::swapEndian ( int16_t  val)
uint16_t cinder::swapEndian ( uint16_t  val)
int32_t cinder::swapEndian ( int32_t  val)
uint32_t cinder::swapEndian ( uint32_t  val)
float cinder::swapEndian ( float  val)
double cinder::swapEndian ( double  val)
void cinder::swapEndianBlock ( uint16_t *  blockPtr,
size_t  blockSizeInBytes 
)
void cinder::swapEndianBlock ( float *  blockPtr,
size_t  blockSizeInBytes 
)
template<typename T >
Vec2<T> cinder::toPolar ( Vec2< T >  car)

Converts a coordinate from rectangular (Cartesian) coordinates to polar coordinates of the form (radius, theta)

template<typename T >
Vec2<T> cinder::fromPolar ( Vec2< T >  pol)

Converts a coordinate from polar coordinates of the form (radius, theta) to rectangular coordinates.

template<typename T , typename Y >
Vec2<T> cinder::operator* ( s,
const Vec2< T > &  v 
)
template<typename T , typename Y >
Vec2<T> cinder::operator* ( const Vec2< T > &  v,
s 
)
template<typename T , typename Y >
Vec3<T> cinder::operator* ( s,
const Vec3< T > &  v 
)
template<typename T , typename Y >
Vec3<T> cinder::operator* ( const Vec3< T > &  v,
s 
)
template<typename T , typename Y >
Vec4<T> cinder::operator* ( s,
const Vec4< T > &  v 
)
template<typename T , typename Y >
Vec4<T> cinder::operator* ( const Vec4< T > &  v,
s 
)
template<typename T >
T cinder::dot ( const Vec2< T > &  a,
const Vec2< T > &  b 
)
template<typename T >
T cinder::dot ( const Vec3< T > &  a,
const Vec3< T > &  b 
)
template<typename T >
T cinder::dot ( const Vec4< T > &  a,
const Vec4< T > &  b 
)
template<typename T >
Vec3<T> cinder::cross ( const Vec3< T > &  a,
const Vec3< T > &  b 
)
template<typename T >
Vec4<T> cinder::cross ( const Vec4< T > &  a,
const Vec4< T > &  b 
)
template<typename T >
bool cinder::isNaN ( const Vec2< T > &  a)
template<typename T >
bool cinder::isNaN ( const Vec3< T > &  a)
template<typename T >
bool cinder::isNaN ( const Vec4< T > &  a)
std::ostream& cinder::operator<< ( std::ostream &  out,
const XmlTree &  xml 
)

Streams the XmlTree xml to std::ostream out with standard formatting.

template<class T >
void cinder::allocate2D ( int  iCols,
int  iRows,
T **&  raatArray 
)
template<class T >
void cinder::deallocate2D ( T **&  raatArray)
template BSpline<Vec2f> cinder::fitBSpline ( const std::vector< Vec2f > &  samples,
int  degree,
int  outputSamples 
)
template BSpline<Vec3f> cinder::fitBSpline ( const std::vector< Vec3f > &  samples,
int  degree,
int  outputSamples 
)
template BSpline<Vec4f> cinder::fitBSpline ( const std::vector< Vec4f > &  samples,
int  degree,
int  outputSamples 
)
template int cinder::solveCubic ( float  a,
float  b,
float  c,
float  d,
float  result[3] 
)
template int cinder::solveCubic ( double  a,
double  b,
double  c,
double  d,
double  result[3] 
)
ostream& cinder::operator<< ( ostream &  out,
const JsonTree &  json 
)
template Matrix44f cinder::firstFrame ( const Vec3f &  firstPoint,
const Vec3f &  secondPoint,
const Vec3f &  thirdPoint 
)
template Matrix44f cinder::nextFrame ( const Matrix44f &  prevMatrix,
const Vec3f &  prevPoint,
const Vec3f &  curPoint,
Vec3f &  prevTangent,
Vec3f &  curTangent 
)
template Matrix44f cinder::lastFrame ( const Matrix44f &  prevMatrix,
const Vec3f &  prevPoint,
const Vec3f &  lastPoint 
)
template Matrix44d cinder::firstFrame ( const Vec3d &  firstPoint,
const Vec3d &  secondPoint,
const Vec3d &  thirdPoint 
)
template Matrix44d cinder::nextFrame ( const Matrix44d &  prevMatrix,
const Vec3d &  prevPoint,
const Vec3d &  curPoint,
Vec3d &  prevTangent,
Vec3d &  curTangent 
)
template Matrix44d cinder::lastFrame ( const Matrix44d &  prevMatrix,
const Vec3d &  prevPoint,
const Vec3d &  lastPoint 
)
float cinder::nlerp ( float  t,
float  a,
float  b 
)
template<typename T >
T cinder::linearYatX ( const Vec2< T >  p[2],
x 
)
template<typename T >
size_t cinder::linearCrossings ( const Vec2< T >  p[2],
const Vec2f &  pt 
)
template<typename T >
std::ostream& cinder::operator<< ( std::ostream &  o,
const RectT< T > &  rect 
)
void* cinder::stdAlloc ( void userData,
unsigned int  size 
)
void cinder::stdFree ( void userData,
void ptr 
)
void cinder::safeInternetCloseHandle ( HINTERNET  hInternet)
void cinder::testAndThrowHttpStatus ( HINTERNET  hInternet)
void cinder::deleteFileAsync ( const fs::path &  path,
std::function< void(fs::path)>  callback 
)
void cinder::parseItem ( const rapidxml::xml_node<> &  node,
XmlTree *  parent,
XmlTree *  result,
const XmlTree::ParseOptions &  parseOptions 
)
ostream& cinder::operator<< ( ostream &  out,
const XmlTree &  xml 
)

Variable Documentation

const double cinder::EPSILON_VALUE = 4.37114e-05