Skip to content

Commit df2fe9d

Browse files
committed
xrEProps: Add ShaderFunction form stub
1 parent 2714f37 commit df2fe9d

File tree

5 files changed

+460
-1
lines changed

5 files changed

+460
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include "pch.hpp"
2+
#include "ShaderFunction.h"
3+
#include "xrEngine/WaveForm.h"
4+
5+
namespace XRay
6+
{
7+
namespace ECore
8+
{
9+
bool ShaderFunction::Run(WaveForm* func)
10+
{
11+
return false;
12+
}
13+
} // namespace ECore
14+
} // namespace XRay
Lines changed: 302 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,302 @@
1+
#pragma once
2+
3+
namespace XRay
4+
{
5+
namespace ECore
6+
{
7+
ref class ShaderFunction;
8+
}
9+
}
10+
11+
class WaveForm;
12+
13+
namespace XRay
14+
{
15+
namespace ECore
16+
{
17+
using namespace System;
18+
using namespace System::ComponentModel;
19+
using namespace System::Collections;
20+
using namespace System::Windows::Forms;
21+
using namespace System::Data;
22+
using namespace System::Drawing;
23+
24+
public ref class ShaderFunction : public System::Windows::Forms::Form
25+
{
26+
public:
27+
ShaderFunction(void)
28+
{
29+
InitializeComponent();
30+
}
31+
32+
protected:
33+
~ShaderFunction()
34+
{
35+
if (components)
36+
{
37+
delete components;
38+
}
39+
}
40+
41+
private: System::Windows::Forms::Label^ label1;
42+
private: System::Windows::Forms::Label^ label2;
43+
private: System::Windows::Forms::Label^ label3;
44+
private: System::Windows::Forms::Label^ label4;
45+
private: System::Windows::Forms::Label^ label5;
46+
private: System::Windows::Forms::Label^ label6;
47+
48+
private: System::Windows::Forms::Label^ labelStart;
49+
private: System::Windows::Forms::Label^ labelMin;
50+
private: System::Windows::Forms::Label^ labelCenter;
51+
private: System::Windows::Forms::Label^ labelMax;
52+
private: System::Windows::Forms::Label^ labelEnd;
53+
54+
private: XRay::SdkControls::NumericSpinner^ numArg1;
55+
private: XRay::SdkControls::NumericSpinner^ numArg2;
56+
private: XRay::SdkControls::NumericSpinner^ numArg3;
57+
private: XRay::SdkControls::NumericSpinner^ numArg4;
58+
private: XRay::SdkControls::NumericSpinner^ numScale;
59+
60+
private: System::Windows::Forms::Panel^ panelLeft;
61+
private: System::Windows::Forms::Panel^ panelRight;
62+
63+
private: System::Windows::Forms::ComboBox^ comboBox1;
64+
private: System::Windows::Forms::PictureBox^ pbDraw;
65+
66+
private: System::Windows::Forms::Button^ buttonOk;
67+
private: System::Windows::Forms::Button^ buttonCancel;
68+
69+
private:
70+
System::ComponentModel::Container^ components;
71+
72+
#pragma region Windows Form Designer generated code
73+
void InitializeComponent(void)
74+
{
75+
this->label1 = (gcnew System::Windows::Forms::Label());
76+
this->label2 = (gcnew System::Windows::Forms::Label());
77+
this->label3 = (gcnew System::Windows::Forms::Label());
78+
this->label4 = (gcnew System::Windows::Forms::Label());
79+
this->label5 = (gcnew System::Windows::Forms::Label());
80+
this->numArg1 = (gcnew XRay::SdkControls::NumericSpinner());
81+
this->numArg2 = (gcnew XRay::SdkControls::NumericSpinner());
82+
this->numArg3 = (gcnew XRay::SdkControls::NumericSpinner());
83+
this->numArg4 = (gcnew XRay::SdkControls::NumericSpinner());
84+
this->label6 = (gcnew System::Windows::Forms::Label());
85+
this->panelLeft = (gcnew System::Windows::Forms::Panel());
86+
this->comboBox1 = (gcnew System::Windows::Forms::ComboBox());
87+
this->panelRight = (gcnew System::Windows::Forms::Panel());
88+
this->numScale = (gcnew XRay::SdkControls::NumericSpinner());
89+
this->pbDraw = (gcnew System::Windows::Forms::PictureBox());
90+
this->labelEnd = (gcnew System::Windows::Forms::Label());
91+
this->labelStart = (gcnew System::Windows::Forms::Label());
92+
this->labelMin = (gcnew System::Windows::Forms::Label());
93+
this->labelCenter = (gcnew System::Windows::Forms::Label());
94+
this->labelMax = (gcnew System::Windows::Forms::Label());
95+
this->buttonOk = (gcnew System::Windows::Forms::Button());
96+
this->buttonCancel = (gcnew System::Windows::Forms::Button());
97+
this->panelLeft->SuspendLayout();
98+
this->panelRight->SuspendLayout();
99+
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pbDraw))->BeginInit();
100+
this->SuspendLayout();
101+
this->label1->AutoSize = true;
102+
this->label1->Location = System::Drawing::Point(3, 5);
103+
this->label1->Name = L"label1";
104+
this->label1->Size = System::Drawing::Size(51, 13);
105+
this->label1->TabIndex = 0;
106+
this->label1->Text = L"Function:";
107+
this->label2->AutoSize = true;
108+
this->label2->Location = System::Drawing::Point(3, 33);
109+
this->label2->Name = L"label2";
110+
this->label2->Size = System::Drawing::Size(68, 13);
111+
this->label2->TabIndex = 1;
112+
this->label2->Text = L"Offset (arg1):";
113+
this->label3->AutoSize = true;
114+
this->label3->Location = System::Drawing::Point(3, 60);
115+
this->label3->Name = L"label3";
116+
this->label3->Size = System::Drawing::Size(86, 13);
117+
this->label3->TabIndex = 2;
118+
this->label3->Text = L"Amplitude (arg2):";
119+
this->label4->AutoSize = true;
120+
this->label4->Location = System::Drawing::Point(3, 87);
121+
this->label4->Name = L"label4";
122+
this->label4->Size = System::Drawing::Size(70, 13);
123+
this->label4->TabIndex = 3;
124+
this->label4->Text = L"Phase (arg3):";
125+
this->label5->AutoSize = true;
126+
this->label5->Location = System::Drawing::Point(3, 114);
127+
this->label5->Name = L"label5";
128+
this->label5->Size = System::Drawing::Size(63, 13);
129+
this->label5->TabIndex = 4;
130+
this->label5->Text = L"Rate (arg4):";
131+
this->numArg1->DecimalPlaces = 5;
132+
this->numArg1->Hexadecimal = false;
133+
this->numArg1->Location = System::Drawing::Point(89, 30);
134+
this->numArg1->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 100, 0, 0, 0 });
135+
this->numArg1->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
136+
this->numArg1->MinimumSize = System::Drawing::Size(70, 22);
137+
this->numArg1->Name = L"numArg1";
138+
this->numArg1->Precision = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
139+
this->numArg1->Size = System::Drawing::Size(115, 22);
140+
this->numArg1->TabIndex = 5;
141+
this->numArg1->TextAlign = System::Windows::Forms::HorizontalAlignment::Left;
142+
this->numArg1->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
143+
this->numArg2->DecimalPlaces = 5;
144+
this->numArg2->Hexadecimal = false;
145+
this->numArg2->Location = System::Drawing::Point(89, 57);
146+
this->numArg2->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 100, 0, 0, 0 });
147+
this->numArg2->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
148+
this->numArg2->MinimumSize = System::Drawing::Size(70, 22);
149+
this->numArg2->Name = L"numArg2";
150+
this->numArg2->Precision = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
151+
this->numArg2->Size = System::Drawing::Size(115, 22);
152+
this->numArg2->TabIndex = 6;
153+
this->numArg2->TextAlign = System::Windows::Forms::HorizontalAlignment::Left;
154+
this->numArg2->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
155+
this->numArg3->DecimalPlaces = 5;
156+
this->numArg3->Hexadecimal = false;
157+
this->numArg3->Location = System::Drawing::Point(89, 84);
158+
this->numArg3->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 100, 0, 0, 0 });
159+
this->numArg3->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
160+
this->numArg3->MinimumSize = System::Drawing::Size(70, 22);
161+
this->numArg3->Name = L"numArg3";
162+
this->numArg3->Precision = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
163+
this->numArg3->Size = System::Drawing::Size(115, 22);
164+
this->numArg3->TabIndex = 7;
165+
this->numArg3->TextAlign = System::Windows::Forms::HorizontalAlignment::Left;
166+
this->numArg3->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
167+
this->numArg4->DecimalPlaces = 5;
168+
this->numArg4->Hexadecimal = false;
169+
this->numArg4->Location = System::Drawing::Point(89, 111);
170+
this->numArg4->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 100, 0, 0, 0 });
171+
this->numArg4->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
172+
this->numArg4->MinimumSize = System::Drawing::Size(70, 22);
173+
this->numArg4->Name = L"numArg4";
174+
this->numArg4->Precision = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
175+
this->numArg4->Size = System::Drawing::Size(115, 22);
176+
this->numArg4->TabIndex = 8;
177+
this->numArg4->TextAlign = System::Windows::Forms::HorizontalAlignment::Left;
178+
this->numArg4->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
179+
this->label6->AutoSize = true;
180+
this->label6->Location = System::Drawing::Point(44, 5);
181+
this->label6->Name = L"label6";
182+
this->label6->Size = System::Drawing::Size(192, 13);
183+
this->label6->TabIndex = 10;
184+
this->label6->Text = L"y = arg1 + arg2*func((time + arg3)*arg4)";
185+
this->panelLeft->Controls->Add(this->comboBox1);
186+
this->panelLeft->Controls->Add(this->label1);
187+
this->panelLeft->Controls->Add(this->label2);
188+
this->panelLeft->Controls->Add(this->numArg4);
189+
this->panelLeft->Controls->Add(this->label3);
190+
this->panelLeft->Controls->Add(this->numArg3);
191+
this->panelLeft->Controls->Add(this->label4);
192+
this->panelLeft->Controls->Add(this->numArg2);
193+
this->panelLeft->Controls->Add(this->label5);
194+
this->panelLeft->Controls->Add(this->numArg1);
195+
this->panelLeft->Location = System::Drawing::Point(0, 0);
196+
this->panelLeft->Name = L"panelLeft";
197+
this->panelLeft->Size = System::Drawing::Size(205, 140);
198+
this->panelLeft->TabIndex = 11;
199+
this->comboBox1->FormattingEnabled = true;
200+
this->comboBox1->Location = System::Drawing::Point(89, 1);
201+
this->comboBox1->Name = L"comboBox1";
202+
this->comboBox1->Size = System::Drawing::Size(115, 21);
203+
this->comboBox1->TabIndex = 9;
204+
this->panelRight->Controls->Add(this->numScale);
205+
this->panelRight->Controls->Add(this->pbDraw);
206+
this->panelRight->Controls->Add(this->labelEnd);
207+
this->panelRight->Controls->Add(this->labelStart);
208+
this->panelRight->Controls->Add(this->labelMin);
209+
this->panelRight->Controls->Add(this->labelCenter);
210+
this->panelRight->Controls->Add(this->labelMax);
211+
this->panelRight->Controls->Add(this->label6);
212+
this->panelRight->Location = System::Drawing::Point(204, 0);
213+
this->panelRight->Name = L"panelRight";
214+
this->panelRight->Size = System::Drawing::Size(237, 162);
215+
this->panelRight->TabIndex = 12;
216+
this->numScale->DecimalPlaces = 3;
217+
this->numScale->Hexadecimal = false;
218+
this->numScale->Location = System::Drawing::Point(103, 141);
219+
this->numScale->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 100, 0, 0, 0 });
220+
this->numScale->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
221+
this->numScale->MinimumSize = System::Drawing::Size(70, 22);
222+
this->numScale->Name = L"numScale";
223+
this->numScale->Precision = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
224+
this->numScale->Size = System::Drawing::Size(70, 22);
225+
this->numScale->TabIndex = 18;
226+
this->numScale->TextAlign = System::Windows::Forms::HorizontalAlignment::Left;
227+
this->numScale->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 0, 0, 0, 0 });
228+
this->pbDraw->Location = System::Drawing::Point(47, 30);
229+
this->pbDraw->Name = L"pbDraw";
230+
this->pbDraw->Size = System::Drawing::Size(186, 110);
231+
this->pbDraw->TabIndex = 17;
232+
this->pbDraw->TabStop = false;
233+
this->labelEnd->AutoSize = true;
234+
this->labelEnd->Location = System::Drawing::Point(189, 143);
235+
this->labelEnd->Name = L"labelEnd";
236+
this->labelEnd->Size = System::Drawing::Size(47, 13);
237+
this->labelEnd->TabIndex = 16;
238+
this->labelEnd->Text = L"1000 ms";
239+
this->labelEnd->TextAlign = System::Drawing::ContentAlignment::TopRight;
240+
this->labelStart->AutoSize = true;
241+
this->labelStart->Location = System::Drawing::Point(44, 143);
242+
this->labelStart->Name = L"labelStart";
243+
this->labelStart->Size = System::Drawing::Size(29, 13);
244+
this->labelStart->TabIndex = 14;
245+
this->labelStart->Text = L"0 ms";
246+
this->labelMin->AutoSize = true;
247+
this->labelMin->Location = System::Drawing::Point(17, 127);
248+
this->labelMin->Name = L"labelMin";
249+
this->labelMin->Size = System::Drawing::Size(24, 13);
250+
this->labelMin->TabIndex = 13;
251+
this->labelMin->Text = L"Min";
252+
this->labelMin->TextAlign = System::Drawing::ContentAlignment::TopRight;
253+
this->labelCenter->AutoSize = true;
254+
this->labelCenter->Location = System::Drawing::Point(3, 75);
255+
this->labelCenter->Name = L"labelCenter";
256+
this->labelCenter->Size = System::Drawing::Size(38, 13);
257+
this->labelCenter->TabIndex = 12;
258+
this->labelCenter->Text = L"Center";
259+
this->labelCenter->TextAlign = System::Drawing::ContentAlignment::TopRight;
260+
this->labelMax->AutoSize = true;
261+
this->labelMax->Location = System::Drawing::Point(17, 30);
262+
this->labelMax->Name = L"labelMax";
263+
this->labelMax->Size = System::Drawing::Size(27, 13);
264+
this->labelMax->TabIndex = 11;
265+
this->labelMax->Text = L"Max";
266+
this->labelMax->TextAlign = System::Drawing::ContentAlignment::TopRight;
267+
this->buttonOk->Location = System::Drawing::Point(0, 140);
268+
this->buttonOk->Name = L"buttonOk";
269+
this->buttonOk->Size = System::Drawing::Size(89, 22);
270+
this->buttonOk->TabIndex = 14;
271+
this->buttonOk->Text = L"Ok";
272+
this->buttonOk->UseVisualStyleBackColor = true;
273+
this->buttonCancel->Location = System::Drawing::Point(88, 140);
274+
this->buttonCancel->Name = L"buttonCancel";
275+
this->buttonCancel->Size = System::Drawing::Size(116, 22);
276+
this->buttonCancel->TabIndex = 13;
277+
this->buttonCancel->Text = L"Cancel";
278+
this->buttonCancel->UseVisualStyleBackColor = true;
279+
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
280+
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
281+
this->ClientSize = System::Drawing::Size(441, 162);
282+
this->Controls->Add(this->buttonOk);
283+
this->Controls->Add(this->buttonCancel);
284+
this->Controls->Add(this->panelRight);
285+
this->Controls->Add(this->panelLeft);
286+
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedToolWindow;
287+
this->Name = L"ShaderFunction";
288+
this->Text = L"ShaderFunction";
289+
this->panelLeft->ResumeLayout(false);
290+
this->panelLeft->PerformLayout();
291+
this->panelRight->ResumeLayout(false);
292+
this->panelRight->PerformLayout();
293+
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pbDraw))->EndInit();
294+
this->ResumeLayout(false);
295+
296+
}
297+
#pragma endregion
298+
299+
public: bool Run(WaveForm* func);
300+
};
301+
} // namespace ECore
302+
} // namespace XRay

0 commit comments

Comments
 (0)