version 3.3

VRS::SilhouetteStyleGL Class Reference

#include <vrs/opengl/silhouettestylegl.h>

Inheritance diagram for VRS::SilhouetteStyleGL:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  StyleMode { Silhouette = 0, Enhanced = 1 }

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (StyleMode)
 SilhouetteStyleGL (StyleMode styleMode=SilhouetteStyleGL::Enhanced, double linewidth=3.0, const Color &silhouettecolor=Color(0.0, 0.0, 1.0))
void setMode (StyleMode mode)
 Sets the Silhouette style.
StyleMode getMode () const
 Gets the Silhouette style.
void setLineWidth (double pixel)
 Sets the width of the silhouette. Must be greater or equal zero.
double getLineWidth () const
 Gets the width of the silhouette.
void setSilhouetteColor (const Color &c)
 Sets the color of the silhouette.
Color getSilhouetteColor () const
 Gets the color of the silhouette.
 VRS_TYPEINFO (SilhouetteStyleGL, MonoAttribute)
 VRS_SERIALIZABLE (SilhouetteStyleGL)


Member Enumeration Documentation

Enumerator:
Silhouette 
Enhanced 


Constructor & Destructor Documentation

VRS::SilhouetteStyleGL::SilhouetteStyleGL ( StyleMode  styleMode = SilhouetteStyleGL::Enhanced,
double  linewidth = 3.0,
const Color silhouettecolor = Color(0.0, 0.0, 1.0) 
)

Extended Silhouette Styles for OpenGL-drawn Facettes. Supported modes are:
Silhouette: only the silhouette of a shape is visible
Enhanced: the silhouette and the shape are visible both


Member Function Documentation

VRS::SilhouetteStyleGL::VRS_SERIALIZABLE_CLASS_ENUM ( StyleMode   ) 

void VRS::SilhouetteStyleGL::setMode ( StyleMode  mode  ) 

Sets the Silhouette style.

SilhouetteStyleGL::StyleMode VRS::SilhouetteStyleGL::getMode (  )  const [inline]

Gets the Silhouette style.

void VRS::SilhouetteStyleGL::setLineWidth ( double  pixel  ) 

Sets the width of the silhouette. Must be greater or equal zero.

double VRS::SilhouetteStyleGL::getLineWidth (  )  const [inline]

Gets the width of the silhouette.

void VRS::SilhouetteStyleGL::setSilhouetteColor ( const Color c  ) 

Sets the color of the silhouette.

Color VRS::SilhouetteStyleGL::getSilhouetteColor (  )  const [inline]

Gets the color of the silhouette.

VRS::SilhouetteStyleGL::VRS_TYPEINFO ( SilhouetteStyleGL  ,
MonoAttribute   
)

VRS::SilhouetteStyleGL::VRS_SERIALIZABLE ( SilhouetteStyleGL   ) 


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

Generated on Tue May 22 06:00:24 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact