OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
osg::Vec4b Class Reference

#include <Vec4b.h>

Public Types

enum  { num_components = 4 }
 
typedef signed char value_type
 

Public Member Functions

 Vec4b ()
 
 Vec4b (value_type x, value_type y, value_type z, value_type w)
 
bool operator== (const Vec4b &v) const
 
bool operator!= (const Vec4b &v) const
 
bool operator< (const Vec4b &v) const
 
value_typeptr ()
 
const value_typeptr () const
 
void set (value_type x, value_type y, value_type z, value_type w)
 
value_typeoperator[] (unsigned int i)
 
value_type operator[] (unsigned int i) const
 
value_typex ()
 
value_typey ()
 
value_typez ()
 
value_typew ()
 
value_type x () const
 
value_type y () const
 
value_type z () const
 
value_type w () const
 
value_typer ()
 
value_typeg ()
 
value_typeb ()
 
value_typea ()
 
value_type r () const
 
value_type g () const
 
value_type b () const
 
value_type a () const
 
Vec4b operator* (float rhs) const
 
Vec4boperator*= (float rhs)
 
Vec4b operator/ (float rhs) const
 
Vec4boperator/= (float rhs)
 
Vec4b operator+ (const Vec4b &rhs) const
 
Vec4boperator+= (const Vec4b &rhs)
 
Vec4b operator- (const Vec4b &rhs) const
 
Vec4boperator-= (const Vec4b &rhs)
 

Public Attributes

value_type _v [4]
 

Detailed Description

General purpose float triple. Uses include representation of color coordinates. No support yet added for float * Vec4b - is it necessary? Need to define a non-member non-friend operator* etc. Vec4b * float is okay

Definition at line 25 of file Vec4b.h.

Member Typedef Documentation

typedef signed char osg::Vec4b::value_type

Data type of vector components.

Definition at line 30 of file Vec4b.h.

Member Enumeration Documentation

anonymous enum

Number of vector components.

Enumerator
num_components 

Definition at line 33 of file Vec4b.h.

Constructor & Destructor Documentation

osg::Vec4b::Vec4b ( )
inline

Constructor that sets all components of the vector to zero

Definition at line 38 of file Vec4b.h.

Here is the caller graph for this function:

osg::Vec4b::Vec4b ( value_type  x,
value_type  y,
value_type  z,
value_type  w 
)
inline

Definition at line 40 of file Vec4b.h.

Here is the call graph for this function:

Member Function Documentation

value_type& osg::Vec4b::a ( )
inline

Definition at line 87 of file Vec4b.h.

value_type osg::Vec4b::a ( ) const
inline

Definition at line 92 of file Vec4b.h.

value_type& osg::Vec4b::b ( )
inline

Definition at line 86 of file Vec4b.h.

value_type osg::Vec4b::b ( ) const
inline

Definition at line 91 of file Vec4b.h.

value_type& osg::Vec4b::g ( )
inline

Definition at line 85 of file Vec4b.h.

value_type osg::Vec4b::g ( ) const
inline

Definition at line 90 of file Vec4b.h.

bool osg::Vec4b::operator!= ( const Vec4b v) const
inline

Definition at line 50 of file Vec4b.h.

Vec4b osg::Vec4b::operator* ( float  rhs) const
inline

Multiply by scalar.

Definition at line 95 of file Vec4b.h.

Vec4b& osg::Vec4b::operator*= ( float  rhs)
inline

Unary multiply by scalar.

Definition at line 103 of file Vec4b.h.

Vec4b osg::Vec4b::operator+ ( const Vec4b rhs) const
inline

Binary vector add.

Definition at line 129 of file Vec4b.h.

Here is the call graph for this function:

Vec4b& osg::Vec4b::operator+= ( const Vec4b rhs)
inline

Unary vector add. Slightly more efficient because no temporary intermediate object.

Definition at line 138 of file Vec4b.h.

Vec4b osg::Vec4b::operator- ( const Vec4b rhs) const
inline

Binary vector subtract.

Definition at line 148 of file Vec4b.h.

Here is the call graph for this function:

Vec4b& osg::Vec4b::operator-= ( const Vec4b rhs)
inline

Unary vector subtract.

Definition at line 155 of file Vec4b.h.

Vec4b osg::Vec4b::operator/ ( float  rhs) const
inline

Divide by scalar.

Definition at line 113 of file Vec4b.h.

Vec4b& osg::Vec4b::operator/= ( float  rhs)
inline

Unary divide by scalar.

Definition at line 121 of file Vec4b.h.

bool osg::Vec4b::operator< ( const Vec4b v) const
inline

Definition at line 52 of file Vec4b.h.

bool osg::Vec4b::operator== ( const Vec4b v) const
inline

Definition at line 48 of file Vec4b.h.

value_type& osg::Vec4b::operator[] ( unsigned int  i)
inline

Definition at line 71 of file Vec4b.h.

value_type osg::Vec4b::operator[] ( unsigned int  i) const
inline

Definition at line 72 of file Vec4b.h.

value_type* osg::Vec4b::ptr ( )
inline

Definition at line 63 of file Vec4b.h.

const value_type* osg::Vec4b::ptr ( ) const
inline

Definition at line 64 of file Vec4b.h.

value_type& osg::Vec4b::r ( )
inline

Definition at line 84 of file Vec4b.h.

value_type osg::Vec4b::r ( ) const
inline

Definition at line 89 of file Vec4b.h.

void osg::Vec4b::set ( value_type  x,
value_type  y,
value_type  z,
value_type  w 
)
inline

Definition at line 66 of file Vec4b.h.

Here is the call graph for this function:

value_type& osg::Vec4b::w ( )
inline

Definition at line 77 of file Vec4b.h.

Here is the caller graph for this function:

value_type osg::Vec4b::w ( ) const
inline

Definition at line 82 of file Vec4b.h.

value_type& osg::Vec4b::x ( )
inline

Definition at line 74 of file Vec4b.h.

Here is the caller graph for this function:

value_type osg::Vec4b::x ( ) const
inline

Definition at line 79 of file Vec4b.h.

value_type& osg::Vec4b::y ( )
inline

Definition at line 75 of file Vec4b.h.

Here is the caller graph for this function:

value_type osg::Vec4b::y ( ) const
inline

Definition at line 80 of file Vec4b.h.

value_type& osg::Vec4b::z ( )
inline

Definition at line 76 of file Vec4b.h.

Here is the caller graph for this function:

value_type osg::Vec4b::z ( ) const
inline

Definition at line 81 of file Vec4b.h.

Member Data Documentation

value_type osg::Vec4b::_v[4]

Definition at line 35 of file Vec4b.h.


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