コード例 #1
0
// ctor
//--------------------------------------------------------------
ofxHandGenerator::ofxHandGenerator(){
	// set defaults
	setMinDistBetweenHands(100);
	setMaxNumHands(2);
	setSmoothing(1);
	setMinTimeBetweenHands(1000);
}
コード例 #2
0
ofxSimpleGuiSliderBase<Type>::ofxSimpleGuiSliderBase(string name, Type &value, Type min, Type max) : ofxSimpleGuiControl(name) {
	this->value = &value;
	defaultValue = value;
	this->min	= min;
	this->max	= max;
	
	targetValue	= value;
	oldValue	= targetValue;
	controlType = "SliderBase";
	
	setIncrement(0);
	setSmoothing(0);
	
	setup();
}
コード例 #3
0
ファイル: Joint.cpp プロジェクト: genekogan/ofxKinectV2-OSC
void Joint::clone(Joint* other, SmoothingTechnique technique) {
	setPoint(other->getPoint());
	setType(other->getType());
	setTrackingState(other->getTrackingState());
	setSmoothing(technique);
}
コード例 #4
0
ファイル: Joint.cpp プロジェクト: genekogan/ofxKinectV2-OSC
void Joint::clone(Joint* other) {
	setPoint(other->getPoint());
	setType(other->getType());
	setTrackingState(other->getTrackingState());
	setSmoothing(other->getSmoothing());
}