コード例 #1
0
ファイル: group.cpp プロジェクト: AlkexGas/Torque3D
void GuiInspectorGroup::animateToContents()
{
   calculateHeights();
   if(size() > 0)
      animateTo( mExpanded.extent.y );
   else
      animateTo( mHeader.extent.y );
}
コード例 #2
0
void ofxAnimatableOfPoint::animateToAfterDelay( ofPoint where, float delay ){
	
	if (delay <= 0.0f){
		animateTo(where);
	}else{
		//originalTempPoint_ = getCurrentPosition();
		targetTempPoint_ = where;
		ofxAnimatable::startAnimationAfterDelay(delay);
	}
}
コード例 #3
0
void ofxAnimatableFloat::animateToAfterDelay( float newVal, float delay ){
	
	if (delay <= 0.0f){
		animateTo(newVal);
	}else{
		//originalTempVal_ = val();
		targetTempVal_ = newVal;
		ofxAnimatable::startAnimationAfterDelay(delay);
	}
}
コード例 #4
0
void ofxAnimatableOfColor::startBlinking( float blinkDuration) {

    setRepeatType(LOOP_BACK_AND_FORTH);
    setCurve(EASE_IN_EASE_OUT);
    setAlphaOnly(0.0f);
    setDuration( blinkDuration );
    ofColor c = getCurrentColor();
    c.a = 255;
    animateTo( c );
}
コード例 #5
0
void ofxAnimatableOfColor::fadeIn() {

    ofColor targetC = getCurrentColor();

    if ( sizeof(targetC.r) == sizeof(float) )
        targetC.a = (float)1.0f;
    else if ( sizeof(targetC.r) == sizeof(unsigned char) )
        targetC.a = (unsigned char) numeric_limits<unsigned char>::max();
    else if ( sizeof(targetC.r) == sizeof(unsigned short) )
        targetC.a = (unsigned char) numeric_limits<unsigned short>::max();

    animateTo( targetC );
}
コード例 #6
0
void ofxAnimatableOfPoint::animateToIfFinished( ofPoint where ){

	if (animating_ == false){
		animateTo(where);
	}
}
コード例 #7
0
void ofxAnimatableOfPoint::startAfterWait(){
	animateTo(targetTempPoint_);
}
コード例 #8
0
void ofxAnimatableFloat::startAfterWait(){
	animateTo(targetTempVal_);
}
コード例 #9
0
void ofxAnimatableFloat::animateToIfFinished( float newVal ){
	if ( animating_ == false ){
		animateTo(newVal);
	}
}
コード例 #10
0
void ofxAnimatableOfColor::fadeOut() {

    ofColor targetC = getCurrentColor();
    targetC.a = 0.0f;
    animateTo( targetC );
}
コード例 #11
0
void ofxAnimatableOfColor::animateToIfFinished( ofColor col ) {
    if (animating_ == false) {
        animateTo( col );
    }
}
コード例 #12
0
void ofxAnimatableOfColor::startAfterWait() {
    animateTo(targetTempColor_);
}