SbVec4ui32 Class Reference
[Basics]

VSG extension 4D vector class. More...

#include <Inventor/SbVec.h>

List of all members.

Public Member Functions

 SbVec4ui32 ()
 SbVec4ui32 (const uint32_t v[4])
 SbVec4ui32 (uint32_t x, uint32_t y, uint32_t z, uint32_t w)
int32_t dot (const SbVec4ui32 &v) const
const uint32_t * getValue () const
void getValue (uint32_t &x, uint32_t &y, uint32_t &z, uint32_t &w) const
SbVec4ui32setValue (const uint32_t v[4])
SbVec4ui32setValue (uint32_t x, uint32_t y, uint32_t z, uint32_t w)
SbVec4ui32operator*= (int d)
SbVec4ui32operator*= (double d)
SbVec4ui32operator/= (int d)
SbVec4ui32operator/= (double d)
SbVec4ui32operator+= (const SbVec4ui32 &u)
SbVec4ui32operator-= (const SbVec4ui32 &u)
template<typename T >
 SbVec4ui32 (const T &v)

Friends

SbVec4ui32 operator* (const SbVec4ui32 &v, int d)
SbVec4ui32 operator* (const SbVec4ui32 &v, double d)
SbVec4ui32 operator* (int d, const SbVec4ui32 &v)
SbVec4ui32 operator* (double d, const SbVec4ui32 &v)
SbVec4ui32 operator/ (const SbVec4ui32 &v, int d)
SbVec4ui32 operator/ (const SbVec4ui32 &v, double d)
SbVec4ui32 operator+ (const SbVec4ui32 &v1, const SbVec4ui32 &v2)
SbVec4ui32 operator- (const SbVec4ui32 &v1, const SbVec4ui32 &v2)
int operator== (const SbVec4ui32 &v1, const SbVec4ui32 &v2)
int operator!= (const SbVec4ui32 &v1, const SbVec4ui32 &v2)
std::ostream & operator<< (std::ostream &os, const SbVec4ui32 &v)



uint32_t & operator[] (int i)
const uint32_t & operator[] (int i) const

Detailed Description

VSG extension 4D vector class.

4D vector class used to store 4D integer vectors and points. This class is used throughout Open Inventor for arguments and return values.

SEE ALSO

SbRotation, SbRotationd, SbVec2d, SbVec2f, SbVec2i32, SbVec2s, SbVec3d, SbVec3f, SbVec3i32, SbVec3s, SbVec4b, SbVec4d, SbVec4f, SbVec4i32, SbVec4s, SbVec4ub, SbVec4us


Constructor & Destructor Documentation

SbVec4ui32::SbVec4ui32 (  )  [inline]

Default constructor.

The vector is not initialized.

SbVec4ui32::SbVec4ui32 ( const uint32_t  v[4]  )  [inline]

Constructor given 4 components.

SbVec4ui32::SbVec4ui32 ( uint32_t  x,
uint32_t  y,
uint32_t  z,
uint32_t  w 
) [inline]

Constructor given 4 components.

template<typename T >
SbVec4ui32::SbVec4ui32 ( const T &  v  )  [inline, explicit]

Constructor that converts an arbitrary SbVec4 to an SbVec4ui32.


Member Function Documentation

int32_t SbVec4ui32::dot ( const SbVec4ui32 v  )  const [inline]

Returns dot (inner) product of vector and another vector.

void SbVec4ui32::getValue ( uint32_t &  x,
uint32_t &  y,
uint32_t &  z,
uint32_t &  w 
) const

Returns vector components.

const uint32_t* SbVec4ui32::getValue (  )  const [inline]

Returns vector components.

SbVec4ui32& SbVec4ui32::operator*= ( double  d  ) 

Component-wise scalar multiplication operator.

SbVec4ui32& SbVec4ui32::operator*= ( int  d  ) 

Component-wise scalar multiplication operator.

SbVec4ui32& SbVec4ui32::operator+= ( const SbVec4ui32 u  ) 

Component-wise vector addition operator.

SbVec4ui32& SbVec4ui32::operator-= ( const SbVec4ui32 u  ) 

Component-wise vector subtraction operator.

SbVec4ui32& SbVec4ui32::operator/= ( double  d  )  [inline]

Component-wise scalar division operator.

SbVec4ui32& SbVec4ui32::operator/= ( int  d  ) 

Component-wise scalar division operator.

const uint32_t& SbVec4ui32::operator[] ( int  i  )  const [inline]

Accesses indexed component of vector.

uint32_t& SbVec4ui32::operator[] ( int  i  )  [inline]

Accesses indexed component of vector.

SbVec4ui32& SbVec4ui32::setValue ( uint32_t  x,
uint32_t  y,
uint32_t  z,
uint32_t  w 
)

Sets vector components.

SbVec4ui32& SbVec4ui32::setValue ( const uint32_t  v[4]  ) 

Sets vector components.


Friends And Related Function Documentation

int operator!= ( const SbVec4ui32 v1,
const SbVec4ui32 v2 
) [friend]

Inequality comparison operator.

SbVec4ui32 operator* ( double  d,
const SbVec4ui32 v 
) [friend]

Component-wise binary scalar multiplication operator.

SbVec4ui32 operator* ( int  d,
const SbVec4ui32 v 
) [friend]

Component-wise binary scalar multiplication operator.

SbVec4ui32 operator* ( const SbVec4ui32 v,
double  d 
) [friend]

Component-wise binary scalar multiplication operator.

SbVec4ui32 operator* ( const SbVec4ui32 v,
int  d 
) [friend]

Component-wise binary scalar multiplication operator.

SbVec4ui32 operator+ ( const SbVec4ui32 v1,
const SbVec4ui32 v2 
) [friend]

Component-wise binary vector addition operator.

SbVec4ui32 operator- ( const SbVec4ui32 v1,
const SbVec4ui32 v2 
) [friend]

Component-wise binary vector subtraction operator.

SbVec4ui32 operator/ ( const SbVec4ui32 v,
double  d 
) [friend]

Component-wise binary scalar division operator.

SbVec4ui32 operator/ ( const SbVec4ui32 v,
int  d 
) [friend]

Component-wise binary scalar division operator.

std::ostream& operator<< ( std::ostream &  os,
const SbVec4ui32 v 
) [friend]

Writes the vector to the specified output stream.

int operator== ( const SbVec4ui32 v1,
const SbVec4ui32 v2 
) [friend]

Equality comparison operator.


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

Open Inventor Toolkit reference manual, generated on 8 Apr 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/