SoSFColorRGBA Class Reference
[Fields]

Field containing an RGBA color. More...

#include <Inventor/fields/SoSFColorRGBA.h>

Inheritance diagram for SoSFColorRGBA:
SoSField SoField SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
const SoSFColorRGBAoperator= (const SoSFColorRGBA &f)
 SoSFColorRGBA ()
virtual ~SoSFColorRGBA ()
const SbColorRGBAgetValue () const
void setValue (const SbColorRGBA &newValue)
const SbColorRGBAoperator= (const SbColorRGBA &newValue)
int operator== (const SoSFColorRGBA &f) const
int operator!= (const SoSFColorRGBA &f) const
virtual size_t getValueSize () const
void setValue (const SbVec4f &vec)
void setValue (float r, float g, float b, float a)
void setValue (const float rgba[4])
void setHSVAValue (float h, float s, float v, float a)
void setHSVAValue (const float hsva[4])

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

Field containing an RGBA color.

A single-value field containing an SbColorRGBA. Values are set in RGBA (red, green, blue, alpha) color space.

SoSFColorRGBAs are written to file as an RGBA quadruple of floating point numbers in standard scientific notation, in the range 0.0 to 1.0.

SEE ALSO

SoField, SoSField, SoMFColorRGBA, SbColorRGBA


Constructor & Destructor Documentation

SoSFColorRGBA::SoSFColorRGBA (  ) 

Default constructor.

virtual SoSFColorRGBA::~SoSFColorRGBA (  )  [virtual]

Destructor.


Member Function Documentation

static SoType SoSFColorRGBA::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoSField.

virtual SoType SoSFColorRGBA::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Implements SoTypedObject.

const SbColorRGBA& SoSFColorRGBA::getValue (  )  const [inline]

Returns this field's value.

virtual size_t SoSFColorRGBA::getValueSize (  )  const [inline, virtual]

Get size of the value.

Reimplemented from SoField.

int SoSFColorRGBA::operator!= ( const SoSFColorRGBA f  )  const [inline]

Returns FALSE if otherField is of the same type and has the same value as this field.

Reimplemented from SoField.

const SbColorRGBA& SoSFColorRGBA::operator= ( const SbColorRGBA newValue  )  [inline]

Sets this field to newValue.

const SoSFColorRGBA& SoSFColorRGBA::operator= ( const SoSFColorRGBA f  ) 

Copy from another field of same type.

int SoSFColorRGBA::operator== ( const SoSFColorRGBA f  )  const

Returns TRUE if otherField is of the same type and has the same value as this field.

Reimplemented from SoField.

void SoSFColorRGBA::setHSVAValue ( const float  hsva[4]  ) 

Convenience method for setting the value.

void SoSFColorRGBA::setHSVAValue ( float  h,
float  s,
float  v,
float  a 
)

Convenience method for setting the value.

void SoSFColorRGBA::setValue ( const float  rgba[4]  ) 

Convenience method for setting the value.

void SoSFColorRGBA::setValue ( float  r,
float  g,
float  b,
float  a 
)

Convenience method for setting the value.

void SoSFColorRGBA::setValue ( const SbVec4f vec  ) 

Convenience method for setting the value.

void SoSFColorRGBA::setValue ( const SbColorRGBA newValue  ) 

Sets this field to newValue.


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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/