version 3.3

VRS::PointStyle Class Reference

Point Style Attribute. More...

#include <vrs/pointstyle.h>

Inheritance diagram for VRS::PointStyle:

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

List of all members.

Public Types

enum  AAMode { AANone = 0, AAFastest = 1, AANicest = 2 }

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (AAMode)
 PointStyle (double pixelsize=1.0, bool lighting=false, AAMode antialiasing=PointStyle::AANone)
bool operator== (const PointStyle &other) const
bool operator!= (const PointStyle &other) const
void setPixelSize (double pixelsize)
double getPixelSize () const
void setLighting (bool onOff)
bool getLighting () const
void setAntialiasing (PointStyle::AAMode antialiasingmode)
PointStyle::AAMode getAntialiasing () const
 VRS_TYPEINFO (PointStyle, MonoAttribute)
 VRS_SERIALIZABLE (PointStyle)


Detailed Description

Point Style Attribute.

Member Enumeration Documentation

Enumerator:
AANone 
AAFastest 
AANicest 


Constructor & Destructor Documentation

VRS::PointStyle::PointStyle ( double  pixelsize = 1.0,
bool  lighting = false,
AAMode  antialiasing = PointStyle::AANone 
)

The width of points can be specified in pixels or in model coordinates. Point painters will use one of these values.


Member Function Documentation

VRS::PointStyle::VRS_SERIALIZABLE_CLASS_ENUM ( AAMode   ) 

bool VRS::PointStyle::operator== ( const PointStyle other  )  const

bool VRS::PointStyle::operator!= ( const PointStyle other  )  const

void VRS::PointStyle::setPixelSize ( double  pixelsize  ) 

double VRS::PointStyle::getPixelSize (  )  const [inline]

Size of a point in pixels. If set, it overwrites the object size which is reset to zero.

void VRS::PointStyle::setLighting ( bool  onOff  ) 

bool VRS::PointStyle::getLighting (  )  const [inline]

The lighting flag specifies if lightsources are applied to the points. If lighting is turned on, a normal for each is point is required and has to be specified by a corresponding iterator in the point set. Note that sometimes OpenGL does not accelerate lit points!

void VRS::PointStyle::setAntialiasing ( PointStyle::AAMode  antialiasingmode  ) 

PointStyle::AAMode VRS::PointStyle::getAntialiasing (  )  const [inline]

Turns on or off antialiasing for points. Antialiasing is required if points with a pixel size other than one should be drawn with an approximately round shape.

VRS::PointStyle::VRS_TYPEINFO ( PointStyle  ,
MonoAttribute   
)

VRS::PointStyle::VRS_SERIALIZABLE ( PointStyle   ) 


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

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