SPIN Framework
Public Types | Public Member Functions | Static Public Member Functions

spin::KinectCloud Class Reference

Point Cloud that gets data from the Microsoft Kinect. More...

#include <KinectCloud.h>

Inheritance diagram for spin::KinectCloud:
spin::GroupNode spin::ReferencedNode

List of all members.

Public Types

enum  DrawMode {
  NONE, POINTS, LINES, LINE_STRIP,
  LINE_LOOP, TRIANGLES, TRIANGLE_STRIP, TRIANGLE_FAN,
  QUADS, QUAD_STRIP, POLYGON, LIGHTPOINTS,
  BOXES
}

Public Member Functions

 KinectCloud (SceneManager *sceneManager, const char *initID)
virtual void callbackUpdate (osg::NodeVisitor *nv)
void setDrawMode (DrawMode mode)
void setSpacing (float spacing)
void setRandomCoeff (float randomCoeff)
void setPointSize (float pointsize)
void setColor (float red, float green, float blue, float alpha)
int getDrawMode () const
float getSpacing () const
float getRandomCoeff () const
float getPointSize () const
osg::Vec4 getColor () const
virtual std::vector< lo_message > getState () const

Static Public Member Functions

static void * freenectThreadFunction (void *arg)
static void depthCallback (freenect_device *dev, void *v_depth, uint32_t timestamp)

Detailed Description

Point Cloud that gets data from the Microsoft Kinect.


Member Function Documentation

void spin::KinectCloud::callbackUpdate ( osg::NodeVisitor *  nv) [virtual]

update from kinect

Reimplemented from spin::GroupNode.

void * spin::KinectCloud::freenectThreadFunction ( void *  arg) [static]

thread function (grabs data from freenect)

osg::Vec4 spin::KinectCloud::getColor ( ) const [inline]

Returns a Vector4 indicating the color in RGBA values.

int spin::KinectCloud::getDrawMode ( ) const [inline]

Returns the Draw Mode set from the choices in the DrawMode enumerator.

std::vector< lo_message > spin::KinectCloud::getState ( ) const [virtual]

For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node

Reimplemented from spin::GroupNode.

void spin::KinectCloud::setColor ( float  red,
float  green,
float  blue,
float  alpha 
)

Sets the color of the drawn point cloud in RGBA.

void spin::KinectCloud::setDrawMode ( DrawMode  mode)

Sets the mode for drawing the point cloud, based on the types in the DrawMode enumerator.

void spin::KinectCloud::setPointSize ( float  pointsize)

Sets the size of the points in the point cloud.

void spin::KinectCloud::setSpacing ( float  spacing)

Sets the spacing between points generated by the point cloud.


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