本文整理汇总了C++中ofPtr::getMinReplaySecs方法的典型用法代码示例。如果您正苦于以下问题:C++ ofPtr::getMinReplaySecs方法的具体用法?C++ ofPtr::getMinReplaySecs怎么用?C++ ofPtr::getMinReplaySecs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ofPtr
的用法示例。
在下文中一共展示了ofPtr::getMinReplaySecs方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: saveZone
void bankManager::saveZone(ofxXmlSettings & XML, ofPtr<triggerZone> z){
XML.addValue("NAME", z->getName());
XML.addValue("POS_X", z->getPos().x);
XML.addValue("POS_Y", z->getPos().y);
XML.addValue("POS_Z", z->getPos().z);
XML.addValue("SHAPE", z->getShape());
XML.addValue("DIM_X", z->getBoxDims().x);
XML.addValue("DIM_Y", z->getBoxDims().y);
XML.addValue("DIM_Z", z->getBoxDims().z);
XML.addValue("RADIUS", z->getRadius());
XML.addValue("SOUNDFILE", z->getSoundFileName());
XML.addValue("IS_LOOP", z->getIsLoop());
XML.addValue("IS_PLAY_TO_END", z->getIsPlayToEnd());
XML.addValue("INVERTED", z->getIsOccInvert()); //left as is for compatability
XML.addValue("MOV_ENABLED", z->getIsMovEnabled());
XML.addValue("MOV_INVERTED", z->getIsMovInvert());
XML.addValue("ENABLED", z->getIsEnabled());
//XML.addValue("SENSITIVITY", z->getSensitivity());
XML.addValue("MIN_REPLAY", z->getMinReplaySecs());
XML.addValue("CHANGE_BUFF", z->getChangeBuff());
XML.addValue("SYNTH_TYPE", z->getSynthType());
XML.addValue("SELECTOR_TYPE", z->getSelectorType());
saveSynth(XML, z);
}
示例2: updateTZGuiElements
void testApp::updateTZGuiElements(ofPtr<triggerZone> zn){
sc2TextInput[1]->setTextString(zn->getName());
sc2TextInput[2]->setTextString(zn->getSoundFileName());
ofVec3f tp = zn->getPos();
tPosX->setValue(tp.x);
tPosY->setValue(tp.y);
tPosZ->setValue(tp.z);
radSlid->setValue(zn->getRadius());
eblTog->setValue(zn->getIsEnabled());
loopTog->setValue(zn->getIsLoop());
playToEndTog->setValue(zn->getIsPlayToEnd());
occInvTog->setValue(zn->getIsOccInvert());
movEnaTog->setValue(zn->getIsMovEnabled());
movInvTog->setValue(zn->getIsMovInvert());
xDimSlid->setValue(zn->getBoxDims().x);
yDimSlid->setValue(zn->getBoxDims().y);
zDimSlid->setValue(zn->getBoxDims().z);
//sensSlider->setValue(zn->getSensitivity());
repSlider->setValue(zn->getMinReplaySecs());
cbSlider->setValue(zn->getChangeBuff());
synthTypeDisp->setLabel("SYNTH_TYPE: " + synthDictionary::getSynthString(zn->getSynthType()));
selTypeDisp->setLabel("SELECTOR_TYPE: " + synthDictionary::getSelectorString(zn->getSelectorType()));
shapeText->setTextString(zn->getShapeString());
zn->setIsSelected(true);
}