Navigation: Scripting Reference Manual > Data Structures > T_OPERATION

 

T_OPERATION

 

Contact Us: fredsupport@photonengr.com

 

Description

Data structure for a primitive operation performed on a FRED entity's location and/or orientation.  This data structure is used in AddOperation, GetOperation and SetOperation.

 

Definition

Type T_OPERATION

val1 As Double

val2 As Double

val3 As Double

val4 As Double

val5 As Double

val6 As Double

val7 As Double

val8 As Double

val9 As Double

val10 As Double

val11 As Double

val12 As Double

val13 As Double

parent As Long

type As String

End Type

 

Members

val1

First operation value.  See table below for context.

 

val2

Second operation value.  See table below for context.

 

val3

Third operation value.  See table below for context.

 

val4

Fourth operation value.  See table below for context.

 

val5

Fifth operation value.  See table below for context.

 

val6

Sixth operation value.  See table below for context.

 

val7

Seventh operation value.  See table below for context.

 

val8

Eighth operation value.  See table below for context.

 

val9

Ninth operation value.  See table below for context.

 

val10

Tenth operation value.  See table below for context.

 

val11

Eleventh operation value.  See table below for context.

 

val12

Twelfth operation value.  See table below for context.

 

val13

Thirteenth operation value.  See table below for context.

 

parent

Identifier of the operation's parent entity.  Use -1 for the Global Coordinate system.  Use the entity's node number for operations performed in the "Self" coordinate system.

 

type

The type of primitive operation.

 

 

Remarks

The meanings of the members val1 through val13 depend on the value of the "type" T_OPERATION member.  The meanings are the same as in the graphical user interface for the corresponding value.

 

Note that not all members are used for every operation type.  In fact, only the "RotateToDirection" type uses all thirteen members.  For example, if type is "Shift", then only the first three members are used as shown in the table below.  The remaining members are ignored.

 

Type

val 1

val 2

val 3

val 4

val 5

val 6

val 7

val 8

val 9

val 10

val 11

val 12

val 13

Reparent

-

-

-

-

-

-

-

-

-

-

-

-

-

Place

X-pos

Y-pos

Z-pos

-

-

-

-

-

-

-

-

-

-

ShiftX

X

-

-

-

-

-

-

-

-

-

-

-

-

ShiftY

Y

-

-

-

-

-

-

-

-

-

-

-

-

ShiftZ

Z

-

-

-

-

-

-

-

-

-

-

-

-

Shift

X

Y

Z

-

-

-

-

-

-

-

-

-

-

RotateX

x-angle

-

-

-

-

-

-

-

-

-

-

-

-

RotateY

y-angle

-

-

-

-

-

-

-

-

-

-

-

-

RotateZ

z-angle

-

-

-

-

-

-

-

-

-

-

-

-

RotateXYZ

x-angle

y-angle

z-angle

Order

0 = zyx

1 = xyz*

Euler

0 = No*

1 = Yes

-

-

-

-

-

-

-

-

RotateXpoint

x-angle

y-pos

z-pos

-

-

-

-

-

-

-

-

-

-

RotateYpoint

 y-angle

z-pos

x-pos

-

-

-

-

-

-

-

-

-

-

RotateZpoint

z-angle

x-pos

y-pos

-

-

-

-

-

-

-

-

-

-

RotateOrigin

Angle

x-dir

y-dir

z-dir

-

-

-

-

-

-

-

-

-

RotateAxis

Angle

x-pos 1

y-pos 1

z-pos 1

x-pos 2

y-pos 2

z-pos 2

-

-

-

-

-

-

RotateToDirection

x-dir 1

y-dir 1

z-dir 1

x-dir 2

y-dir 2

z-dir 2

x-pos

y-pos

z-pos

Preserve

0=No

1=Yes*

x-dir 3

y-dir 3

z-dir 3

Matrix

R00

R01

R02

R10

R11

R12

R20

R21

R22

x

y

z

-

*indicates default value in GUI

 

See Also

GetOperationCount

 

Examples

Linear Transformations

 

 

 

 

 

Copyright © Photon Engineering, LLC