Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

sglPolyStyle Class Reference

#include <sglStatelet.hpp>

Inheritance diagram for sglPolyStyle::

sglStatelet sglObject sglPolyBackStyle sglPolyFrontStyle List of all members.

Public Types

enum  StyleEnum {
  eFILLED = 0,
  eLINE,
  ePOINT
}

Public Methods

void setStyle (StyleEnum style)
StyleEnum getStyle () const
virtual void printInfo (ostream &ostrm, const char *indent_string) const

Protected Methods

 sglPolyStyle (StateEnum type, StyleEnum style)
virtual ~sglPolyStyle ()

Protected Attributes

StyleEnum m_style

Detailed Description

This statelet encapsulates OpenGL's glPolygonMode() function which controls the drawing mode for polygons as filled, wireframe (LINE), or points. This is the abstract base class for the sglPolyFrontStyle and sglPolyBackStyle subclasses that control which side of the polygon is affected. By default both front and back faces are drawn filled.

Definition at line 1768 of file sglStatelet.hpp.


Member Enumeration Documentation

enum sglPolyStyle::StyleEnum
 

Tokens for the three styles.

Enumeration values:
eFILLED   filled, the default.
eLINE   wireframe.
ePOINT   points (at each vertex).

Definition at line 1772 of file sglStatelet.hpp.


Member Function Documentation

void sglPolyStyle::setStyle ( StyleEnum style ) [inline]
 

Set the polygon style for the side specified by the subclass.

Parameters:
style   One of the StyleEnum tokens

Definition at line 1788 of file sglStatelet.hpp.

StyleEnum sglPolyStyle::getStyle ( ) const [inline]
 

Query the current polygon style

Returns:
The StyleEnum token corresponding to the current polygon mode.

Definition at line 1793 of file sglStatelet.hpp.

virtual void sglPolyStyle::printInfo ( ostream & ostrm,
const char * indent_string ) const [virtual]
 

Output the state of this node to the specified ostream.

Parameters:
ostrm   the ostream to which the output is sent
indent_string   the string (usually spaces) that is output at the beginning of every line of output

Reimplemented from sglStatelet.


The documentation for this class was generated from the following file:
Generated at Mon Jul 1 18:00:09 2002 for SGL by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001