libGizmod/GizmoEventSoundVisualization.cpp

Go to the documentation of this file.
00001 
00012 /*
00013   
00014   Copyright (c) 2007, Tim Burrell
00015   Licensed under the Apache License, Version 2.0 (the "License");
00016   you may not use this file except in compliance with the License.
00017   You may obtain a copy of the License at 
00018 
00019         http://www.apache.org/licenses/LICENSE-2.0
00020 
00021   Unless required by applicable law or agreed to in writing, software
00022   distributed under the License is distributed on an "AS IS" BASIS,
00023   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00024   See the License for the specific language governing permissions and 
00025   limitations under the License. 
00026   
00027 */
00028 
00029 #include "GizmoEventSoundVisualization.hpp"
00030 #include "../libH/Debug.hpp"
00031 #include "../libH/Exception.hpp"
00032 #include <boost/shared_ptr.hpp>
00033 
00034 using namespace std;
00035 using namespace boost;
00036 using namespace H;
00037 using namespace Gizmod;
00038 
00040 // Type Defs
00042 
00044 // Construction
00046 
00050 GizmoEventSoundVisualization::GizmoEventSoundVisualization() : GizmoEvent(GIZMO_EVENTCLASS_SOUNDVISUALIZATION, false) {
00051         mVULeft = mVURight = mVUCombined = 0;
00052         mType = SOUNDVISUALIZATION_RENDER;
00053 }
00054 
00058 GizmoEventSoundVisualization::GizmoEventSoundVisualization(float VULeft, float VURight, float VUCombined, bool IsRemote) : GizmoEvent(GIZMO_EVENTCLASS_SOUNDVISUALIZATION, IsRemote) {
00059         mVULeft = VULeft;
00060         mVURight = VURight;
00061         mVUCombined = VUCombined;
00062         mType = SOUNDVISUALIZATION_RENDER;
00063 }
00064 
00068 GizmoEventSoundVisualization::GizmoEventSoundVisualization(SoundVisualizationEventType Type, bool IsRemote) : GizmoEvent(GIZMO_EVENTCLASS_SOUNDVISUALIZATION, IsRemote) {
00069         mVULeft = mVURight = mVUCombined = 0;
00070         mType = Type;
00071 }
00072 
00076 GizmoEventSoundVisualization::~GizmoEventSoundVisualization() {
00077 }
00078 
00080 // Class Body
00082 
00087 float GizmoEventSoundVisualization::getVULeft() {
00088         return mVULeft;
00089 }
00090 
00095 float GizmoEventSoundVisualization::getVURight() {
00096         return mVURight;
00097 }
00098 
00103 float GizmoEventSoundVisualization::getVUCombined() {
00104         return mVUCombined;
00105 }
00106 
00111 SoundVisualizationEventType GizmoEventSoundVisualization::getType() {
00112         return mType;
00113 }

Generated on Wed Nov 7 10:04:16 2007 for gizmod by  doxygen 1.5.3