#include <LineProperties.h>
Inheritance diagram for H3D::LineProperties:

Public Member Functions | |
| LineProperties (Inst< DisplayList > _displayList=0, Inst< SFNode > _metadata=0, Inst< SFBool > _applied=0, Inst< SFInt32 > _linetype=0, Inst< SFFloat > _linewidthScaleFactor=0) | |
| Constructor. | |
| virtual void | preRender () |
| This function will be called by the X3DShapeNode before any rendering of geometry and before the call to the render function. | |
| virtual void | postRender () |
| This function will be called by the X3DShapeNode after the geometry has been rendered to restore the states to what it was before the call to preRender(). | |
| virtual void | render () |
| Set up the line properties with OpenGL. | |
| virtual string | defaultXMLContainerField () |
| Returns the default xml containerField attribute value. | |
Public Attributes | |
| auto_ptr< SFBool > | applied |
| Determines if the linetype and linewidthScaleFactor should be applied or not. | |
| auto_ptr< SFInt32 > | linetype |
| The linetype field selects a line pattern to be used for lines. | |
| auto_ptr< SFFloat > | linewidthScaleFactor |
| The linewidthScaleFactor is a multiplicative value that scales the nominal linewidth by the linewidth scale factor. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
The linetype and linewidth shall only be applied when the applied field has value TRUE. When the value of the applied field is FALSE, a solid line of nominal width shall be produced. The colour of the line is specified by the associated Material node.
The linetype field selects a line pattern as defined in the International Register of Graphical Items. The following line patterns are available:
The linewidthScaleFactor is a multiplicative value that scales the nominal linewidth by the linewidth scale factor. This resulting value shall then be mapped to the nearest available line width. A value less than or equal to zero refers to the minimum available line width.
Changing the line types does NOT CHANGE THE HAPTIC RENDERING of lines. It only changes the visual appearance.
|
|
Returns the default xml containerField attribute value. For this node it is "lineProperties". Reimplemented from H3D::Node. |
|
|
This function will be called by the X3DShapeNode before any rendering of geometry and before the call to the render function. So this is the place to save the states that are going to be changed in render() in order to restore it in postRender(). Reimplemented from H3D::X3DAppearanceChildNode. |
|
|
Determines if the linetype and linewidthScaleFactor should be applied or not.
Access type: inputOutput
|
|
|
The linetype field selects a line pattern to be used for lines. For more information see the Detailed description
Access type: inputOutput
|
|
|
The linewidthScaleFactor is a multiplicative value that scales the nominal linewidth by the linewidth scale factor. This resulting value shall then be mapped to the nearest available line width. A value less than or equal to zero refers to the minimum available line width.
Access type: inputOutput
|
1.4.5