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::Vec3i Class Reference

#include <Vec3i.h>

Public Types

enum  { num_components = 3 }
 
typedef int value_type
 

Public Member Functions

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

Public Attributes

value_type _v [3]
 

Detailed Description

General purpose integer triple

Definition at line 21 of file Vec3i.h.

Member Typedef Documentation

Type of Vec class.

Definition at line 26 of file Vec3i.h.

Member Enumeration Documentation

anonymous enum

Number of vector components.

Enumerator
num_components 

Definition at line 29 of file Vec3i.h.

Constructor & Destructor Documentation

osg::Vec3i::Vec3i ( )
inline

Definition at line 34 of file Vec3i.h.

Here is the caller graph for this function:

osg::Vec3i::Vec3i ( value_type  r,
value_type  g,
value_type  b 
)
inline

Definition at line 36 of file Vec3i.h.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 75 of file Vec3i.h.

Here is the caller graph for this function:

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

Definition at line 79 of file Vec3i.h.

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

Definition at line 74 of file Vec3i.h.

Here is the caller graph for this function:

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

Definition at line 78 of file Vec3i.h.

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

Definition at line 39 of file Vec3i.h.

Vec3i osg::Vec3i::operator* ( value_type  rhs) const
inline

Multiply by scalar.

Definition at line 82 of file Vec3i.h.

Here is the call graph for this function:

Vec3i osg::Vec3i::operator* ( const Vec3i rhs) const
inline

Definition at line 112 of file Vec3i.h.

Here is the call graph for this function:

Vec3i osg::Vec3i::operator+ ( value_type  rhs) const
inline

Definition at line 92 of file Vec3i.h.

Here is the call graph for this function:

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

Definition at line 102 of file Vec3i.h.

Here is the call graph for this function:

Vec3i osg::Vec3i::operator- ( value_type  rhs) const
inline

Definition at line 97 of file Vec3i.h.

Here is the call graph for this function:

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

Definition at line 107 of file Vec3i.h.

Here is the call graph for this function:

Vec3i osg::Vec3i::operator/ ( value_type  rhs) const
inline

Definition at line 87 of file Vec3i.h.

Here is the call graph for this function:

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

Definition at line 40 of file Vec3i.h.

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

Definition at line 38 of file Vec3i.h.

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

Definition at line 62 of file Vec3i.h.

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

Definition at line 63 of file Vec3i.h.

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

Definition at line 49 of file Vec3i.h.

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

Definition at line 50 of file Vec3i.h.

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

Definition at line 73 of file Vec3i.h.

Here is the caller graph for this function:

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

Definition at line 77 of file Vec3i.h.

void osg::Vec3i::set ( value_type  r,
value_type  g,
value_type  b 
)
inline

Definition at line 52 of file Vec3i.h.

Here is the call graph for this function:

void osg::Vec3i::set ( const Vec3i rhs)
inline

Definition at line 57 of file Vec3i.h.

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

Definition at line 65 of file Vec3i.h.

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

Definition at line 69 of file Vec3i.h.

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

Definition at line 66 of file Vec3i.h.

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

Definition at line 70 of file Vec3i.h.

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

Definition at line 67 of file Vec3i.h.

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

Definition at line 71 of file Vec3i.h.

Member Data Documentation

value_type osg::Vec3i::_v[3]

Vec member varaible.

Definition at line 32 of file Vec3i.h.


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