File: pointLightDragger.iv

package info (click to toggle)
coin2 2.3.0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,728 kB
  • ctags: 23,488
  • sloc: cpp: 147,249; ansic: 34,393; sh: 9,023; makefile: 5,648; yacc: 174; lex: 107; perl: 8
file content (35 lines) | stat: -rw-r--r-- 976 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#Inventor V2.1 ascii


# Standard material definitions. One of the definitions also defines a
# part for the dragger.

DEF pointLightOverallMaterial Material { diffuseColor 0.5 0.5 0.5  emissiveColor 0.5 0.5 0.5 }
DEF POINTLIGHT_ACTIVE_MATERIAL Material { diffuseColor 0.5 0.5 0  emissiveColor 0.5 0.5 0 }

# Geometry used multiple times.

DEF POINTLIGHT_AXIS_TRANSLATOR Cube { width 4  height 0.5  depth 0.5 }
DEF POINTLIGHT_PLANE_TRANSLATOR Sphere { radius 1.0 }


# SoPointLightDragger part definitions.

DEF pointLightTranslatorLineTranslator Separator {
   USE pointLightOverallMaterial
   USE POINTLIGHT_AXIS_TRANSLATOR
}

DEF pointLightTranslatorLineTranslatorActive Separator {
   USE POINTLIGHT_ACTIVE_MATERIAL
   USE POINTLIGHT_AXIS_TRANSLATOR
}

DEF pointLightTranslatorPlaneTranslator Separator {
   USE POINTLIGHT_PLANE_TRANSLATOR
}

DEF pointLightTranslatorPlaneTranslatorActive Separator {
   USE POINTLIGHT_ACTIVE_MATERIAL
   USE POINTLIGHT_PLANE_TRANSLATOR
}