本文整理汇总了C++中LLPointer::getValue方法的典型用法代码示例。如果您正苦于以下问题:C++ LLPointer::getValue方法的具体用法?C++ LLPointer::getValue怎么用?C++ LLPointer::getValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLPointer
的用法示例。
在下文中一共展示了LLPointer::getValue方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onSpeakerMuteEvent
bool LLParticipantList::onSpeakerMuteEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata)
{
LLPointer<LLSpeaker> speakerp = (LLSpeaker*)event->getSource();
if (speakerp.isNull()) return false;
// update UI on confirmation of moderator mutes
if (event->getValue().asString() == "voice")
{
childSetValue("moderator_allow_voice", !speakerp->mModeratorMutedVoice);
}
else if (event->getValue().asString() == "text")
{
childSetValue("moderator_allow_text", !speakerp->mModeratorMutedText);
}
return true;
}
示例2:
//
// LLPanelActiveSpeakers::SpeakerMuteListener
//
bool LLPanelActiveSpeakers::SpeakerMuteListener::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
LLPointer<LLSpeaker> speakerp = (LLSpeaker*)event->getSource();
if (speakerp.isNull()) return false;
// update UI on confirmation of moderator mutes
if (event->getValue().asString() == "voice")
{
mPanel->childSetValue("moderator_allow_voice", !speakerp->mModeratorMutedVoice);
}
if (event->getValue().asString() == "text")
{
mPanel->childSetValue("moderator_allow_text", !speakerp->mModeratorMutedText);
}
return true;
}
示例3: onModeratorUpdateEvent
bool LLParticipantList::onModeratorUpdateEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata)
{
const LLSD& evt_data = event->getValue();
if ( evt_data.has("id") && evt_data.has("is_moderator") )
{
LLUUID id = evt_data["id"];
bool is_moderator = evt_data["is_moderator"];
if ( id.notNull() )
{
if ( is_moderator )
mModeratorList.insert(id);
else
{
std::set<LLUUID>::iterator it = mModeratorList.find (id);
if ( it != mModeratorList.end () )
{
mModeratorToRemoveList.insert(id);
mModeratorList.erase(id);
}
}
// apply changes immediately
onAvatarListRefreshed(mAvatarList, LLSD());
}
}
return true;
}
示例4: onRemoveItemEvent
bool LLParticipantList::onRemoveItemEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata)
{
const S32 pos = mAvatarList->getItemIndex(event->getValue().asUUID());
if (pos != -1)
{
mAvatarList->deleteSingleItem(pos);
}
return true;
}
示例5: onRemoveItemEvent
bool LLParticipantList::onRemoveItemEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata)
{
uuid_vec_t& group_members = mAvatarList->getIDs();
uuid_vec_t::iterator pos = std::find(group_members.begin(), group_members.end(), event->getValue().asUUID());
if(pos != group_members.end())
{
group_members.erase(pos);
mAvatarList->setDirty();
}
return true;
}
示例6: onAddItemEvent
bool LLParticipantList::onAddItemEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata)
{
LLUUID uu_id = event->getValue().asUUID();
if (mValidateSpeakerCallback && !mValidateSpeakerCallback(uu_id))
{
return true;
}
addAvatarIDExceptAgent(uu_id);
return true;
}
示例7: onSpeakerMuteEvent
bool LLParticipantList::onSpeakerMuteEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata)
{
LLPointer<LLSpeaker> speakerp = (LLSpeaker*)event->getSource();
if (speakerp.isNull()) return false;
// update UI on confirmation of moderator mutes
if (event->getValue().asString() == "voice")
{
update_speaker_indicator(mAvatarList, speakerp->mID, speakerp->mModeratorMutedVoice);
}
return true;
}
示例8:
//
// LLParticipantList::SpeakerAddListener
//
bool LLParticipantList::SpeakerAddListener::handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata)
{
/**
* We need to filter speaking objects. These objects shouldn't appear in the list
* @see LLFloaterChat::addChat() in llviewermessage.cpp to get detailed call hierarchy
*/
const LLUUID& speaker_id = event->getValue().asUUID();
LLPointer<LLSpeaker> speaker = mParent.mSpeakerMgr->findSpeaker(speaker_id);
if(speaker.isNull() || speaker->mType == LLSpeaker::SPEAKER_OBJECT)
{
return false;
}
return mParent.onAddItemEvent(event, userdata);
}
示例9: handleEvent
virtual bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
gViewerThrottle.setMaxBandwidth((F32) event->getValue().asReal()*1024);
return true;
}
示例10: handleEvent
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
gVectorizeSkin = event->getValue().asBoolean();
update_vector_performances();
return true;
}