Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members | Related Pages

Shape Class Reference

Shape contains a TransformNode interface, a single geometric object to be rendered under that Transform, and Material attributes to govern the appearance of that object. More...

Inheritance diagram for Shape:

TransformNode IShape ChildNode IParent ITransform Node Object List of all members.

Detailed Description

Shape contains a TransformNode interface, a single geometric object to be rendered under that Transform, and Material attributes to govern the appearance of that object.

Authoring Interface:

        Shape {
                // from TransformNode
            field SFVec3f       translation         0 0 0
            field SFRotation    rotation            0 1 0 0
            field SFVec3f       scale               1 1 1
            field SFRotation    scaleOrientation    0 1 0 0
            field SFVec3f       center              0 0 0
            field SFBoolean     visible             true
                // from PickableNode
            field SFBoolean     pickable            false
            field SFBoolean     pickTransparent     true
            eventOut SFDouble   clickTime
            eventOut SFString   pickEvent   // see table below for return values
            
            field SFMaterial        material        NULL
            field SFGeometryNode    geometry        NULL
        }
Parameters:
translation specifies a translation of the coordinate system. Default value: 0 0 0
rotation specifies a rotation of the coordinate system. Default value: 0 1 0 0
scale specifies a non-uniform scale of the coordinate system. Default value: 1 1 1
scaleOrientation specifies a rotation of the coordinate system before the scale (in order to specify scale factors in an arbitrary orientation, e.g. skew). scaleOrientation is applied only to the scale operation. Default value: 0 1 0 0
center specifies a translation offset from the origin of the local coordinate system, to establish a new center of transformation. Default value: 0 0 0
visible specifies if the children of this node will be visible or not Default value: true
pickable specifies if the children of this node will be processed for pick testing or not Default value: false
pickTransparent specifies if this Shape blocks picking of items behind it Default value: true
clickTime returns the eventTime when the pointing device's Left button is pressed
pickEvent returns a string enumerating the occurance of a new pick event. Refer to the table below for a complete enumeration of these events.
material supplies a single Material node which overrides any embedded material properties within the GeometryNode to be rendered. Default value: NULL
geometry supplies a single GeometryNode to be traversed for rendering. Default value: NULL
The pickEvent string constants returned include:

"ENTERED"Pointing device has moved over this geometry
"EXITED"Pointing device has moved off of this geometry
"OVERMOVED"Pointing device has moved while over this geometry
"OVERBUTTONDOWNMOVED"Pointing device has moved while at least one of its buttons remains held down
"OVERBUTTONDOWN"Pointing device Left button has been pressed while over this geometry
"OVERMBUTTONDOWN"Pointing device Middle button has been pressed while over this geometry
"OVERRBUTTONDOWN"Pointing device Right button has been pressed while over this geometry
"OVERBUTTONUP"Pointing device Left button has been released
"OVERMBUTTONUP"Pointing device Middle button has been released
"OVERRBUTTONUP"Pointing device Right button has been released

Functionality:

XXX To be written

See TransformNode.


Generated on Sat Apr 1 06:08:08 2006 for Emma Content Development Kit by  doxygen 1.4.3