version 3.3

VRS::SurfaceStyleGL Class Reference

#include <vrs/opengl/surfacestylegl.h>

Inheritance diagram for VRS::SurfaceStyleGL:

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

List of all members.

Public Types

enum  StyleMode {
  NormalWires = 0, FatWires = 1, HaloedWires = 2, Segments = 3,
  Normal = 4
}

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (StyleMode)
 SurfaceStyleGL (StyleMode styleMode=SurfaceStyleGL::NormalWires, double linewidth=3.0, double haloewidth=10.0, bool culling=false)
void setMode (StyleMode mode)
 Sets the surface style.
StyleMode getMode () const
 Gets the surface style.
void setLineWidth (double pixel)
double getLineWidth () const
 Gets the line width.
void setHaloeWidth (double pixel)
double getHaloeWidth () const
 Gets the haloe width.
void setCulling (bool onOff)
 Sets culling on / off.
bool getCulling () const
 Gets culling state.
 VRS_TYPEINFO (SurfaceStyleGL, MonoAttribute)
 VRS_SERIALIZABLE (SurfaceStyleGL)


Member Enumeration Documentation

Enumerator:
NormalWires 
FatWires 
HaloedWires 
Segments 
Normal 


Constructor & Destructor Documentation

VRS::SurfaceStyleGL::SurfaceStyleGL ( StyleMode  styleMode = SurfaceStyleGL::NormalWires,
double  linewidth = 3.0,
double  haloewidth = 10.0,
bool  culling = false 
)

Extended Surface Styles for OpenGL-drawn Facettes. Supported modes are:
NormalWires : wireframe drawing
FatWires : wireframe, but the shape is not transparent
HaloedWires : wireframe with not transparent haloe arround the wires
Segments : inverse of NormalWires
Normal : polygons are rendered filled


Member Function Documentation

VRS::SurfaceStyleGL::VRS_SERIALIZABLE_CLASS_ENUM ( StyleMode   ) 

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

Sets the surface style.

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

Gets the surface style.

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

Line width is used for normal wires, fat wires, haloed wires, and segments modes. Must be greater or equal zero.

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

Gets the line width.

void VRS::SurfaceStyleGL::setHaloeWidth ( double  pixel  ) 

Sets the distance between a hidden and a visible line used in the haloed-wire mode. Must be greater or equal zero.

double VRS::SurfaceStyleGL::getHaloeWidth (  )  const [inline]

Gets the haloe width.

void VRS::SurfaceStyleGL::setCulling ( bool  onOff  ) 

Sets culling on / off.

bool VRS::SurfaceStyleGL::getCulling (  )  const [inline]

Gets culling state.

VRS::SurfaceStyleGL::VRS_TYPEINFO ( SurfaceStyleGL  ,
MonoAttribute   
)

VRS::SurfaceStyleGL::VRS_SERIALIZABLE ( SurfaceStyleGL   ) 


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

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