ready for viewer dev

This commit is contained in:
yyc12345 2020-04-03 23:57:36 +08:00
parent 820e87f2bc
commit 27ea2fc403
9 changed files with 158 additions and 21 deletions

View File

@ -5,28 +5,36 @@ VisualStudioVersion = 16.0.29418.71
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SuperScriptMaterializer", "SuperScriptMaterializer\SuperScriptMaterializer.vcxproj", "{4D941003-020F-47FD-9FA2-FFC989E306B8}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SuperScriptMaterializer", "SuperScriptMaterializer\SuperScriptMaterializer.vcxproj", "{4D941003-020F-47FD-9FA2-FFC989E306B8}"
EndProject EndProject
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "SuperScriptViewer", "SuperScriptViewer\SuperScriptViewer.pyproj", "{6D751BF5-87D6-4123-94B3-34721938CF04}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64 Debug|x64 = Debug|x64
Debug|x86 = Debug|x86 Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64 Release|x64 = Release|x64
Release|x86 = Release|x86 Release|x86 = Release|x86
VT5|x64 = VT5|x64
VT5|x86 = VT5|x86
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|Any CPU.ActiveCfg = VT5|Win32
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|Any CPU.Build.0 = VT5|Win32
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|x64.ActiveCfg = VT5|x64 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|x64.ActiveCfg = VT5|x64
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|x64.Build.0 = VT5|x64 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|x64.Build.0 = VT5|x64
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|x86.ActiveCfg = VT35|Win32 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|x86.ActiveCfg = VT35|Win32
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|x86.Build.0 = VT35|Win32 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Debug|x86.Build.0 = VT35|Win32
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|x64.ActiveCfg = VT35|x64 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|Any CPU.ActiveCfg = VT5|Win32
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|x64.Build.0 = VT35|x64 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|Any CPU.Build.0 = VT5|Win32
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|x86.ActiveCfg = VT35|Win32 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|x64.ActiveCfg = VT5|x64
{4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|x86.Build.0 = VT35|Win32 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|x64.Build.0 = VT5|x64
{4D941003-020F-47FD-9FA2-FFC989E306B8}.VT5|x64.ActiveCfg = VT5|x64 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|x86.ActiveCfg = VT5|Win32
{4D941003-020F-47FD-9FA2-FFC989E306B8}.VT5|x64.Build.0 = VT5|x64 {4D941003-020F-47FD-9FA2-FFC989E306B8}.Release|x86.Build.0 = VT5|Win32
{4D941003-020F-47FD-9FA2-FFC989E306B8}.VT5|x86.ActiveCfg = VT5|Win32 {6D751BF5-87D6-4123-94B3-34721938CF04}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4D941003-020F-47FD-9FA2-FFC989E306B8}.VT5|x86.Build.0 = VT5|Win32 {6D751BF5-87D6-4123-94B3-34721938CF04}.Debug|x64.ActiveCfg = Debug|Any CPU
{6D751BF5-87D6-4123-94B3-34721938CF04}.Debug|x86.ActiveCfg = Debug|Any CPU
{6D751BF5-87D6-4123-94B3-34721938CF04}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6D751BF5-87D6-4123-94B3-34721938CF04}.Release|x64.ActiveCfg = Release|Any CPU
{6D751BF5-87D6-4123-94B3-34721938CF04}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@ -17,7 +17,7 @@ inline void proc_pTarget(CKParameterIn* cache, database* db, dbDataStructHelper*
db->write_pTarget(helper->_db_pTarget); db->write_pTarget(helper->_db_pTarget);
} }
inline void proc_pIn(CKParameterIn* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, int index) { inline void proc_pIn(CKParameterIn* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, EXPAND_CK_ID grandparents, int index) {
helper->_db_pIn->thisobj = cache->GetID(); helper->_db_pIn->thisobj = cache->GetID();
helper->_db_pIn->index = index; helper->_db_pIn->index = index;
strcpy(helper->_db_pIn->name, cache->GetName()); strcpy(helper->_db_pIn->name, cache->GetName());
@ -37,12 +37,12 @@ inline void proc_pIn(CKParameterIn* cache, database* db, dbDataStructHelper* hel
if (origin == -1) return; if (origin == -1) return;
helper->_db_pLink->input = origin; helper->_db_pLink->input = origin;
helper->_db_pLink->output = cache->GetID(); helper->_db_pLink->output = cache->GetID();
helper->_db_pLink->belong_to = index; helper->_db_pLink->belong_to = grandparents;
db->write_pLink(helper->_db_pLink); db->write_pLink(helper->_db_pLink);
} }
inline void proc_pOut(CKParameterOut* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, int index) { inline void proc_pOut(CKParameterOut* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, EXPAND_CK_ID grandparents, int index) {
helper->_db_pOut->thisobj = cache->GetID(); helper->_db_pOut->thisobj = cache->GetID();
helper->_db_pOut->index = index; helper->_db_pOut->index = index;
strcpy(helper->_db_pOut->name, cache->GetName()); strcpy(helper->_db_pOut->name, cache->GetName());
@ -60,7 +60,7 @@ inline void proc_pOut(CKParameterOut* cache, database* db, dbDataStructHelper* h
helper->_db_pLink->input = cache->GetID(); helper->_db_pLink->input = cache->GetID();
helper->_db_pLink->output = cache_Dest->GetID(); helper->_db_pLink->output = cache_Dest->GetID();
helper->_db_pLink->belong_to = parents; helper->_db_pLink->belong_to = grandparents;
db->write_pLink(helper->_db_pLink); db->write_pLink(helper->_db_pLink);
} }
@ -118,9 +118,9 @@ inline void proc_pOper(CKParameterOperation* cache, database* db, dbDataStructHe
db->write_pOper(helper->_db_pOper); db->write_pOper(helper->_db_pOper);
//export 2 input param and 1 output param //export 2 input param and 1 output param
proc_pIn(cache->GetInParameter1(), db, helper, cache->GetID(), 0); proc_pIn(cache->GetInParameter1(), db, helper, cache->GetID(), parents, 0);
proc_pIn(cache->GetInParameter2(), db, helper, cache->GetID(), 1); proc_pIn(cache->GetInParameter2(), db, helper, cache->GetID(), parents, 1);
proc_pOut(cache->GetOutParameter(), db, helper, cache->GetID(), 0); proc_pOut(cache->GetOutParameter(), db, helper, cache->GetID(), parents, 0);
} }
@ -201,10 +201,10 @@ void IterateBehavior(CKBehavior* bhv, database* db, dbDataStructHelper* helper,
int count = 0, i = 0; int count = 0, i = 0;
//pIn //pIn
for (i = 0, count = bhv->GetInputParameterCount(); i < count; i++) for (i = 0, count = bhv->GetInputParameterCount(); i < count; i++)
proc_pIn(bhv->GetInputParameter(i), db, helper, bhv->GetID(), i); proc_pIn(bhv->GetInputParameter(i), db, helper, bhv->GetID(), parents, i);
//pOut //pOut
for (i = 0, count = bhv->GetOutputParameterCount(); i < count; i++) for (i = 0, count = bhv->GetOutputParameterCount(); i < count; i++)
proc_pOut(bhv->GetOutputParameter(i), db, helper, bhv->GetID(), i); proc_pOut(bhv->GetOutputParameter(i), db, helper, bhv->GetID(), parents, i);
//bIn //bIn
for (i = 0, count = bhv->GetInputCount(); i < count; i++) for (i = 0, count = bhv->GetInputCount(); i < count; i++)
proc_bIn(bhv->GetInput(i), db, helper, bhv->GetID(), i); proc_bIn(bhv->GetInput(i), db, helper, bhv->GetID(), i);

View File

@ -5,8 +5,8 @@
#include "database.h" #include "database.h"
inline void proc_pTarget(CKParameterIn* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents); inline void proc_pTarget(CKParameterIn* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents);
inline void proc_pIn(CKParameterIn* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, int index); inline void proc_pIn(CKParameterIn* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, EXPAND_CK_ID grandparents, int index);
inline void proc_pOut(CKParameterOut* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, int index); inline void proc_pOut(CKParameterOut* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, EXPAND_CK_ID grandparents, int index);
inline void proc_bIn(CKBehaviorIO* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, int index); inline void proc_bIn(CKBehaviorIO* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, int index);
inline void proc_bOut(CKBehaviorIO* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, int index); inline void proc_bOut(CKBehaviorIO* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents, int index);
inline void proc_bLink(CKBehaviorLink* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents); inline void proc_bLink(CKBehaviorLink* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents);

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
print('Super Script View')

View File

@ -0,0 +1,41 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>6d751bf5-87d6-4123-94b3-34721938cf04</ProjectGuid>
<ProjectHome>.</ProjectHome>
<StartupFile>SuperScriptViewer.py</StartupFile>
<SearchPath>
</SearchPath>
<WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath>
<Name>SuperScriptViewer</Name>
<RootNamespace>SuperScriptViewer</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<ItemGroup>
<Compile Include="DecoratorCore.py">
<SubType>Code</SubType>
</Compile>
<Compile Include="ServerCore.py">
<SubType>Code</SubType>
</Compile>
<Compile Include="SuperScriptViewer.py" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
<!-- Uncomment the CoreCompile target to enable the Build command in
Visual Studio and specify your pre- and post-build commands in
the BeforeBuild and AfterBuild targets below. -->
<!--<Target Name="CoreCompile" />-->
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
</Project>

View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Script Hierarchy</title>
</head>
<body>
<h1>Script Hierarchy</h1>
<p>Choose a script to read it.</p>
<br />
<br />
<h2>MfObj</h2>
<ol>
<li><a href="">shit</a></li>
<li><a href="">shit</a></li>
<li><a href="">shit</a></li>
<li><a href="">shit</a></li>
<li><a href="">shit</a></li>
</ol>
<h2>MfObj</h2>
<ol>
<li><a href="">shit</a></li>
<li><a href="">shit</a></li>
</ol>
<h2>MfObj</h2>
<ol>
<li><a href="">shit</a></li>
<li><a href="">shit</a></li>
<li><a href="">shit</a></li>
<li><a href="">shit</a></li>
<li><a href="">shit</a></li>
</ol>
</body>
</html>

View File

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html style="height: 100%; margin: 0; padding: 0;">
<head>
<meta charset="utf-8">
<title>Script Viewer</title>
</head>
<body style="display: flex; flex-flow: column; height: 100%; width: 100%; margin: 0; padding: 0;">
<div style="display: flex; background: #cfcfcf; flex-flow: row; width: 100%; height: 50px;">
<div style="display: flex; flex-flow: row; width: 100%; height: 100%; overflow: scroll;">
<p style="margin: 0 5px 0 5px; padding: 0;"><a href=""><b>Script Hierarchy</b></a></p>
<p style="margin: 0 5px 0 5px; padding: 0;">&gt;&gt;</p>
<p style="margin: 0 5px 0 5px; padding: 0;"><a href="">Base BB 1</a></p>
<p style="margin: 0 5px 0 5px; padding: 0;">&gt;&gt;</p>
<p style="margin: 0 5px 0 5px; padding: 0;"><a href="">Base BB 1</a></p>
<p style="margin: 0 5px 0 5px; padding: 0;">&gt;&gt;</p>
<p style="margin: 0 5px 0 5px; padding: 0;"><a href="">Base BB 1</a></p>
<p style="margin: 0 5px 0 5px; padding: 0;">&gt;&gt;</p>
<p style="margin: 0 5px 0 5px; padding: 0;"><a href="">Base BB 1</a></p>
<p style="margin: 0 5px 0 5px; padding: 0;">&gt;&gt;</p>
<p style="margin: 0 5px 0 5px; padding: 0;"><b>Current BB</b></p>
</div>
<div style="width: 100px;">
<button style="width: 100px; height: 50px;">SAVE !!</button>
</div>
</div>
<div style="background: #7f7f7f; width: 100%; height: 100%; overflow: scroll;">
<svg version="1.1" width="1000px" height="500px">
</svg>
<div style="position: absolute; height: 50px; width: 200px; top: 200px; left: 300px; background: #8f8f8f; border: 1px solid white;">
<div style="position: absolute; height: 6px; width: 6px; top: 0; left: 20px; background: blue;"></div>
<div style="position: absolute; height: 6px; width: 6px; top: 0; left: 35px; background: blue;"></div>
<div style="position: absolute; height: 6px; width: 6px; bottom: 0; left: 20px; background: blue;"></div>
<div style="position: absolute; height: 6px; width: 6px; top: 10px; left: 0; background: yellow;"></div>
<div style="position: absolute; height: 6px; width: 6px; top: 10px; right: 0; background: yellow;"></div>
<p style="position: absolute; top: 10px; left: 10px; margin: 0; padding: 0;">Get Cell</p>
</div>
</div>
</body>
</html>