H3D::FillProperties Class Reference
[X3D node classes.]

The FillProperties node specifies additional properties to be applied to all polygonal areas on top of whatever appearance is specified by the other fields of the respective Appearance node. More...

#include <H3D/FillProperties.h>

Inheritance diagram for H3D::FillProperties:

Inheritance graph

List of all members.

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< SFBoolfilled
 The filled field specifies if the geometry should be filled or not.
auto_ptr< SFColorhatchColor
 The color of the hatches.
auto_ptr< SFBoolhatched
 The hatched field specifies if the geometry should be hatched or not.
auto_ptr< SFInt32hatchStyle
 The hatchStyle field selects a hatch pattern to be used.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The FillProperties node specifies additional properties to be applied to all polygonal areas on top of whatever appearance is specified by the other fields of the respective Appearance 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:

  1. horizontal, equally spaced lines
  2. vertical, equally spaced lines
  3. positive slope, equally spaced lines
  4. negative slope, equally spaced lines
  5. horizontal/vertical crosshatch
  6. positive slope/negative slope crosshatch

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.

Internal routes:
FillProperties.dot

Member Function Documentation

virtual string H3D::FillProperties::defaultXMLContainerField (  )  [inline, virtual]

Returns the default xml containerField attribute value.

For this node it is "fillProperties".

Reimplemented from H3D::Node.

virtual void H3D::FillProperties::postRender (  )  [inline, virtual]

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().

Reimplemented from H3D::X3DAppearanceChildNode.

Referenced by H3D::Appearance::postRender().

virtual void H3D::FillProperties::preRender (  )  [inline, virtual]

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.

Referenced by H3D::Appearance::preRender().


Member Data Documentation

The filled field specifies if the geometry should be filled or not.

If not filled it will be rendered as wireframe.

Access type: inputOutput
Default value: true

FillProperties_filled.dot

Referenced by FillProperties(), and render().

The color of the hatches.

Access type: inputOutput
Default value: RGB( 1,1,1 )

FillProperties_hatchColor.dot

Referenced by FillProperties(), and render().

The hatched field specifies if the geometry should be hatched or not.

Access type: inputOutput
Default value: true

FillProperties_filled.dot

Referenced by FillProperties(), and render().

The hatchStyle field selects a hatch pattern to be used.

For more information see the Detailed description

Access type: inputOutput
Default value: 1

FillProperties_hatchStyle.dot

Referenced by FillProperties(), and render().


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:30:06 2008 for H3D API by  doxygen 1.5.7