?? _altimeter.gls
字號:
GL_Studio_Version: 3.0.1003
DocumentPreferences:
{
LineColor: 255 10 48 255
FillColor: 0 0 0 0
BlendColor: 255 255 255 255
TextColor: 0 0 0 255
GridColor: 0 0 0 255
AxesColor: 0 0 0 255
LineWidth: 1
LineStipplePattern: 65535
LineStippleMultiplier: 1
GridSpacing: 1
SnapToGrid: 0
ShowAxes: 1
ShowGrid: 0
PreviewAnimations: 1
LightingEnabled: 0
Shading: FLAT
DepthTest: 2
AntiAlias: 0
AlphaMode: ALPHA_MODE_256_LEVEL
PolygonMode: POLY_MODE_OUTLINE
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
TextureIndex: 0
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
FontName: Arial
Spacing: SPACING_PROPORTIONAL
HJustification: TEXT_ALIGN_CENTER
FixedSize: 18
FixedSpacing: 10
FontStrikethrough: 0
FontWordWrap: 0
TextOutline: 0
TextBackground: 0
TextInverseVideo: 0
TextVertical: 0
RemoveBackfaces: 0
BlinkMode: 0
PickMode: 1
Material: 0
BlinkRate: 2
Window:
{
X: -32000
Y: -32000
W: 550
H: 550
AzimuthAngle: 0
IncidenceAngle: 0
TwistAngle: 0
View: VIEW_XY
CenterX: 185
CenterY: 187.5
Scale: 0.7727272511
}
}
DisplayFrame: EditorDisplayFrame
{
ComponentHeaderFile: _Altimeter.h
Width: 370
Height: 375
Title: Untitled
InitialX: 0
InitialY: 0
MaxWidth: -1
MaxHeight: -1
MinWidth: -1
MinHeight: -1
Resizable: 1
HasBorder: 1
MainFileName:
DerivedClass: _AltimeterClass
StandaloneHeaderFile: _AltimeterApp.h
StandaloneSourceFile: _AltimeterApp.cpp
StandaloneClassInstance: _Altimeter
ComponentSourceFile: _Altimeter.cpp
ComponentUserBaseClass: 0
ClassDerivedFrom:
ClassDerivedFromInit:
XWindowsHeaderFile: _AltimeterXWin.h
XWindowsSourceFile: _AltimeterXWin.cpp
XWindowsClassInstance: _Altimeter
RootName: _Altimeter
FillInFromRoot: 1
GeneratedSourcePath: .\source\
ExtraCodeSource:
ExtraCodeHeader: #$STRING_START$##include "glsutil.h"
#include "glsutil_odometer.h"
#$STRING_END$#
MainLoopSource:
MainInitSource:
ClassCodeSource: #$STRING_START$#
#$ITEM_TYPE$#2#$TYPE$#void#$NAME$#Initialize#$ARGS$##$BODY$#altitude_display = new OdometerOperatorClass(
altDigits,
5,
3,
0.080078f,
0.0f,
99999.0f,
100.0f,
ODOMETER_WHEEL_ROLLOVER,
ODOMETER_WHEEL_ROLLOVER,
ODOMETER_WHEEL_FREE
);
barometric_display = new OdometerOperatorClass(
barDigits,
2,
4,
0.080078f,
0.0f,
99.99f,
0.01f,
ODOMETER_WHEEL_ROLLOVER,
ODOMETER_WHEEL_ROLLOVER,
ODOMETER_WHEEL_ROLLOVER,
ODOMETER_WHEEL_FREE
);
barometric_display->Value(28.6f)
#$GEN_BODY$#1#$PPP$#0#$COMMENT$#
#$ITEM_TYPE$#3#$TYPE$#void#$NAME$#Calculate#$ARGS$#double time#$BODY$#objects->Group::Calculate(time); // Do not remove (for normal operations)
if(_testing)
{
Altitude( RampFloat( time * .07, 0.0f, 12000.0f ) );
}
#$GEN_BODY$#1#$PPP$#0#$COMMENT$#
#$ITEM_TYPE$#1#$TYPE$#int#$NAME$#NewVariable#$ARGS$#0#$BODY$##$GEN_BODY$#1#$PPP$#1#$COMMENT$#
#$ITEM_TYPE$#1#$TYPE$#OdometerOperatorClass#$NAME$#*barometric_display#$ARGS$##$BODY$##$GEN_BODY$#1#$PPP$#1#$COMMENT$#
#$ITEM_TYPE$#1#$TYPE$#OdometerOperatorClass#$NAME$#*altitude_display#$ARGS$##$BODY$##$GEN_BODY$#1#$PPP$#1#$COMMENT$##$STRING_END$#
Properties:
{
Item:
{
FillIn: 1
Name: Altitude
Type: float
Args: 0.0
VariablePPP: 1
SetPPP: 0
GetPPP: 0
MemberVariableUsed: 1
MemberVariableName: _altitude
SetMethodUsed: 1
SetMethodName: Altitude
SetMethodBody: #$STRING_START$#_altitude = value;
altitude_display->Value(_altitude);
float alt_100 = (float)fmod(_altitude, 1000.0f) / 100.0f;
needle->DynamicRotate(-(alt_100*(360/10)), Z_AXIS);
#$STRING_END$#
GetMethodUsed: 1
GetMethodName: Altitude
}
Item:
{
FillIn: 1
Name: Barometer
Type: float
Args: 0.0
VariablePPP: 1
SetPPP: 0
GetPPP: 0
MemberVariableUsed: 1
MemberVariableName: _barometer
SetMethodUsed: 1
SetMethodName: Barometer
SetMethodBody: #$STRING_START$#_barometer = value;
barometric_display->Value(_barometer);
#$STRING_END$#
GetMethodUsed: 1
GetMethodName: Barometer
}
Item:
{
FillIn: 1
Name: Testing
Type: bool
Args: 0
VariablePPP: 1
SetPPP: 0
GetPPP: 0
MemberVariableUsed: 1
MemberVariableName: _testing
SetMethodUsed: 1
SetMethodName: Testing
GetMethodUsed: 1
GetMethodName: Testing
}
}
ClassDeclarations:
GenerateComments: 1
GenerateSeparateMain: 0
DCS_Length: 75
Projection: ORTHOGRAPHIC
Buffering: DOUBLE_BUFFER
DepthBuffer: 1
StencilBuffer: 0
AccumBuffer: 0
AlphaBuffer: 0
Multisample: 0
FullScreen: 0
ViewCulling: 1
RedrawType: REDRAW_CONSTANT
ApplicationType: RAW_COMPONENT
FrameRate: 30
BackgroundColor: 255 255 255 255
SoundFiles:
{
}
TexturePalette:
{
0:
{
Filename: ./textures/altimeter.png
GenerateInline: 1
CompressionFactor: 75
CompressedSize: 240267
ImageCodec: GLS_CODEC_LZ77
ReverseAlpha: 1
}
}
MaterialPalette: 1
0 1 51 51 51 255 204 204 204 255 0 0 0 255 0 0 0 255 0 "Default Material"
InitialEyePointName: <Default Ortho>
RuntimeAvailableAttributes: 17
ObjectClass: Group
{
Name: altDigits
Location: 112.5 182 0
Visible: 1
Pickable: 1
RotationOrigin: 0 0 0
Rotation: 0 0 0
DynamicTranslate: 0 0 0
DynamicScale: 1 1 1
DCSMatrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
LineWidth: 1
CullBackFace: 0
AlphaMode: ALPHA_MODE_256_LEVEL
AntiAlias: 0
DepthTest: 2
Color: 0 0 0 255
TextureIndex: -1
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
BlendColor: 255 255 255 255
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
PolygonMode: POLY_MODE_OUTLINE
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
Shading: FLAT
LineStippleMultiplier: 1
LineStipplePattern: 65535
Blink: 0
BlinkRate: 2
LightingEnabled: 0
MaterialIndex: 0
Vertices: 8
-42.5 -40 0 255 255 255 255
42.5 -40 0 255 255 255 255
42.5 40 0 255 255 255 255
-42.5 40 0 255 255 255 255
-42.5 -40 0 255 255 255 255
42.5 -40 0 255 255 255 255
42.5 40 0 255 255 255 255
-42.5 40 0 255 255 255 255
TexturePoints:
42.5 -40 0
-42.5 -40 0
-42.5 45 0
42.5 45 0
PerformGroupCullCheck: 0
CullTestChildren: 1
ProtectionMode: PUBLIC
Locked: 0
IsStatic: 0
ObjectClass: GLPolygon
{
Name: altDigits_100
Location: 142.5 182.5 0
Visible: 1
Pickable: 1
RotationOrigin: 0 0 0
Rotation: 0 0 0
DynamicTranslate: 0 0 0
DynamicScale: 1 1 1
DCSMatrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
LineWidth: 1
CullBackFace: 0
AlphaMode: ALPHA_MODE_256_LEVEL
AntiAlias: 0
DepthTest: 2
Color: 0 0 0 255
TextureIndex: 0
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
BlendColor: 255 255 255 255
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
PolygonMode: POLY_MODE_FILLED
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
Shading: FLAT
LineStippleMultiplier: 1
LineStipplePattern: 65535
Blink: 0
BlinkRate: 2
LightingEnabled: 0
MaterialIndex: 0
Vertices: 4
-12.5 -39.5 0 249 255 244 255
12.5 -39.5 0 249 255 244 255
12.5 39.5 0 249 255 244 255
-12.5 39.5 0 249 255 244 255
TexturePoints:
286.5001831 -503.5 0
-913.4998169 -503.5 0
-913.4998169 96.5 0
286.5001831 96.5 0
TextureCoords: 4
0.7508331537 0.7733333707 0
0.7716665268 0.7733333707 0
0.7716665268 0.905000031 0
0.7508331537 0.905000031 0
Normals: 4
0 0 1
0 0 1
0 0 1
0 0 1
ProtectionMode: PUBLIC
Locked: 0
EndMarker: altDigits_100
}
ObjectClass: GLPolygon
{
Name: altDigits_1000
Location: 113.5 181.5 0
Visible: 1
Pickable: 1
RotationOrigin: 0 0 0
Rotation: 0 0 0
DynamicTranslate: 0 0 0
DynamicScale: 1 1 1
DCSMatrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
LineWidth: 1
CullBackFace: 0
AlphaMode: ALPHA_MODE_256_LEVEL
AntiAlias: 0
DepthTest: 2
Color: 0 0 0 255
TextureIndex: 0
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
BlendColor: 255 255 255 255
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
PolygonMode: POLY_MODE_FILLED
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
Shading: FLAT
LineStippleMultiplier: 1
LineStipplePattern: 65535
Blink: 0
BlinkRate: 2
LightingEnabled: 0
MaterialIndex: 0
Vertices: 4
-12.5 -39.5 0 249 255 244 255
12.5 -39.5 0 249 255 244 255
12.5 39.5 0 249 255 244 255
-12.5 39.5 0 249 255 244 255
TexturePoints:
286.5001831 -503.5 0
-913.4998169 -503.5 0
-913.4998169 96.5 0
286.5001831 96.5 0
TextureCoords: 4
0.7508331537 0.7733333707 0
0.7716665268 0.7733333707 0
0.7716665268 0.905000031 0
0.7508331537 0.905000031 0
Normals: 4
0 0 1
0 0 1
0 0 1
0 0 1
ProtectionMode: PUBLIC
Locked: 0
EndMarker: altDigits_1000
}
ObjectClass: GLPolygon
{
Name: altDigits_10000
Location: 82.5 182.5 0
Visible: 1
Pickable: 1
RotationOrigin: 0 0 0
Rotation: 0 0 0
DynamicTranslate: 0 0 0
DynamicScale: 1 1 1
DCSMatrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
LineWidth: 1
CullBackFace: 0
AlphaMode: ALPHA_MODE_256_LEVEL
AntiAlias: 0
DepthTest: 2
Color: 0 0 0 255
TextureIndex: 0
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
BlendColor: 255 255 255 255
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
PolygonMode: POLY_MODE_FILLED
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
Shading: FLAT
LineStippleMultiplier: 1
LineStipplePattern: 65535
Blink: 0
BlinkRate: 2
LightingEnabled: 0
MaterialIndex: 0
Vertices: 4
-12.5 -39.5 0 249 255 244 255
12.5 -39.5 0 249 255 244 255
12.5 39.5 0 249 255 244 255
-12.5 39.5 0 249 255 244 255
TexturePoints:
286.5001831 -503.5 0
-913.4998169 -503.5 0
-913.4998169 96.5 0
286.5001831 96.5 0
TextureCoords: 4
0.7508331537 0.7733333707 0
0.7716665268 0.7733333707 0
0.7716665268 0.905000031 0
0.7508331537 0.905000031 0
Normals: 4
0 0 1
0 0 1
0 0 1
0 0 1
ProtectionMode: PUBLIC
Locked: 0
EndMarker: altDigits_10000
}
EndMarker: altDigits
}
ObjectClass: Group
{
Name: barDigits
Location: 243.1202393 135.8000031 0
Visible: 1
Pickable: 1
RotationOrigin: 0 0 0
Rotation: 0 0 0
DynamicTranslate: 0 0 0
DynamicScale: 1 1 1
DCSMatrix: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
LineWidth: 1
CullBackFace: 0
AlphaMode: ALPHA_MODE_256_LEVEL
AntiAlias: 0
DepthTest: 2
Color: 0 0 0 255
TextureIndex: -1
TextureRepeat: 1
TextureMap: TEXTURE_MAP_REPLACE
BlendColor: 255 255 255 255
TextureMinFilter: TEXTURE_FILTER_LINEAR
TextureMagFilter: TEXTURE_FILTER_LINEAR
PolygonMode: POLY_MODE_OUTLINE
PolygonEnd: POLY_CLOSED
PolygonOffset: 0
Shading: FLAT
LineStippleMultiplier: 1
LineStipplePattern: 65535
Blink: 0
BlinkRate: 2
LightingEnabled: 0
MaterialIndex: 0
Vertices: 8
-29.12023926 -24.75 0 255 255 255 255
29.87976074 -24.75 0 255 255 255 255
29.87976074 22.6499939 0 255 255 255 255
-29.12023926 22.6499939 0 255 255 255 255
-29.12023926 -24.75 0 255 255 255 255
29.87976074 -24.75 0 255 255 255 255
29.87976074 22.6499939 0 255 255 255 255
-29.12023926 22.6499939 0 255 255 255 255
TexturePoints:
29.12023926 -23.69999695 0
-29.12023926 -23.69999695 0
-29.12023926 34.54048157 0
29.12023926 34.54048157 0
PerformGroupCullCheck: 0
CullTestChildren: 1
ProtectionMode: PUBLIC
Locked: 0
IsStatic: 0
ObjectClass: GLPolygon
{
Name: barDigit_Hundredths
Location: 221 134.75 0
Visible: 1
Pickable: 1
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -