Adding Active tripod project
This commit is contained in:
parent
cd7fa5c908
commit
3053981175
17
.gitignore
vendored
17
.gitignore
vendored
@ -1 +1,18 @@
|
|||||||
|
#mac
|
||||||
|
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|
||||||
|
|
||||||
|
#windows
|
||||||
|
|
||||||
|
*.sdf
|
||||||
|
*.dll
|
||||||
|
*.suo
|
||||||
|
*.opensdf
|
||||||
|
*.exe
|
||||||
|
*.exp
|
||||||
|
.lib
|
||||||
|
of/Active Tripod/ipch
|
||||||
|
of/Active Tripod/obj
|
||||||
|
of/Active Tripod/ipch
|
||||||
|
of/Active Tripod/obj
|
||||||
14
README.md
14
README.md
@ -1,5 +1,17 @@
|
|||||||
CRITICAL-INFRASTRUCTURE
|
CRITICAL-INFRASTRUCTURE
|
||||||
=======================
|
=======================
|
||||||
[Jamie Allen](http://heaviside.net) & [David Gauthier](http://gauthiier.info)
|
[Jamie Allen](http://heaviside.net) & [David Gauthier](http://gauthiier.info)
|
||||||
|
|
||||||
CRITICAL INFRASTRUCTURE unearths the undergiring of media technics, as a ‘media archeology of the present’ — understanding the post-digital as not just horizontal and temporal but material, stratal, and vertical — infra-digital and infra-technical.
|
CRITICAL INFRASTRUCTURE unearths the undergiring of media technics, as a ‘media archeology of the present’ — understanding the post-digital as not just horizontal and temporal but material, stratal, and vertical — infra-digital and infra-technical.
|
||||||
|
|
||||||
|
|
||||||
|
Active Tripods application
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
Built using openFrameworks v0.8.0 and Visual Studio Express 2012
|
||||||
|
|
||||||
|
Addons used:
|
||||||
|
ofxSpacebrew
|
||||||
|
ofxLibwebsockets
|
||||||
|
ofxUI
|
||||||
|
ofxXmlSettings
|
||||||
25
of/Active Tripod/Active_Tripod.sln
Normal file
25
of/Active Tripod/Active_Tripod.sln
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Express 2012 for Windows Desktop
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openframeworksLib", "..\..\..\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj", "{5837595D-ACA9-485C-8E76-729040CE4B0B}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Active_Tripod", "Active_Tripod.vcxproj", "{7FD42DF7-442E-479A-BA76-D0022F99702A}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
177
of/Active Tripod/Active_Tripod.vcxproj
Normal file
177
of/Active Tripod/Active_Tripod.vcxproj
Normal file
@ -0,0 +1,177 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{7FD42DF7-442E-479A-BA76-D0022F99702A}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>example_button</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v110</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<PlatformToolset>v110</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksRelease.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksDebug.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<OutDir>bin\</OutDir>
|
||||||
|
<IntDir>obj\$(Configuration)\</IntDir>
|
||||||
|
<TargetName>$(ProjectName)_debug</TargetName>
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<GenerateManifest>true</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<OutDir>bin\</OutDir>
|
||||||
|
<IntDir>obj\$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);src;src\data;src\gui;src\visual;src\visual\graph;..\..\..\addons\ofxLibwebsockets\libs\jsoncpp;..\..\..\addons\ofxLibwebsockets\libs\jsoncpp\json;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\;..\..\..\addons\ofxLibwebsockets\libs\openssl\openssl;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include\ofxLibwebsockets;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src;..\..\..\addons\ofxLibwebsockets\src;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port\win32helpers;..\..\..\addons\ofxSpacebrew\src;..\..\..\addons\ofxUI\src;..\..\..\addons\ofxXmlSettings\libs;..\..\..\addons\ofxXmlSettings\src</AdditionalIncludeDirectories>
|
||||||
|
<CompileAs>CompileAsCpp</CompileAs>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies);websockets_static.lib;ZLIB.lib</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories);..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\lib\win32\Release</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||||
|
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);src;src\data;src\gui;src\visual;src\visual\graph;..\..\..\addons\ofxLibwebsockets\libs\jsoncpp;..\..\..\addons\ofxLibwebsockets\libs\jsoncpp\json;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\;..\..\..\addons\ofxLibwebsockets\libs\openssl\openssl;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include\ofxLibwebsockets;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src;..\..\..\addons\ofxLibwebsockets\src;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port\win32helpers;..\..\..\addons\ofxSpacebrew\src;..\..\..\addons\ofxUI\src;..\..\..\addons\ofxXmlSettings\libs;..\..\..\addons\ofxXmlSettings\src</AdditionalIncludeDirectories>
|
||||||
|
<CompileAs>CompileAsCpp</CompileAs>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies);websockets_static.lib;ZLIB.lib</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories);..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\lib\win32\Release</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxXmlSettings\libs\tinyxml.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxXmlSettings\libs\tinyxmlerror.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxXmlSettings\libs\tinyxmlparser.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxXmlSettings\src\ofxXmlSettings.cpp" />
|
||||||
|
<ClCompile Include="src\data\DataManager.cpp" />
|
||||||
|
<ClCompile Include="src\gui\GUI.cpp" />
|
||||||
|
<ClCompile Include="src\gui\GUIManager.cpp" />
|
||||||
|
<ClCompile Include="src\main.cpp" />
|
||||||
|
<ClCompile Include="src\testApp.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\jsoncpp\jsoncpp.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Server.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Reactor.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Protocol.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Events.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Connection.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Client.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxSpacebrew\src\ofxSpacebrew.cpp" />
|
||||||
|
<ClCompile Include="src\visual\graph\AbstractGraph.cpp" />
|
||||||
|
<ClCompile Include="src\visual\graph\BarGraph.cpp" />
|
||||||
|
<ClCompile Include="src\visual\Scene.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUI.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUI2DPad.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIBiLabelSlider.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIButton.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUICanvas.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUICircleSlider.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUICustomImageButton.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIDropDownList.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIEventArgs.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIFPS.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIFPSSlider.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImage.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImageButton.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImageSampler.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImageSlider.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImageToggle.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUILabel.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUILabelButton.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUILabelToggle.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMinimalSlider.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMovingGraph.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMultiImageButton.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMultiImageSlider.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMultiImageToggle.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUINumberDialer.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIRadio.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIRangeSlider.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIRectangle.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIRotarySlider.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIScrollableCanvas.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUISlider.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUISpacer.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUISpectrum.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUITextInput.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIToggle.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIToggleMatrix.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIWaveform.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIWidget.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIWidgetWithLabel.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxXmlSettings\libs\tinyxml.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxXmlSettings\src\ofxXmlSettings.h" />
|
||||||
|
<ClInclude Include="src\data\DataManager.h" />
|
||||||
|
<ClInclude Include="src\Globals.h" />
|
||||||
|
<ClInclude Include="src\gui\GUI.h" />
|
||||||
|
<ClInclude Include="src\gui\GUIManager.h" />
|
||||||
|
<ClInclude Include="src\testApp.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxSpacebrew\src\ofxSpacebrew.h" />
|
||||||
|
<ClInclude Include="src\visual\graph\AbstractGraph.h" />
|
||||||
|
<ClInclude Include="src\visual\graph\BarGraph.h" />
|
||||||
|
<ClInclude Include="src\visual\Scene.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\..\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj">
|
||||||
|
<Project>{5837595d-aca9-485c-8e76-729040ce4b0b}</Project>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="icon.rc">
|
||||||
|
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/D_DEBUG %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ResourceCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
</Project>
|
||||||
278
of/Active Tripod/Active_Tripod.vcxproj.filters
Normal file
278
of/Active Tripod/Active_Tripod.vcxproj.filters
Normal file
@ -0,0 +1,278 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="src\testApp.cpp">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\main.cpp">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\main.cpp">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\testApp.cpp">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxSpacebrew\src\ofxSpacebrew.cpp">
|
||||||
|
<Filter>addons\ofxSpacebrew\src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Client.cpp">
|
||||||
|
<Filter>addons\ofxLibwebsockets</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Connection.cpp">
|
||||||
|
<Filter>addons\ofxLibwebsockets</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Events.cpp">
|
||||||
|
<Filter>addons\ofxLibwebsockets</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\jsoncpp\jsoncpp.cpp">
|
||||||
|
<Filter>addons\ofxLibwebsockets</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Protocol.cpp">
|
||||||
|
<Filter>addons\ofxLibwebsockets</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Reactor.cpp">
|
||||||
|
<Filter>addons\ofxLibwebsockets</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Server.cpp">
|
||||||
|
<Filter>addons\ofxLibwebsockets</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\gui\GUIManager.cpp">
|
||||||
|
<Filter>src\gui</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\gui\GUI.cpp">
|
||||||
|
<Filter>src\gui</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\visual\Scene.cpp">
|
||||||
|
<Filter>src\visual</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxXmlSettings\src\ofxXmlSettings.cpp">
|
||||||
|
<Filter>addons\ofxXmlSettings\src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxXmlSettings\libs\tinyxmlerror.cpp">
|
||||||
|
<Filter>addons\ofxXmlSettings\libs</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxXmlSettings\libs\tinyxmlparser.cpp">
|
||||||
|
<Filter>addons\ofxXmlSettings\libs</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxXmlSettings\libs\tinyxml.cpp">
|
||||||
|
<Filter>addons\ofxXmlSettings\libs</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\visual\graph\AbstractGraph.cpp">
|
||||||
|
<Filter>src\visual\graph</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\visual\graph\BarGraph.cpp">
|
||||||
|
<Filter>src\visual\graph</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\data\DataManager.cpp">
|
||||||
|
<Filter>src\data</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="src">
|
||||||
|
<UniqueIdentifier>{d8376475-7454-4a24-b08a-aac121d3ad6f}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons">
|
||||||
|
<UniqueIdentifier>{71834F65-F3A9-211E-73B8-DC85}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxSpacebrew">
|
||||||
|
<UniqueIdentifier>{D889AD41-F822-1754-5360-4780}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxSpacebrew\src">
|
||||||
|
<UniqueIdentifier>{6F7542EE-2155-F039-FF50-9283}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxLibwebsockets">
|
||||||
|
<UniqueIdentifier>{ca866310-597e-4cab-872a-79a6c6731c4f}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxUI">
|
||||||
|
<UniqueIdentifier>{1d52263f-a564-42a2-a48e-a5f058563027}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxUI\src">
|
||||||
|
<UniqueIdentifier>{4470ffa6-14a4-4448-935c-2680e7709772}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="src\data">
|
||||||
|
<UniqueIdentifier>{85e2e8d7-61c5-421f-80a1-a181318756d8}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="src\gui">
|
||||||
|
<UniqueIdentifier>{704fb09e-e9eb-4571-a6bc-0051290332ff}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="src\visual">
|
||||||
|
<UniqueIdentifier>{32181620-b1e1-4ddd-baf1-be858dbdd054}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="src\event">
|
||||||
|
<UniqueIdentifier>{d0e58c3e-73ff-4129-b3f9-30d2bed23283}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxXmlSettings">
|
||||||
|
<UniqueIdentifier>{0cb14682-bdb0-41a7-9e76-735bd144c47b}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxXmlSettings\src">
|
||||||
|
<UniqueIdentifier>{a220a6ba-0f6e-4668-aaa0-bc0a037f87a9}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxXmlSettings\libs">
|
||||||
|
<UniqueIdentifier>{38a594ea-79d2-4f4e-bcfe-3eeb49ab3de9}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="src\visual\graph">
|
||||||
|
<UniqueIdentifier>{93208e3d-c398-4400-8666-06931df26fe1}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="src\testApp.h">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\testApp.h">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxSpacebrew\src\ofxSpacebrew.h">
|
||||||
|
<Filter>addons\ofxSpacebrew\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIEventArgs.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIFPS.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIFPSSlider.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImage.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImageButton.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImageSampler.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImageSlider.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIImageToggle.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUILabel.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUILabelButton.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUILabelToggle.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMinimalSlider.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMovingGraph.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMultiImageButton.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMultiImageSlider.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIMultiImageToggle.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUINumberDialer.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIRadio.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIRangeSlider.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIRectangle.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIRotarySlider.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIScrollableCanvas.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUISlider.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUISpacer.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUISpectrum.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUITextInput.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIToggle.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIToggleMatrix.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIWaveform.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIWidget.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIWidgetWithLabel.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUI.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUI2DPad.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIBiLabelSlider.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIButton.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUICanvas.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUICircleSlider.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUICustomImageButton.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxUI\src\ofxUIDropDownList.h">
|
||||||
|
<Filter>addons\ofxUI\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\gui\GUIManager.h">
|
||||||
|
<Filter>src\gui</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\gui\GUI.h">
|
||||||
|
<Filter>src\gui</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\visual\Scene.h">
|
||||||
|
<Filter>src\visual</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\Globals.h">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxXmlSettings\src\ofxXmlSettings.h">
|
||||||
|
<Filter>addons\ofxXmlSettings\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxXmlSettings\libs\tinyxml.h">
|
||||||
|
<Filter>addons\ofxXmlSettings\libs</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\visual\graph\AbstractGraph.h">
|
||||||
|
<Filter>src\visual\graph</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\visual\graph\BarGraph.h">
|
||||||
|
<Filter>src\visual\graph</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\data\DataManager.h">
|
||||||
|
<Filter>src\data</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="icon.rc">
|
||||||
|
<Filter>addons\ofxLibwebsockets</Filter>
|
||||||
|
</ResourceCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
11
of/Active Tripod/Active_Tripod.vcxproj.user
Normal file
11
of/Active Tripod/Active_Tripod.vcxproj.user
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LocalDebuggerWorkingDirectory>$(ProjectDir)/bin</LocalDebuggerWorkingDirectory>
|
||||||
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<LocalDebuggerWorkingDirectory>$(ProjectDir)/bin</LocalDebuggerWorkingDirectory>
|
||||||
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
9
of/Active Tripod/Project.xcconfig
Normal file
9
of/Active Tripod/Project.xcconfig
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
//THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT.
|
||||||
|
//THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED
|
||||||
|
OF_PATH = ../../..
|
||||||
|
|
||||||
|
//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
|
||||||
|
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"
|
||||||
|
|
||||||
|
OTHER_LDFLAGS = $(OF_CORE_LIBS)
|
||||||
|
HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
|
||||||
2
of/Active Tripod/addons.make
Normal file
2
of/Active Tripod/addons.make
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ofxLibwebsockets
|
||||||
|
ofxSpacebrew
|
||||||
BIN
of/Active Tripod/bin/Active_Tripod.lib
Normal file
BIN
of/Active Tripod/bin/Active_Tripod.lib
Normal file
Binary file not shown.
0
of/Active Tripod/bin/data/.gitkeep
Normal file
0
of/Active Tripod/bin/data/.gitkeep
Normal file
40
of/Active Tripod/bin/data/GUI/BACKGROUNDguiPagesettings.xml
Normal file
40
of/Active Tripod/bin/data/GUI/BACKGROUNDguiPagesettings.xml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Start red</Name>
|
||||||
|
<Value>74.654602051</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Start green</Name>
|
||||||
|
<Value>74.654602051</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Start blue</Name>
|
||||||
|
<Value>78.009864807</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Start alpha</Name>
|
||||||
|
<Value>255.000000000</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>End red</Name>
|
||||||
|
<Value>12.582237244</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>End green</Name>
|
||||||
|
<Value>13.421052933</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>End blue</Name>
|
||||||
|
<Value>13.421052933</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>End alpha</Name>
|
||||||
|
<Value>255.000000000</Value>
|
||||||
|
</Widget>
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Graph Item X Gap</Name>
|
||||||
|
<Value>21.875000000</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>BarWidth</Name>
|
||||||
|
<Value>9.736842155</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Data0 red</Name>
|
||||||
|
<Value>190.411193848</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Data0 green</Name>
|
||||||
|
<Value>141.759872437</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Data0 blue</Name>
|
||||||
|
<Value>0.000000000</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Data0 alpha</Name>
|
||||||
|
<Value>255.000000000</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Data1 red</Name>
|
||||||
|
<Value>43.618423462</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Data1 green</Name>
|
||||||
|
<Value>68.782897949</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Data1 blue</Name>
|
||||||
|
<Value>163.569076538</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Data1 alpha</Name>
|
||||||
|
<Value>255.000000000</Value>
|
||||||
|
</Widget>
|
||||||
150
of/Active Tripod/bin/data/GUI/CAMERAguiPagesettings.xml
Normal file
150
of/Active Tripod/bin/data/GUI/CAMERAguiPagesettings.xml
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI0-DATA - Light Level</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI0-BATT - Battery Level of node 0</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-DATA - Air Quality</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-BATT - Battery Level of node 1</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI2-DATA - Humidity</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-BATT - Battery Level of node 2</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 1</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 2</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 3</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 4</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 5</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 6</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 7</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 8</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 9</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 10</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 11</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 12</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 13</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 14</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 15</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 16</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 17</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 18</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 19</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 20</Name>
|
||||||
|
<Value>1</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 21</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 22</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 23</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 24</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
BIN
of/Active Tripod/bin/data/GUI/NewMedia Fett.ttf
Normal file
BIN
of/Active Tripod/bin/data/GUI/NewMedia Fett.ttf
Normal file
Binary file not shown.
150
of/Active Tripod/bin/data/GUI/PUBLISHER 0guiPagesettings.xml
Normal file
150
of/Active Tripod/bin/data/GUI/PUBLISHER 0guiPagesettings.xml
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI0-DATA - Light Level</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI0-BATT - Battery Level of node 0</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-DATA - Air Quality</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-BATT - Battery Level of node 1</Name>
|
||||||
|
<Value>1</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI2-DATA - Humidity</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-BATT - Battery Level of node 2</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 1</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 2</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 3</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 4</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 5</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 6</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 7</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 8</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 9</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 10</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 11</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 12</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 13</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 14</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 15</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 16</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 17</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 18</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 19</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 20</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 21</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 22</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 23</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 24</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
150
of/Active Tripod/bin/data/GUI/PUBLISHER 1guiPagesettings.xml
Normal file
150
of/Active Tripod/bin/data/GUI/PUBLISHER 1guiPagesettings.xml
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI0-DATA - Light Level</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI0-BATT - Battery Level of node 0</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-DATA - Air Quality</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-BATT - Battery Level of node 1</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI2-DATA - Humidity</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-BATT - Battery Level of node 2</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 1</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 2</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 3</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 4</Name>
|
||||||
|
<Value>1</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 5</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 6</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 7</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 8</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 9</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 10</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 11</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 12</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 13</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 14</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 15</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 16</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 17</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 18</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 19</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 20</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 21</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 22</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 23</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 24</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
150
of/Active Tripod/bin/data/GUI/PUBLISHER 2guiPagesettings.xml
Normal file
150
of/Active Tripod/bin/data/GUI/PUBLISHER 2guiPagesettings.xml
Normal file
@ -0,0 +1,150 @@
|
|||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI0-DATA - Light Level</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI0-BATT - Battery Level of node 0</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-DATA - Air Quality</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-BATT - Battery Level of node 1</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI2-DATA - Humidity</Name>
|
||||||
|
<Value>1</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>CI1-BATT - Battery Level of node 2</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 1</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 2</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 3</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 4</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 5</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 6</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 7</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 8</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 9</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 10</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 11</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 12</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 13</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 14</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 15</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 16</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 17</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 18</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 19</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 20</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 21</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 22</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 23</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>temp 24</Name>
|
||||||
|
<Value>0</Value>
|
||||||
|
</Widget>
|
||||||
20
of/Active Tripod/bin/data/GUI/SIMULATIONguiPagesettings.xml
Normal file
20
of/Active Tripod/bin/data/GUI/SIMULATIONguiPagesettings.xml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<Widget>
|
||||||
|
<Kind>2</Kind>
|
||||||
|
<Name>Toggle Data Simulation</Name>
|
||||||
|
<Value>1</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Speed (data per frame)</Name>
|
||||||
|
<Value>1.582236767</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Perlin X Scale (data size)</Name>
|
||||||
|
<Value>0.148730263</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>Perlin Y Scale (time f)</Name>
|
||||||
|
<Value>0.147088811</Value>
|
||||||
|
</Widget>
|
||||||
20
of/Active Tripod/bin/data/GUI/VARIOUSguiPagesettings.xml
Normal file
20
of/Active Tripod/bin/data/GUI/VARIOUSguiPagesettings.xml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>RED</Name>
|
||||||
|
<Value>68.782897949</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>GREEN</Name>
|
||||||
|
<Value>67.944076538</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>BLUE</Name>
|
||||||
|
<Value>104.013153076</Value>
|
||||||
|
</Widget>
|
||||||
|
<Widget>
|
||||||
|
<Kind>4</Kind>
|
||||||
|
<Name>ALPHA</Name>
|
||||||
|
<Value>200.476974487</Value>
|
||||||
|
</Widget>
|
||||||
2808
of/Active Tripod/example_button.xcodeproj/project.pbxproj
Normal file
2808
of/Active Tripod/example_button.xcodeproj/project.pbxproj
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,84 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
<Testables>
|
||||||
|
</Testables>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
@ -0,0 +1,84 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
buildConfiguration = "Release">
|
||||||
|
<Testables>
|
||||||
|
</Testables>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Release">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
8
of/Active Tripod/icon.rc
Normal file
8
of/Active Tripod/icon.rc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// Icon Resource Definition
|
||||||
|
#define MAIN_ICON 102
|
||||||
|
|
||||||
|
#if defined(_DEBUG)
|
||||||
|
MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico"
|
||||||
|
#else
|
||||||
|
MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico"
|
||||||
|
#endif
|
||||||
20
of/Active Tripod/openFrameworks-Info.plist
Normal file
20
of/Active Tripod/openFrameworks-Info.plist
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.yourcompany.openFrameworks</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
3
of/Active Tripod/src/Globals.h
Normal file
3
of/Active Tripod/src/Globals.h
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
|
//#define IS_DATA_SIMULATED
|
||||||
96
of/Active Tripod/src/data/DataManager.cpp
Normal file
96
of/Active Tripod/src/data/DataManager.cpp
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
#include "DataManager.h"
|
||||||
|
#include "testApp.h"
|
||||||
|
#include "Globals.h"
|
||||||
|
|
||||||
|
void DataManager::setup()
|
||||||
|
{
|
||||||
|
app = (testApp*)ofGetAppPtr();
|
||||||
|
|
||||||
|
ofFile file;
|
||||||
|
if(file.open("c:\\CRITICAL_INFRASTRUCTURE_config.txt"))
|
||||||
|
{
|
||||||
|
ofBuffer buf = file.readToBuffer() ;
|
||||||
|
file.close();
|
||||||
|
string appIDStr = buf.getFirstLine();
|
||||||
|
appId = ofToInt(appIDStr);
|
||||||
|
printf("config loaded - appIDStr:%s\n", appIDStr.c_str());
|
||||||
|
//string port = buf.getNextLine();
|
||||||
|
publisher0Name = appIDStr + "_0";
|
||||||
|
publisher1Name = appIDStr + "_1";
|
||||||
|
}
|
||||||
|
|
||||||
|
newData.resize(2);
|
||||||
|
|
||||||
|
isPublisher0DataReceived = false;
|
||||||
|
isPublisher1DataReceived = false;
|
||||||
|
|
||||||
|
setupSpacebrew();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DataManager::setupSpacebrew()
|
||||||
|
{
|
||||||
|
string host = "54.200.6.109"; // Spacebrew::SPACEBREW_CLOUD; // "localhost";
|
||||||
|
string name = "CRITTICAL INFRASTRUCTURE";
|
||||||
|
string description = "Description goes here. Not sure why.";
|
||||||
|
|
||||||
|
spacebrew.addSubscribe(publisher0Name, Spacebrew::TYPE_RANGE);
|
||||||
|
spacebrew.addSubscribe(publisher1Name, Spacebrew::TYPE_RANGE);
|
||||||
|
spacebrew.connect( host, name, description );
|
||||||
|
|
||||||
|
// listen to spacebrew events
|
||||||
|
Spacebrew::addListener(this, spacebrew);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DataManager::update()
|
||||||
|
{
|
||||||
|
if (isPublisher0DataReceived && isPublisher1DataReceived)
|
||||||
|
{
|
||||||
|
isPublisher0DataReceived = false;
|
||||||
|
isPublisher1DataReceived = false;
|
||||||
|
|
||||||
|
// send a DataReceived event
|
||||||
|
app->scene.barGraph.addNewData(newData);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (isDataSimulated)
|
||||||
|
{
|
||||||
|
if (ofGetFrameNum() % (int)simulationSpeed == 0)
|
||||||
|
{
|
||||||
|
//newData[0] = (int)(ofNoise(newData.size() * 0.04, ofGetFrameNum() * 0.03, ofGetElapsedTimef() * 0.1) * 1000);
|
||||||
|
newData[0] = (int)(ofNoise(newData.size() * perlinXScale, ofGetElapsedTimef() * perlinYScale) * 1000);
|
||||||
|
newData[1] = (int)(ofNoise((newData.size() + 500) * perlinXScale, (ofGetElapsedTimef() + 1000) * perlinYScale) * 1000);
|
||||||
|
app->scene.barGraph.addNewData(newData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DataManager::draw()
|
||||||
|
{
|
||||||
|
ofPushStyle();
|
||||||
|
ofSetColor(255, 0, 0);
|
||||||
|
ofCircle(sin(ofGetElapsedTimef() * 0.5) * 300 + 300, 100, 20);
|
||||||
|
ofPopStyle();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void DataManager::onMessage( Spacebrew::Message & m )
|
||||||
|
{
|
||||||
|
if (m.name == publisher0Name)
|
||||||
|
{
|
||||||
|
isPublisher0DataReceived = true;
|
||||||
|
//printf("frameNum: %i, publisher0Name: %i \n", ofGetFrameNum(), m.valueRange());
|
||||||
|
newData[0] = m.valueRange();
|
||||||
|
}
|
||||||
|
else if (m.name == publisher1Name)
|
||||||
|
{
|
||||||
|
isPublisher1DataReceived = true;
|
||||||
|
//printf("frameNum: %i, publisher1Name: %i \n", ofGetFrameNum(), m.valueRange());
|
||||||
|
newData[1] = m.valueRange();
|
||||||
|
}
|
||||||
|
}
|
||||||
43
of/Active Tripod/src/data/DataManager.h
Normal file
43
of/Active Tripod/src/data/DataManager.h
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ofMain.h"
|
||||||
|
|
||||||
|
#include "ofxSpacebrew.h"
|
||||||
|
|
||||||
|
#include "ofMain.h"
|
||||||
|
#include "ofxSpacebrew.h"
|
||||||
|
|
||||||
|
class testApp;
|
||||||
|
|
||||||
|
class DataManager
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
void setup();
|
||||||
|
void setupSpacebrew();
|
||||||
|
void update();
|
||||||
|
void draw();
|
||||||
|
|
||||||
|
testApp* app;
|
||||||
|
|
||||||
|
int appId;
|
||||||
|
|
||||||
|
// create your spacebrew object
|
||||||
|
Spacebrew::Connection spacebrew;
|
||||||
|
|
||||||
|
string publisher0Name;
|
||||||
|
string publisher1Name;
|
||||||
|
|
||||||
|
vector<int> newData;
|
||||||
|
|
||||||
|
bool isPublisher0DataReceived;
|
||||||
|
bool isPublisher1DataReceived;
|
||||||
|
|
||||||
|
bool isDataSimulated;
|
||||||
|
float perlinXScale;
|
||||||
|
float perlinYScale;
|
||||||
|
float simulationSpeed;
|
||||||
|
|
||||||
|
// listen to spacebrew Messages
|
||||||
|
void onMessage( Spacebrew::Message & m );
|
||||||
|
};
|
||||||
175
of/Active Tripod/src/gui/GUI.cpp
Normal file
175
of/Active Tripod/src/gui/GUI.cpp
Normal file
@ -0,0 +1,175 @@
|
|||||||
|
//
|
||||||
|
// gui->cpp
|
||||||
|
// emptyExample
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "GUI.h"
|
||||||
|
#include "testApp.h"
|
||||||
|
|
||||||
|
void GUI::setup()
|
||||||
|
{
|
||||||
|
app = (testApp*)ofGetAppPtr();
|
||||||
|
GUIManager::setup();
|
||||||
|
|
||||||
|
dim = 8;
|
||||||
|
|
||||||
|
addKeyboardShortcutsGUI();
|
||||||
|
addGraphAnimationGUI();
|
||||||
|
addBarGraphDesignGUI();
|
||||||
|
addGraphSimulationGUI();
|
||||||
|
addBackgroundGUI();
|
||||||
|
addVariousGUI();
|
||||||
|
|
||||||
|
setGUIColour();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool GUI::getVisible()
|
||||||
|
{
|
||||||
|
return GUIManager::getVisible();
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUI::addKeyboardShortcutsGUI()
|
||||||
|
{
|
||||||
|
string title = "KEYBOARD SHORTCUTS";
|
||||||
|
ofxUICanvas* gui = getNewGUI(title);
|
||||||
|
|
||||||
|
gui->addLabel("SPACE - SHOW/HIDE GUI", OFX_UI_FONT_SMALL);
|
||||||
|
gui->addLabel("'[' - PREVIOUS GUI", OFX_UI_FONT_SMALL);
|
||||||
|
gui->addLabel("']' - NEXT GUI", OFX_UI_FONT_SMALL);
|
||||||
|
|
||||||
|
|
||||||
|
finaliseCanvas(gui, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUI::addGraphAnimationGUI()
|
||||||
|
{
|
||||||
|
string title = "GRAPH ANIMATION";
|
||||||
|
ofxUICanvas* gui = getNewGUI(title);
|
||||||
|
|
||||||
|
finaliseCanvas(gui, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUI::addBarGraphDesignGUI()
|
||||||
|
{
|
||||||
|
string title = "BAR GRAPH DESIGN";
|
||||||
|
ofxUICanvas* gui = getNewGUI(title);
|
||||||
|
|
||||||
|
gui->addSlider("Graph Item X Gap", 5, 50, &app->scene.barGraph.graphItemXGap, length, dim);
|
||||||
|
gui->addSlider("BarWidth", 2, 50, &app->scene.barGraph.barWidth, length, dim);
|
||||||
|
|
||||||
|
gui->addSlider("Data0 red", 0, 255, &app->scene.barGraph.col0[0], length, dim);
|
||||||
|
gui->addSlider("Data0 green", 0, 255, &app->scene.barGraph.col0[1], length, dim);
|
||||||
|
gui->addSlider("Data0 blue", 0, 255, &app->scene.barGraph.col0[2], length, dim);
|
||||||
|
gui->addSlider("Data0 alpha", 0, 255, &app->scene.barGraph.col0[3], length, dim);
|
||||||
|
gui->addSlider("Data1 red", 0, 255, &app->scene.barGraph.col1[0], length, dim);
|
||||||
|
gui->addSlider("Data1 green", 0, 255, &app->scene.barGraph.col1[1], length, dim);
|
||||||
|
gui->addSlider("Data1 blue", 0, 255, &app->scene.barGraph.col1[2], length, dim);
|
||||||
|
gui->addSlider("Data1 alpha", 0, 255, &app->scene.barGraph.col1[3], length, dim);
|
||||||
|
|
||||||
|
finaliseCanvas(gui, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUI::addGraphSimulationGUI()
|
||||||
|
{
|
||||||
|
string title = "SIMULATION";
|
||||||
|
ofxUICanvas* gui = getNewGUI(title);
|
||||||
|
|
||||||
|
gui->addToggle("Toggle Data Simulation", &app->dataManager.isDataSimulated, toggleDim, toggleDim);
|
||||||
|
gui->addSlider("Speed (data per frame)", 1, 60, &app->dataManager.simulationSpeed, length, dim);
|
||||||
|
gui->addSlider("Perlin X Scale (data size)", 0.001, 0.5, &app->dataManager.perlinXScale, length, dim);
|
||||||
|
gui->addSlider("Perlin Y Scale (time f)", 0.001, 0.5, &app->dataManager.perlinYScale, length, dim);
|
||||||
|
|
||||||
|
finaliseCanvas(gui, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUI::addBackgroundGUI()
|
||||||
|
{
|
||||||
|
string title = "BACKGROUND";
|
||||||
|
ofxUICanvas* gui = getNewGUI(title);
|
||||||
|
|
||||||
|
gui->addLabel("GRADIENT COLOUR");
|
||||||
|
gui->addSlider("Start red", 0, 255, &app->scene.bgGradStartCol[0], length, dim);
|
||||||
|
gui->addSlider("Start green", 0, 255, &app->scene.bgGradStartCol[1], length, dim);
|
||||||
|
gui->addSlider("Start blue", 0, 255, &app->scene.bgGradStartCol[2], length, dim);
|
||||||
|
gui->addSlider("Start alpha", 0, 255, &app->scene.bgGradStartCol[3], length, dim);
|
||||||
|
gui->addSlider("End red", 0, 255, &app->scene.bgGradEndCol[0], length, dim);
|
||||||
|
gui->addSlider("End green", 0, 255, &app->scene.bgGradEndCol[1], length, dim);
|
||||||
|
gui->addSlider("End blue", 0, 255, &app->scene.bgGradEndCol[2], length, dim);
|
||||||
|
gui->addSlider("End alpha", 0, 255, &app->scene.bgGradEndCol[3], length, dim);
|
||||||
|
|
||||||
|
ofAddListener(gui->newGUIEvent, this, &GUI::variousGUIEvent);
|
||||||
|
finaliseCanvas(gui, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUI::addVariousGUI()
|
||||||
|
{
|
||||||
|
string title = "VARIOUS";
|
||||||
|
ofxUICanvas* gui = getNewGUI(title);
|
||||||
|
|
||||||
|
//gui->addLabel("GRID");
|
||||||
|
//gui->addToggle("GRID VISIBLE", &app->scene.isGridVisible, toggleDim, toggleDim);
|
||||||
|
//gui->addSlider("GRID ALPHA", 0, 255, &app->scene.gridAlpha, length, dim);
|
||||||
|
|
||||||
|
gui->addLabel("GUI DESIGN");
|
||||||
|
gui->addSlider("RED", 0, 255, 255, length, dim);
|
||||||
|
gui->addSlider("GREEN", 0, 255, 1, length, dim);
|
||||||
|
gui->addSlider("BLUE", 0, 255, 1, length, dim);
|
||||||
|
gui->addSlider("ALPHA", 0, 255, 255, length, dim);
|
||||||
|
|
||||||
|
ofAddListener(gui->newGUIEvent, this, &GUI::variousGUIEvent);
|
||||||
|
finaliseCanvas(gui, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void GUI::update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUI::draw()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void GUI::variousGUIEvent(ofxUIEventArgs &e)
|
||||||
|
{
|
||||||
|
string name = e.widget->getName();
|
||||||
|
|
||||||
|
if (name == "RED")
|
||||||
|
{
|
||||||
|
ofxUISlider *slider = (ofxUISlider *) e.widget;
|
||||||
|
color.r = slider->getScaledValue();
|
||||||
|
setGUIColour();
|
||||||
|
}
|
||||||
|
else if (name == "GREEN")
|
||||||
|
{
|
||||||
|
ofxUISlider *slider = (ofxUISlider *) e.widget;
|
||||||
|
color.g = slider->getScaledValue();
|
||||||
|
setGUIColour();
|
||||||
|
}
|
||||||
|
else if (name == "BLUE")
|
||||||
|
{
|
||||||
|
ofxUISlider *slider = (ofxUISlider *) e.widget;
|
||||||
|
color.b = slider->getScaledValue();
|
||||||
|
setGUIColour();
|
||||||
|
}
|
||||||
|
else if (name == "ALPHA")
|
||||||
|
{
|
||||||
|
ofxUISlider *slider = (ofxUISlider *) e.widget;
|
||||||
|
color.a = slider->getScaledValue();
|
||||||
|
setGUIColour();
|
||||||
|
}
|
||||||
|
}
|
||||||
36
of/Active Tripod/src/gui/GUI.h
Normal file
36
of/Active Tripod/src/gui/GUI.h
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
//
|
||||||
|
// GUI.h
|
||||||
|
// emptyExample
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ofMain.h"
|
||||||
|
#include "GUIManager.h"
|
||||||
|
|
||||||
|
class testApp;
|
||||||
|
|
||||||
|
class GUI : GUIManager
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual void setup();
|
||||||
|
virtual bool getVisible();
|
||||||
|
|
||||||
|
void addKeyboardShortcutsGUI();
|
||||||
|
void addGraphAnimationGUI();
|
||||||
|
void addBarGraphDesignGUI();
|
||||||
|
void addGraphSimulationGUI();
|
||||||
|
void addBackgroundGUI();
|
||||||
|
void addVariousGUI();
|
||||||
|
|
||||||
|
void variousGUIEvent(ofxUIEventArgs &e);
|
||||||
|
|
||||||
|
virtual void update();
|
||||||
|
virtual void draw();
|
||||||
|
|
||||||
|
testApp* app;
|
||||||
|
vector<string> publishers;
|
||||||
|
};
|
||||||
204
of/Active Tripod/src/gui/GUIManager.cpp
Normal file
204
of/Active Tripod/src/gui/GUIManager.cpp
Normal file
@ -0,0 +1,204 @@
|
|||||||
|
//
|
||||||
|
// GUIManager.cpp
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "GUIManager.h"
|
||||||
|
|
||||||
|
void GUIManager::setup()
|
||||||
|
{
|
||||||
|
ofAddListener(ofEvents().keyPressed, this, &GUIManager::keyPressed);
|
||||||
|
ofAddListener(ofEvents().exit, this, &GUIManager::exit);
|
||||||
|
|
||||||
|
currentUIID = 0;
|
||||||
|
dim = 16;
|
||||||
|
toggleDim = 16;
|
||||||
|
canvasW = 320;
|
||||||
|
canvasH = ofGetScreenHeight();
|
||||||
|
xInit = OFX_UI_GLOBAL_WIDGET_SPACING;
|
||||||
|
length = canvasW - xInit* 2;
|
||||||
|
toggleSize = 32;
|
||||||
|
spacerW = canvasW - xInit* 2;
|
||||||
|
spacerH = 1;
|
||||||
|
color = ofColor(100, 100, 210, 230);
|
||||||
|
isVisible = false;
|
||||||
|
isAutoSave = true;
|
||||||
|
|
||||||
|
buildTopBarGUI();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool GUIManager::getVisible()
|
||||||
|
{
|
||||||
|
return isVisible;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::buildTopBarGUI()
|
||||||
|
{
|
||||||
|
topBarGui = new ofxUICanvas(canvasW, 0, 600, 146);
|
||||||
|
topBarGui->setColorBack(color);
|
||||||
|
topBarGui->setName(TOP_TITLE);
|
||||||
|
|
||||||
|
topBarGui->addWidgetRight(new ofxUIFPS(OFX_UI_FONT_MEDIUM));
|
||||||
|
topBarGui->addWidgetRight(new ofxUILabelToggle(true, TOP_AUTO_SAVE));
|
||||||
|
topBarGui->addWidgetRight(new ofxUILabelButton(false, TOP_SAVE));
|
||||||
|
topBarGui->addWidgetRight(new ofxUILabelButton(false, TOP_PREVIOUS));
|
||||||
|
topBarGui->addWidgetRight(new ofxUILabelButton(false, TOP_NEXT));
|
||||||
|
|
||||||
|
topBarGui->autoSizeToFitWidgets();
|
||||||
|
|
||||||
|
ofAddListener(topBarGui->newGUIEvent, this, &GUIManager::topBarGUIEvent);
|
||||||
|
finaliseCanvas(topBarGui, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ofxUICanvas* GUIManager::getNewGUI(string title)
|
||||||
|
{
|
||||||
|
ofxUICanvas* gui = new ofxUICanvas(0, 0, canvasW, canvasH);
|
||||||
|
gui->setColorBack(color);
|
||||||
|
gui->setName(title);
|
||||||
|
gui->addWidgetDown(new ofxUILabel(gui->getName(), OFX_UI_FONT_MEDIUM));
|
||||||
|
gui->addSpacer(spacerW, spacerH);
|
||||||
|
return gui;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::finaliseCanvas(ofxUICanvas* gui, bool isAddedToArray)
|
||||||
|
{
|
||||||
|
string name = gui->getName();
|
||||||
|
string xmlPath = "GUI/" + name + "GuiPageSettings.xml";
|
||||||
|
gui->loadSettings(xmlPath);
|
||||||
|
gui->setVisible(false);
|
||||||
|
gui->autoSizeToFitWidgets();
|
||||||
|
if (isAddedToArray) guiPages.push_back(gui);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::topBarGUIEvent(ofxUIEventArgs &e) //---------------- Top bar
|
||||||
|
{
|
||||||
|
string name = e.widget->getName();
|
||||||
|
|
||||||
|
if (name == TOP_AUTO_SAVE)
|
||||||
|
{
|
||||||
|
ofxUIToggle *toggle = (ofxUIToggle *)e.widget;
|
||||||
|
isAutoSave = toggle->getValue();
|
||||||
|
}
|
||||||
|
else if (name == TOP_SAVE)
|
||||||
|
{
|
||||||
|
saveSettings();
|
||||||
|
}
|
||||||
|
else if (name == TOP_NEXT)
|
||||||
|
{
|
||||||
|
ofxUIButton *button = (ofxUIButton *)e.widget;
|
||||||
|
if (button->getValue()) nextPage();
|
||||||
|
}
|
||||||
|
else if (name == TOP_PREVIOUS)
|
||||||
|
{
|
||||||
|
ofxUIButton *button = (ofxUIButton *)e.widget;
|
||||||
|
if (button->getValue()) previousPage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::keyPressed(ofKeyEventArgs& eventArgs) //int key)
|
||||||
|
{
|
||||||
|
printf("keyPressed - key = %c \n", eventArgs.key);
|
||||||
|
switch (eventArgs.key)
|
||||||
|
{
|
||||||
|
case '[':
|
||||||
|
previousPage();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case ']':
|
||||||
|
nextPage();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case ' ':
|
||||||
|
toggleVisible();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::nextPage()
|
||||||
|
{
|
||||||
|
printf("next\n");
|
||||||
|
++currentUIID;
|
||||||
|
showGUI();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::previousPage()
|
||||||
|
{
|
||||||
|
printf("prev\n");
|
||||||
|
--currentUIID;
|
||||||
|
if (currentUIID < 0) currentUIID = guiPages.size() - 1;
|
||||||
|
showGUI();
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIManager::showGUI()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < (int)guiPages.size(); i++)
|
||||||
|
{
|
||||||
|
guiPages[i]->setVisible(false);
|
||||||
|
}
|
||||||
|
isVisible = true;
|
||||||
|
if (guiPages.size() > 0)
|
||||||
|
{
|
||||||
|
int newVisibleGUIID = currentUIID % (int)guiPages.size();
|
||||||
|
guiPages[newVisibleGUIID]->setVisible(true);
|
||||||
|
}
|
||||||
|
topBarGui->setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::toggleVisible()
|
||||||
|
{
|
||||||
|
isVisible = !isVisible;
|
||||||
|
if (isVisible)
|
||||||
|
{
|
||||||
|
showGUI();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (int i = 0; i < (int)guiPages.size(); i++)
|
||||||
|
{
|
||||||
|
guiPages[i]->setVisible(false);
|
||||||
|
}
|
||||||
|
topBarGui->setVisible(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::saveSettings()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < (int)guiPages.size(); i++)
|
||||||
|
{
|
||||||
|
string xmlPath = "GUI/" + guiPages[i]->getName() + "guiPagesettings.xml";
|
||||||
|
guiPages[i]->saveSettings(xmlPath);
|
||||||
|
}
|
||||||
|
//topBarGui->saveSettings("GUI/" + topBarGui->getName() + "guiPagesettings.xml");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::setGUIColour()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < (int)guiPages.size(); i++)
|
||||||
|
{
|
||||||
|
guiPages[i]->setColorBack(color);
|
||||||
|
}
|
||||||
|
topBarGui->setColorBack(color);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GUIManager::exit(ofEventArgs& eventArgs)
|
||||||
|
{
|
||||||
|
if (isAutoSave) saveSettings();
|
||||||
|
delete topBarGui;
|
||||||
|
for (int i = 0; i < guiPages.size(); i++)
|
||||||
|
delete guiPages[i];
|
||||||
|
}
|
||||||
67
of/Active Tripod/src/gui/GUIManager.h
Normal file
67
of/Active Tripod/src/gui/GUIManager.h
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
//
|
||||||
|
// GUIManager.h
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ofMain.h"
|
||||||
|
#include "ofEvents.h"
|
||||||
|
#include "ofxUI.h"
|
||||||
|
|
||||||
|
// gui titles
|
||||||
|
#define TOP_TITLE "TOP"
|
||||||
|
|
||||||
|
#define TOP_AUTO_SAVE "AUTO SAVE"
|
||||||
|
#define TOP_SAVE "SAVE"
|
||||||
|
#define TOP_NEXT "NEXT"
|
||||||
|
#define TOP_PREVIOUS "PREV"
|
||||||
|
|
||||||
|
|
||||||
|
class GUIManager
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
//GUIManager();
|
||||||
|
virtual void setup();
|
||||||
|
virtual bool getVisible();
|
||||||
|
|
||||||
|
ofColor color;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
virtual void buildTopBarGUI();
|
||||||
|
virtual ofxUICanvas* getNewGUI(string title);
|
||||||
|
virtual void keyPressed(ofKeyEventArgs& eventArgs);
|
||||||
|
virtual void exit(ofEventArgs& eventArgs);
|
||||||
|
virtual void finaliseCanvas(ofxUICanvas* gui, bool isAddedToArray);
|
||||||
|
virtual void topBarGUIEvent(ofxUIEventArgs &e);
|
||||||
|
void guiEvent(ofxUIEventArgs &e);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void nextPage();
|
||||||
|
void previousPage();
|
||||||
|
void showGUI();
|
||||||
|
void toggleVisible();
|
||||||
|
|
||||||
|
void saveSettings();
|
||||||
|
|
||||||
|
void setGUIColour();
|
||||||
|
|
||||||
|
ofxUICanvas* topBarGui;
|
||||||
|
|
||||||
|
vector<ofxUICanvas *> guiPages;
|
||||||
|
int currentUIID;
|
||||||
|
|
||||||
|
float dim;
|
||||||
|
float toggleDim;
|
||||||
|
float xInit;
|
||||||
|
float length;
|
||||||
|
float canvasW;
|
||||||
|
float canvasH;
|
||||||
|
float toggleSize;
|
||||||
|
float spacerW, spacerH;
|
||||||
|
bool isVisible;
|
||||||
|
bool isAutoSave;
|
||||||
|
};
|
||||||
16
of/Active Tripod/src/main.cpp
Normal file
16
of/Active Tripod/src/main.cpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#include "ofMain.h"
|
||||||
|
#include "testApp.h"
|
||||||
|
#include "ofAppGlutWindow.h"
|
||||||
|
|
||||||
|
//========================================================================
|
||||||
|
int main( ){
|
||||||
|
|
||||||
|
ofAppGlutWindow window;
|
||||||
|
ofSetupOpenGL(&window, 1400, 1024, OF_WINDOW); // <-------- setup the GL context
|
||||||
|
|
||||||
|
// this kicks off the running of my app
|
||||||
|
// can be OF_WINDOW or OF_FULLSCREEN
|
||||||
|
// pass in width and height too:
|
||||||
|
ofRunApp( new testApp());
|
||||||
|
|
||||||
|
}
|
||||||
73
of/Active Tripod/src/testApp.cpp
Normal file
73
of/Active Tripod/src/testApp.cpp
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
#include "testApp.h"
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
// ====
|
||||||
|
// - Make graph system with 3 simple (for now) but different graphs that can be interchanged
|
||||||
|
// - Make events system to send data to scene
|
||||||
|
// -
|
||||||
|
// -
|
||||||
|
// - Add to GUI
|
||||||
|
// - - Publisher choice
|
||||||
|
// - - IP address
|
||||||
|
// - - Host name
|
||||||
|
// - - App name
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// NOTES
|
||||||
|
// =====
|
||||||
|
// - Each publisher should have a unique number. There should be a config file kept in c:/ containing a unique ID
|
||||||
|
// - Check that the local data sources always have the same amount of data.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::setup()
|
||||||
|
{
|
||||||
|
ofSetFrameRate(30);
|
||||||
|
ofSetLogLevel(OF_LOG_SILENT);
|
||||||
|
ofSetWindowPosition(0, 100);
|
||||||
|
ofEnableSmoothing();
|
||||||
|
ofSeedRandom(ofRandom(23243));
|
||||||
|
|
||||||
|
dataManager.setup();
|
||||||
|
scene.setup();
|
||||||
|
gui.setup();
|
||||||
|
|
||||||
|
isPaused = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::update()
|
||||||
|
{
|
||||||
|
if (isPaused) return;
|
||||||
|
|
||||||
|
dataManager.update();
|
||||||
|
scene.update();
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::draw(){
|
||||||
|
dataManager.draw();
|
||||||
|
scene.draw();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::mousePressed(int x, int y, int button)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void testApp::keyPressed(int key)
|
||||||
|
{
|
||||||
|
if (key == 'p')
|
||||||
|
{
|
||||||
|
isPaused = !isPaused;
|
||||||
|
}
|
||||||
|
}
|
||||||
23
of/Active Tripod/src/testApp.h
Normal file
23
of/Active Tripod/src/testApp.h
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ofMain.h"
|
||||||
|
|
||||||
|
#include "DataManager.h"
|
||||||
|
#include "Scene.h"
|
||||||
|
#include "GUI.h"
|
||||||
|
|
||||||
|
class testApp : public ofBaseApp{
|
||||||
|
|
||||||
|
public:
|
||||||
|
void setup();
|
||||||
|
void update();
|
||||||
|
void draw();
|
||||||
|
void mousePressed(int x, int y, int button);
|
||||||
|
void keyPressed(int key);
|
||||||
|
|
||||||
|
DataManager dataManager;
|
||||||
|
Scene scene;
|
||||||
|
GUI gui;
|
||||||
|
|
||||||
|
bool isPaused;
|
||||||
|
};
|
||||||
32
of/Active Tripod/src/visual/Scene.cpp
Normal file
32
of/Active Tripod/src/visual/Scene.cpp
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
//
|
||||||
|
// gui->cpp
|
||||||
|
// emptyExample
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "Scene.h"
|
||||||
|
|
||||||
|
|
||||||
|
void Scene::setup()
|
||||||
|
{
|
||||||
|
barGraph.setup();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Scene::update()
|
||||||
|
{
|
||||||
|
barGraph.update();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Scene::draw()
|
||||||
|
{
|
||||||
|
ofBackgroundGradient(ofColor(bgGradStartCol[0], bgGradStartCol[1], bgGradStartCol[2], bgGradStartCol[3]),
|
||||||
|
ofColor(bgGradEndCol[0], bgGradEndCol[1], bgGradEndCol[2], bgGradEndCol[3]),
|
||||||
|
OF_GRADIENT_CIRCULAR);
|
||||||
|
|
||||||
|
barGraph.draw();
|
||||||
|
}
|
||||||
|
|
||||||
28
of/Active Tripod/src/visual/Scene.h
Normal file
28
of/Active Tripod/src/visual/Scene.h
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
//
|
||||||
|
// GUI.h
|
||||||
|
// emptyExample
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ofMain.h"
|
||||||
|
#include "BarGraph.h"
|
||||||
|
|
||||||
|
class testApp;
|
||||||
|
|
||||||
|
class Scene
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
void setup();
|
||||||
|
void update();
|
||||||
|
void draw();
|
||||||
|
|
||||||
|
BarGraph barGraph;
|
||||||
|
|
||||||
|
float bgGradStartCol[4];
|
||||||
|
float bgGradEndCol[4];
|
||||||
|
|
||||||
|
};
|
||||||
42
of/Active Tripod/src/visual/graph/AbstractGraph.cpp
Normal file
42
of/Active Tripod/src/visual/graph/AbstractGraph.cpp
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
//
|
||||||
|
// gui->cpp
|
||||||
|
// emptyExample
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "AbstractGraph.h"
|
||||||
|
|
||||||
|
|
||||||
|
void AbstractGraph::setup()
|
||||||
|
{
|
||||||
|
printf("AbstractGraph::setup()\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void AbstractGraph::update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void AbstractGraph::draw()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void AbstractGraph::addNewData(vector<int> newData)
|
||||||
|
{
|
||||||
|
publisher0Data.push_back(newData[0]);
|
||||||
|
publisher1Data.push_back(newData[1]);
|
||||||
|
|
||||||
|
maxData = ofGetWidth() / graphItemXGap;
|
||||||
|
|
||||||
|
if (publisher0Data.size() > maxData && publisher0Data.size() > maxData)
|
||||||
|
{
|
||||||
|
publisher0Data.erase(publisher0Data.begin());
|
||||||
|
publisher1Data.erase(publisher1Data.begin());
|
||||||
|
}
|
||||||
|
}
|
||||||
30
of/Active Tripod/src/visual/graph/AbstractGraph.h
Normal file
30
of/Active Tripod/src/visual/graph/AbstractGraph.h
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
//
|
||||||
|
// AbstractGraph.h
|
||||||
|
// emptyExample
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ofMain.h"
|
||||||
|
|
||||||
|
class AbstractGraph
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
void setup();
|
||||||
|
void update();
|
||||||
|
void draw();
|
||||||
|
virtual void addNewData(vector<int> newData);
|
||||||
|
|
||||||
|
vector<int> publisher0Data;
|
||||||
|
vector<int> publisher1Data;
|
||||||
|
int maxData; // calculated from graphWidth and graphItemXGap
|
||||||
|
|
||||||
|
float graphItemXGap;
|
||||||
|
ofPoint startPnt;
|
||||||
|
int graphWidth;
|
||||||
|
int graphHeight;
|
||||||
|
|
||||||
|
};
|
||||||
90
of/Active Tripod/src/visual/graph/BarGraph.cpp
Normal file
90
of/Active Tripod/src/visual/graph/BarGraph.cpp
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
//
|
||||||
|
// gui->cpp
|
||||||
|
// emptyExample
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "BarGraph.h"
|
||||||
|
|
||||||
|
|
||||||
|
void BarGraph::setup()
|
||||||
|
{
|
||||||
|
AbstractGraph::setup();
|
||||||
|
|
||||||
|
graphItemXGap = 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void BarGraph::update()
|
||||||
|
{
|
||||||
|
// if (ofGetFrameNum() % 30 == 0)
|
||||||
|
// printf("publisher0Data.size():%i \n", publisher0Data.size());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void BarGraph::draw()
|
||||||
|
{
|
||||||
|
if (publisher0Data.size() > 1)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < publisher0Data.size() - 1; i++)
|
||||||
|
{
|
||||||
|
if (i < publisher0Data.size() - 2)
|
||||||
|
{
|
||||||
|
ofPushStyle();
|
||||||
|
ofSetColor(0, 0, 0);
|
||||||
|
ofLine(i * graphItemXGap, publisher0Data[i], (i + 1) * graphItemXGap, publisher0Data[i + 1]);
|
||||||
|
ofSetColor(0, 0, 0);
|
||||||
|
ofLine(i * graphItemXGap, publisher1Data[i], (i + 1) * graphItemXGap, publisher1Data[i + 1]);
|
||||||
|
ofPopStyle();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < publisher0Data.size() - 1; i++)
|
||||||
|
{
|
||||||
|
//ofPushStyle();
|
||||||
|
//ofSetColor(255, 0, 0);
|
||||||
|
//ofCircle(i * graphItemXGap, publisher0Data[i], 5);
|
||||||
|
//ofSetColor(0, 255, 0);
|
||||||
|
//ofCircle(i * graphItemXGap, publisher1Data[i], 5);
|
||||||
|
//ofPopStyle();
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < publisher0Data.size() - 1; i++)
|
||||||
|
{
|
||||||
|
ofPushStyle();
|
||||||
|
|
||||||
|
ofMesh bar;
|
||||||
|
bar.addVertex(ofVec3f(i * graphItemXGap - (barWidth * 0.5), publisher0Data[i], 0));
|
||||||
|
bar.addVertex(ofVec3f(i * graphItemXGap - (barWidth * 0.5) + barWidth, publisher0Data[i], 0));
|
||||||
|
bar.addVertex(ofVec3f(i * graphItemXGap - (barWidth * 0.5), publisher1Data[i], 0));
|
||||||
|
bar.addVertex(ofVec3f(i * graphItemXGap - (barWidth * 0.5) + barWidth, publisher1Data[i], 0));
|
||||||
|
bar.addIndex(0);
|
||||||
|
bar.addIndex(1);
|
||||||
|
bar.addIndex(3);
|
||||||
|
bar.addIndex(0);
|
||||||
|
bar.addIndex(3);
|
||||||
|
bar.addIndex(2);
|
||||||
|
bar.addColor(ofColor(col0[0],col0[1],col0[2], col0[3]));
|
||||||
|
bar.addColor(ofColor(col0[0],col0[1],col0[2], col0[3]));
|
||||||
|
bar.addColor(ofColor(col1[0],col1[1],col1[2], col1[3]));
|
||||||
|
bar.addColor(ofColor(col1[0],col1[1],col1[2], col1[3]));
|
||||||
|
|
||||||
|
bar.drawFaces();
|
||||||
|
|
||||||
|
//ofSetColor(255, 255, 0);
|
||||||
|
//ofRect(i * graphItemXGap - (barWidth * 0.5), publisher0Data[i], barWidth, publisher1Data[i] - publisher0Data[i]);
|
||||||
|
//ofSetColor(0, 0, 0);
|
||||||
|
//ofLine(i * graphItemXGap, publisher0Data[i], i * graphItemXGap, publisher1Data[i]);
|
||||||
|
ofPopStyle();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void BarGraph::addNewData(vector<int> newData)
|
||||||
|
{
|
||||||
|
AbstractGraph::addNewData(newData);
|
||||||
|
}
|
||||||
27
of/Active Tripod/src/visual/graph/BarGraph.h
Normal file
27
of/Active Tripod/src/visual/graph/BarGraph.h
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
//
|
||||||
|
// BarGraph.h
|
||||||
|
// emptyExample
|
||||||
|
//
|
||||||
|
// Created by James Alliban on 25/06/2013.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ofMain.h"
|
||||||
|
#include "AbstractGraph.h"
|
||||||
|
|
||||||
|
class BarGraph : public AbstractGraph
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
void setup();
|
||||||
|
void update();
|
||||||
|
void draw();
|
||||||
|
virtual void addNewData(vector<int> newData);
|
||||||
|
|
||||||
|
float barWidth;
|
||||||
|
|
||||||
|
float col0[4];
|
||||||
|
float col1[4];
|
||||||
|
|
||||||
|
};
|
||||||
9
of/Utility_Box/Project.xcconfig
Normal file
9
of/Utility_Box/Project.xcconfig
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
//THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT.
|
||||||
|
//THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED
|
||||||
|
OF_PATH = ../../..
|
||||||
|
|
||||||
|
//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
|
||||||
|
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"
|
||||||
|
|
||||||
|
OTHER_LDFLAGS = $(OF_CORE_LIBS)
|
||||||
|
HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
|
||||||
2
of/Utility_Box/addons.make
Normal file
2
of/Utility_Box/addons.make
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ofxLibwebsockets
|
||||||
|
ofxSpacebrew
|
||||||
0
of/Utility_Box/bin/data/.gitkeep
Normal file
0
of/Utility_Box/bin/data/.gitkeep
Normal file
25
of/Utility_Box/example_button.sln
Normal file
25
of/Utility_Box/example_button.sln
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 2012
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example_button", "example_button.vcxproj", "{7FD42DF7-442E-479A-BA76-D0022F99702A}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "openframeworksLib", "..\..\..\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj", "{5837595D-ACA9-485C-8E76-729040CE4B0B}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{7FD42DF7-442E-479A-BA76-D0022F99702A}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{5837595D-ACA9-485C-8E76-729040CE4B0B}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
119
of/Utility_Box/example_button.vcxproj
Normal file
119
of/Utility_Box/example_button.vcxproj
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{7FD42DF7-442E-479A-BA76-D0022F99702A}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>example_button</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v110</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<PlatformToolset>v110</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksRelease.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\libs\openFrameworksCompiled\project\vs\openFrameworksDebug.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<OutDir>bin\</OutDir>
|
||||||
|
<IntDir>obj\$(Configuration)\</IntDir>
|
||||||
|
<TargetName>$(ProjectName)_debug</TargetName>
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<GenerateManifest>true</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<OutDir>bin\</OutDir>
|
||||||
|
<IntDir>obj\$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);src;..\..\..\addons\ofxLibwebsockets\libs\jsoncpp;..\..\..\addons\ofxLibwebsockets\libs\jsoncpp\json;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\;..\..\..\addons\ofxLibwebsockets\libs\openssl\openssl;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include\ofxLibwebsockets;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src;..\..\..\addons\ofxLibwebsockets\src;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port\win32helpers;..\..\..\addons\ofxSpacebrew\src</AdditionalIncludeDirectories>
|
||||||
|
<CompileAs>CompileAsCpp</CompileAs>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies);websockets_static.lib;ZLIB.lib</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories);..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\lib\win32\Release</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||||
|
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);src;..\..\..\addons\ofxLibwebsockets\libs\jsoncpp;..\..\..\addons\ofxLibwebsockets\libs\jsoncpp\json;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\;..\..\..\addons\ofxLibwebsockets\libs\openssl\openssl;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include\ofxLibwebsockets;..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src;..\..\..\addons\ofxLibwebsockets\src;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port;..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port\win32helpers;..\..\..\addons\ofxSpacebrew\src</AdditionalIncludeDirectories>
|
||||||
|
<CompileAs>CompileAsCpp</CompileAs>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||||
|
<AdditionalDependencies>%(AdditionalDependencies);websockets_static.lib;ZLIB.lib</AdditionalDependencies>
|
||||||
|
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories);..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\lib\win32\Release</AdditionalLibraryDirectories>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="src\main.cpp" />
|
||||||
|
<ClCompile Include="src\testApp.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\jsoncpp\jsoncpp.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Server.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Reactor.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Protocol.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Events.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Connection.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Client.cpp" />
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxSpacebrew\src\ofxSpacebrew.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="src\testApp.h" />
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxSpacebrew\src\ofxSpacebrew.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\..\libs\openFrameworksCompiled\project\vs\openframeworksLib.vcxproj">
|
||||||
|
<Project>{5837595d-aca9-485c-8e76-729040ce4b0b}</Project>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="icon.rc">
|
||||||
|
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">/D_DEBUG %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ResourceCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
</Project>
|
||||||
69
of/Utility_Box/example_button.vcxproj.filters
Normal file
69
of/Utility_Box/example_button.vcxproj.filters
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="src\testApp.cpp">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\main.cpp">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\main.cpp">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="src\testApp.cpp">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\jsoncpp\jsoncpp.cpp">
|
||||||
|
<Filter></Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Server.cpp">
|
||||||
|
<Filter></Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Reactor.cpp">
|
||||||
|
<Filter></Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Protocol.cpp">
|
||||||
|
<Filter></Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Events.cpp">
|
||||||
|
<Filter></Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Connection.cpp">
|
||||||
|
<Filter></Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src\Client.cpp">
|
||||||
|
<Filter></Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\..\addons\ofxSpacebrew\src\ofxSpacebrew.cpp">
|
||||||
|
<Filter>addons\ofxSpacebrew\src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="src">
|
||||||
|
<UniqueIdentifier>{d8376475-7454-4a24-b08a-aac121d3ad6f}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons">
|
||||||
|
<UniqueIdentifier>{71834F65-F3A9-211E-73B8-DC85}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxSpacebrew">
|
||||||
|
<UniqueIdentifier>{D889AD41-F822-1754-5360-4780}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="addons\ofxSpacebrew\src">
|
||||||
|
<UniqueIdentifier>{6F7542EE-2155-F039-FF50-9283}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="src\testApp.h">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="src\testApp.h">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\..\addons\ofxSpacebrew\src\ofxSpacebrew.h">
|
||||||
|
<Filter>addons\ofxSpacebrew\src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ResourceCompile Include="icon.rc" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
11
of/Utility_Box/example_button.vcxproj.user
Normal file
11
of/Utility_Box/example_button.vcxproj.user
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LocalDebuggerWorkingDirectory>$(ProjectDir)/bin</LocalDebuggerWorkingDirectory>
|
||||||
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<LocalDebuggerWorkingDirectory>$(ProjectDir)/bin</LocalDebuggerWorkingDirectory>
|
||||||
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
2808
of/Utility_Box/example_button.xcodeproj/project.pbxproj
Normal file
2808
of/Utility_Box/example_button.xcodeproj/project.pbxproj
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,84 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
<Testables>
|
||||||
|
</Testables>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
@ -0,0 +1,84 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
buildConfiguration = "Release">
|
||||||
|
<Testables>
|
||||||
|
</Testables>
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
<AdditionalOptions>
|
||||||
|
</AdditionalOptions>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "E4B69B5A0A3A1756003C02F2"
|
||||||
|
BuildableName = "example_button.app"
|
||||||
|
BlueprintName = "example_button"
|
||||||
|
ReferencedContainer = "container:example_button.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Release">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
8
of/Utility_Box/icon.rc
Normal file
8
of/Utility_Box/icon.rc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// Icon Resource Definition
|
||||||
|
#define MAIN_ICON 102
|
||||||
|
|
||||||
|
#if defined(_DEBUG)
|
||||||
|
MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon_debug.ico"
|
||||||
|
#else
|
||||||
|
MAIN_ICON ICON "..\..\..\libs\openFrameworksCompiled\project\vs\icon.ico"
|
||||||
|
#endif
|
||||||
20
of/Utility_Box/openFrameworks-Info.plist
Normal file
20
of/Utility_Box/openFrameworks-Info.plist
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.yourcompany.openFrameworks</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
16
of/Utility_Box/src/main.cpp
Normal file
16
of/Utility_Box/src/main.cpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#include "ofMain.h"
|
||||||
|
#include "testApp.h"
|
||||||
|
#include "ofAppGlutWindow.h"
|
||||||
|
|
||||||
|
//========================================================================
|
||||||
|
int main( ){
|
||||||
|
|
||||||
|
ofAppGlutWindow window;
|
||||||
|
ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
|
||||||
|
|
||||||
|
// this kicks off the running of my app
|
||||||
|
// can be OF_WINDOW or OF_FULLSCREEN
|
||||||
|
// pass in width and height too:
|
||||||
|
ofRunApp( new testApp());
|
||||||
|
|
||||||
|
}
|
||||||
83
of/Utility_Box/src/testApp.cpp
Normal file
83
of/Utility_Box/src/testApp.cpp
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
#include "testApp.h"
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::setup(){
|
||||||
|
ofSetFrameRate(60);
|
||||||
|
string host = Spacebrew::SPACEBREW_CLOUD; // "localhost";
|
||||||
|
string name = "of-button-example";
|
||||||
|
string description = "It's amazing";
|
||||||
|
|
||||||
|
spacebrew.addPublish("button", Spacebrew::TYPE_BOOLEAN);
|
||||||
|
spacebrew.addSubscribe("backgroundOn", Spacebrew::TYPE_BOOLEAN); //"boolean" ); // just typing "boolean" also works
|
||||||
|
spacebrew.connect( host, name, description );
|
||||||
|
|
||||||
|
// listen to spacebrew events
|
||||||
|
Spacebrew::addListener(this, spacebrew);
|
||||||
|
|
||||||
|
// circle stuff
|
||||||
|
bButtonPressed = false;
|
||||||
|
radius = 200;
|
||||||
|
|
||||||
|
// background
|
||||||
|
bBackgroundOn = false;
|
||||||
|
|
||||||
|
// layout stuff
|
||||||
|
ofBackground(0);
|
||||||
|
ofSetRectMode(OF_RECTMODE_CENTER);
|
||||||
|
ofEnableSmoothing();
|
||||||
|
ofSetCircleResolution(100);
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::update(){}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::draw(){
|
||||||
|
if ( !bBackgroundOn ){
|
||||||
|
ofBackgroundGradient(ofColor(0,0,0), ofColor(50,50,50));
|
||||||
|
} else {
|
||||||
|
ofBackgroundGradient(ofColor(100,0,0), ofColor(150,150,0));
|
||||||
|
}
|
||||||
|
|
||||||
|
string textToDraw = "PRESS ME";
|
||||||
|
if ( bButtonPressed ){
|
||||||
|
ofSetColor( 150, 0, 0 );
|
||||||
|
textToDraw = "THANKS";
|
||||||
|
} else {
|
||||||
|
ofSetColor(150);
|
||||||
|
}
|
||||||
|
ofCircle(ofGetWidth() / 2.0f, ofGetHeight()/2.0f, radius);
|
||||||
|
ofSetColor(255);
|
||||||
|
ofDrawBitmapString(textToDraw, ofGetWidth() / 2.0f - 30, ofGetHeight()/2.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::onMessage( Spacebrew::Message & m ){
|
||||||
|
if ( m.name == "backgroundOn" ){
|
||||||
|
bBackgroundOn = m.valueBoolean();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::mousePressed(int x, int y, int button){
|
||||||
|
if ( checkInsideCircle( ofPoint(x,y), ofPoint(ofGetWidth() / 2.0f, ofGetHeight()/2.0f), radius) ){
|
||||||
|
bButtonPressed = true;
|
||||||
|
spacebrew.sendBoolean("button", true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
void testApp::mouseReleased(int x, int y, int button){
|
||||||
|
if (bButtonPressed){
|
||||||
|
spacebrew.sendBoolean("button", false);
|
||||||
|
}
|
||||||
|
bButtonPressed = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------
|
||||||
|
bool testApp::checkInsideCircle( ofPoint point, ofPoint position, int radius ){
|
||||||
|
return ( point.x < position.x + radius
|
||||||
|
&& point.x > position.x - radius
|
||||||
|
&& point.y < position.y + radius
|
||||||
|
&& point.y > position.y - radius );
|
||||||
|
}
|
||||||
30
of/Utility_Box/src/testApp.h
Normal file
30
of/Utility_Box/src/testApp.h
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ofMain.h"
|
||||||
|
|
||||||
|
#include "ofxSpacebrew.h"
|
||||||
|
|
||||||
|
class testApp : public ofBaseApp{
|
||||||
|
|
||||||
|
public:
|
||||||
|
void setup();
|
||||||
|
void update();
|
||||||
|
void draw();
|
||||||
|
|
||||||
|
void mousePressed(int x, int y, int button);
|
||||||
|
void mouseReleased(int x, int y, int button);
|
||||||
|
|
||||||
|
// create your spacebrew object
|
||||||
|
Spacebrew::Connection spacebrew;
|
||||||
|
|
||||||
|
// listen to spacebrew Messages
|
||||||
|
void onMessage( Spacebrew::Message & m );
|
||||||
|
|
||||||
|
// button stuff
|
||||||
|
int radius;
|
||||||
|
bool bButtonPressed;
|
||||||
|
bool bBackgroundOn;
|
||||||
|
|
||||||
|
// useful quick test
|
||||||
|
bool checkInsideCircle( ofPoint point, ofPoint position, int radius );
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user