version 3.3

VRS::ColorAttribute Class Reference

Wrapper class for adding colors to the scene graph. More...

#include <vrs/colorattribute.h>

Inheritance diagram for VRS::ColorAttribute:

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

List of all members.

Public Member Functions

 ColorAttribute (const Color &color=Color())
 Constructs the wrapper object with a given color.
 ColorAttribute (double r, double g, double b, double opacity=1.0)
 Constructs the wrapper object with given rgba components (opacity = alpha).
bool operator== (const ColorAttribute &other) const
void setColor (const Color &)
 Sets the represented color.
Color getColor () const
 Returns the represented color.
 VRS_TYPEINFO (ColorAttribute, MonoAttribute)
 VRS_SERIALIZABLE (ColorAttribute)


Detailed Description

Wrapper class for adding colors to the scene graph.

Constructor & Destructor Documentation

VRS::ColorAttribute::ColorAttribute ( const Color color = Color()  ) 

Constructs the wrapper object with a given color.

VRS::ColorAttribute::ColorAttribute ( double  r,
double  g,
double  b,
double  opacity = 1.0 
)

Constructs the wrapper object with given rgba components (opacity = alpha).


Member Function Documentation

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

void VRS::ColorAttribute::setColor ( const Color c  )  [inline]

Sets the represented color.

Color VRS::ColorAttribute::getColor (  )  const [inline]

Returns the represented color.

VRS::ColorAttribute::VRS_TYPEINFO ( ColorAttribute  ,
MonoAttribute   
)

VRS::ColorAttribute::VRS_SERIALIZABLE ( ColorAttribute   ) 


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

Generated on Mon May 21 06:00:16 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact