File: pointLightDragger.iv

package info (click to toggle)
coin2 2.5.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 29,156 kB
  • ctags: 29,453
  • sloc: cpp: 175,383; ansic: 42,198; sh: 9,377; makefile: 7,260; perl: 990; yacc: 181; lex: 114
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
}