SOFA API  1df67014
Open source framework for multi-physics simuation
vrender::Feedback3DColor Class Reference

#include <Primitive.h>

Protected Attributes

Vector3 _pos
 
GLfloat _red
 
GLfloat _green
 
GLfloat _blue
 
GLfloat _alpha
 

Public Member Functions

 Feedback3DColor (GLfloat *loc)
 
FLOAT x () const
 
FLOAT y () const
 
FLOAT z () const
 
GLfloat red () const
 
GLfloat green () const
 
GLfloat blue () const
 
GLfloat alpha () const
 
const Vector3pos () const
 
Feedback3DColor operator+ (const Feedback3DColor &v) const
 
Feedback3DColor operator* (const GLFLOAT &f) const
 

Static Public Member Functions

static size_t sizeInBuffer ()
 

Protected Member Functions

 Feedback3DColor (FLOAT x, FLOAT y, FLOAT z, GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 

Friends

Feedback3DColor operator* (const GLFLOAT &f, const Feedback3DColor &F)
 
std::ostream & operator<< (std::ostream &, const Feedback3DColor &)
 

Attribute details

◆ _alpha

GLfloat vrender::Feedback3DColor::_alpha
protected

◆ _blue

GLfloat vrender::Feedback3DColor::_blue
protected

◆ _green

GLfloat vrender::Feedback3DColor::_green
protected

◆ _pos

Vector3 vrender::Feedback3DColor::_pos
protected

◆ _red

GLfloat vrender::Feedback3DColor::_red
protected

Constructor details

◆ Feedback3DColor() [1/2]

vrender::Feedback3DColor::Feedback3DColor ( GLfloat *  loc)
inline

◆ Feedback3DColor() [2/2]

vrender::Feedback3DColor::Feedback3DColor ( FLOAT  x,
FLOAT  y,
FLOAT  z,
GLfloat  r,
GLfloat  g,
GLfloat  b,
GLfloat  a 
)
inlineprotected

Function details

◆ alpha()

GLfloat vrender::Feedback3DColor::alpha ( ) const
inline

◆ blue()

GLfloat vrender::Feedback3DColor::blue ( ) const
inline

◆ green()

GLfloat vrender::Feedback3DColor::green ( ) const
inline

◆ operator*()

Feedback3DColor vrender::Feedback3DColor::operator* ( const GLFLOAT f) const
inline

◆ operator+()

Feedback3DColor vrender::Feedback3DColor::operator+ ( const Feedback3DColor v) const
inline

◆ pos()

const Vector3& vrender::Feedback3DColor::pos ( ) const
inline

◆ red()

GLfloat vrender::Feedback3DColor::red ( ) const
inline

◆ sizeInBuffer()

static size_t vrender::Feedback3DColor::sizeInBuffer ( )
inlinestatic

◆ x()

FLOAT vrender::Feedback3DColor::x ( ) const
inline

◆ y()

FLOAT vrender::Feedback3DColor::y ( ) const
inline

◆ z()

FLOAT vrender::Feedback3DColor::z ( ) const
inline

Related details

◆ operator*

Feedback3DColor operator* ( const GLFLOAT f,
const Feedback3DColor F 
)
friend

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const Feedback3DColor  
)
friend