Chipmunk2D Pro API Reference  7.0.1
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
Instance Methods | Properties | List of all members
ChipmunkAbstractSampler Class Reference

A sampler is an object that provides a basis function to build shapes from. More...

#import <ChipmunkAutoGeometry.h>

Inherits NSObject.

Inherited by ChipmunkBitmapSampler, ChipmunkBlockSampler, and ChipmunkPointCloudSampler.

Instance Methods

(id) - initWithSamplingFunction:
 Designated initializer.
 
(cpFloat- sample:
 Sample at a specific point.
 
(ChipmunkPolylineSet *) - march:xSamples:ySamples:hard:
 March a certain area of the sampler.
 

Properties

cpFloat marchThreshold
 The threshold passed to the cpMarch*() functions. More...
 
cpMarchSampleFunc sampleFunc
 Get the primitive cpMarchSampleFunc used by this sampler.
 

Detailed Description

A sampler is an object that provides a basis function to build shapes from.

This can be from a block of pixel data (loaded from a file, or dumped from the screen), or even a mathematical function such as Perlin noise.

Property Documentation

- (cpFloat) marchThreshold
readwritenonatomicassign

The threshold passed to the cpMarch*() functions.

The value of the contour you want to extract.


The documentation for this class was generated from the following file: