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

Public Member Functions | |
| FillProperties (Inst< DisplayList > _displayList=0, Inst< SFBool > _filled=0, Inst< SFColor > _hatchColor=0, Inst< SFBool > _hatched=0, Inst< SFInt32 > _hatchStyle=0, Inst< SFNode > _metadata=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 > | filled |
| The filled field specifies if the geometry should be filled or not. | |
| auto_ptr< SFColor > | hatchColor |
| The color of the hatches. | |
| auto_ptr< SFBool > | hatched |
| The hatched field specifies if the geometry should be hatched or not. | |
| auto_ptr< SFInt32 > | hatchStyle |
| The hatchStyle field selects a hatch pattern to be used. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
The filled field specifies if the geometry should be filled or not. If not filled it will be rendered as wireframe.
Hatches are applied on top of the already rendered appearance of the node. Hatches are not affected by lighting.
The hatchStyle field selects a hatch pattern as defined in the International Register of Graphical Items. The hatches are rendered using the colour specified by the hatchColor field. The following hatch styles are available:
The associated geometry shall be filled and/or hatched only when the respective values of the filled and/or hatched fields have value TRUE.
Changing the hatch style 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 "fillProperties". 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. |
|
|
The filled field specifies if the geometry should be filled or not. If not filled it will be rendered as wireframe.
Access type: inputOutput
|
|
|
The color of the hatches.
Access type: inputOutput
|
|
|
The hatched field specifies if the geometry should be hatched or not.
Access type: inputOutput
|
|
|
The hatchStyle field selects a hatch pattern to be used. For more information see the Detailed description
Access type: inputOutput
|
1.4.5