From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/class_NLMISC__CRGBAF.html | 994 +++++++++++++++++++++++++++++ 1 file changed, 994 insertions(+) create mode 100644 docs/doxygen/nel/class_NLMISC__CRGBAF.html (limited to 'docs/doxygen/nel/class_NLMISC__CRGBAF.html') diff --git a/docs/doxygen/nel/class_NLMISC__CRGBAF.html b/docs/doxygen/nel/class_NLMISC__CRGBAF.html new file mode 100644 index 00000000..cbf31a22 --- /dev/null +++ b/docs/doxygen/nel/class_NLMISC__CRGBAF.html @@ -0,0 +1,994 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NLMISC::CRGBAF Class Reference

Class pixel float RGBA. +More... +

+#include <rgba.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

 CRGBAF ()
 Default constructor. do nothing. More...

 CRGBAF (float _r, float _g, float _b, float _a=1.f)
 Constructor. More...

 CRGBAF (const CRGBA& c)
 Constructor with a CRGBA. More...

 operator CRGBA () const
 Cast operator to CRGBA. More...

void normalize ()
 Normalize component between [0.f,1.f]. More...

CRGBAF operator+ (const CRGBAF& c) const
 Add operator. More...

CRGBAF operator- (const CRGBAF& c) const
 Sub operator. More...

CRGBAF operator * (const CRGBAF& c) const
 Mul operator. More...

CRGBAF operator * (float f) const
 Mul float operator. More...

CRGBAF operator/ (float f) const
 Div float operator. More...

CRGBAF& operator+= (const CRGBAF& c)
 Add operator. More...

CRGBAF& operator-= (const CRGBAF& c)
 Sub operator. More...

CRGBAF& operator *= (const CRGBAF& c)
 Mul operator. More...

CRGBAF& operator *= (float f)
 Mul float operator. More...

CRGBAF& operator/= (float f)
 Div float operator. More...

void serial (class NLMISC::IStream &f)
 Serialisation. More...

void set (float r, float g, float b, float a)
 Set colors. More...


Public Attributes

float R
 Red componant. More...

float G
 Green componant. More...

float B
 Blue componant. More...

float A
 Alpha componant. More...

+


Detailed Description

+Class pixel float RGBA. +

+

+Author(s):
+ Cyril Corvazier , Nevrax France
+Date:
+ 2000
+

+ +

+Definition at line 316 of file rgba.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + +
+NLMISC::CRGBAF::CRGBAF ( + +) [inline] +
+
+ + + + + +
+   + + +

+Default constructor. do nothing. +

+ +

+Definition at line 320 of file rgba.h.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+NLMISC::CRGBAF::CRGBAF ( + +float _r, +
+float _g, +
+float _b, +
+float _a = 1.f ) [inline] +
+
+ + + + + +
+   + + +

+Constructor. +

+

+Parameters:
+ + + + + +
_r + Red componant.
_g + Green componant.
_b + Blue componant.
_a + Alpha componant.
+
+

+Definition at line 330 of file rgba.h.

+

+ + + + +
+ + + + + + +
+NLMISC::CRGBAF::CRGBAF ( + +const CRGBA & c ) [inline] +
+
+ + + + + +
+   + + +

+Constructor with a CRGBA. +

+

+Parameters:
+ + +
c + CRGBA color.
+
+

+Definition at line 342 of file rgba.h.

+


Member Function Documentation

+

+ + + + +
+ + + + + + +
+void NLMISC::CRGBAF::normalize ( + +) [inline] +
+
+ + + + + +
+   + + +

+Normalize component between [0.f,1.f]. +

+ +

+Definition at line 365 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF NLMISC::CRGBAF::operator * ( + +float f ) const [inline] +
+
+ + + + + +
+   + + +

+Mul float operator. +

+Mul each component by f.

+Parameters:
+ + +
f + Float factor.
+
+Returns:
+ Return the result of the opertor
+

+Definition at line 408 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF NLMISC::CRGBAF::operator * ( + +const CRGBAF & c ) const [inline] +
+
+ + + + + +
+   + + +

+Mul operator. +

+Mul components.

+Parameters:
+ + +
c + CRGBA color.
+
+Returns:
+ Return the result of the opertor
+

+Definition at line 398 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF & NLMISC::CRGBAF::operator *= ( + +float f ) [inline] +
+
+ + + + + +
+   + + +

+Mul float operator. +

+Multiplate each component by f.

+Parameters:
+ + +
f + Float factor.
+
+Returns:
+ Return a reference on the caller object
+

+Definition at line 470 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF & NLMISC::CRGBAF::operator *= ( + +const CRGBAF & c ) [inline] +
+
+ + + + + +
+   + + +

+Mul operator. +

+Multiplate each component.

+Parameters:
+ + +
c + CRGBA color.
+
+Returns:
+ Return a reference on the caller object
+

+Definition at line 456 of file rgba.h.

+

+ + + + +
+ + + + + + +
+NLMISC::CRGBAF::operator CRGBA ( + +) const [inline] +
+
+ + + + + +
+   + + +

+Cast operator to CRGBA. +

+ +

+Definition at line 353 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF NLMISC::CRGBAF::operator+ ( + +const CRGBAF & c ) const [inline] +
+
+ + + + + +
+   + + +

+Add operator. +

+Sum components.

+Parameters:
+ + +
c + CRGBA color.
+
+Returns:
+ Return the result of the opertor
+

+Definition at line 378 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF & NLMISC::CRGBAF::operator+= ( + +const CRGBAF & c ) [inline] +
+
+ + + + + +
+   + + +

+Add operator. +

+Add each component.

+Parameters:
+ + +
c + CRGBA color.
+
+Returns:
+ Return a reference on the caller object
+

+Definition at line 428 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF NLMISC::CRGBAF::operator- ( + +const CRGBAF & c ) const [inline] +
+
+ + + + + +
+   + + +

+Sub operator. +

+Substract components.

+Parameters:
+ + +
c + CRGBA color.
+
+Returns:
+ Return the result of the opertor
+

+Definition at line 388 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF & NLMISC::CRGBAF::operator-= ( + +const CRGBAF & c ) [inline] +
+
+ + + + + +
+   + + +

+Sub operator. +

+Substract each component.

+Parameters:
+ + +
c + CRGBA color.
+
+Returns:
+ Return a reference on the caller object
+

+Definition at line 442 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF NLMISC::CRGBAF::operator/ ( + +float f ) const [inline] +
+
+ + + + + +
+   + + +

+Div float operator. +

+Div each component by f.

+Parameters:
+ + +
f + Float factor.
+
+Returns:
+ Return the result of the opertor
+

+Definition at line 418 of file rgba.h.

+

+ + + + +
+ + + + + + +
+CRGBAF & NLMISC::CRGBAF::operator/= ( + +float f ) [inline] +
+
+ + + + + +
+   + + +

+Div float operator. +

+Divide each component by f.

+Parameters:
+ + +
f + Float factor.
+
+Returns:
+ Return a reference on the caller object
+

+Definition at line 484 of file rgba.h.

+

+ + + + +
+ + + + + + +
+void NLMISC::CRGBAF::serial ( + +class NLMISC::IStream & f ) +
+
+ + + + + +
+   + + +

+Serialisation. +

+

+Parameters:
+ + +
f + Stream used for serialisation.
+
+

+Definition at line 113 of file rgba.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+void NLMISC::CRGBAF::set ( + +float r, +
+float g, +
+float b, +
+float a ) +
+
+ + + + + +
+   + + +

+Set colors. +

+

+Parameters:
+ + + + + +
r + Red componant.
g + Green componant.
b + Blue componant.
a + Alpha componant.
+
+

+Definition at line 121 of file rgba.cpp.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+float NLMISC::CRGBAF::A +
+
+ + + + + +
+   + + +

+Alpha componant. +

+ +

+Definition at line 515 of file rgba.h.

+

+ + + + +
+ + + + + +
+float NLMISC::CRGBAF::B +
+
+ + + + + +
+   + + +

+Blue componant. +

+ +

+Definition at line 513 of file rgba.h.

+

+ + + + +
+ + + + + +
+float NLMISC::CRGBAF::G +
+
+ + + + + +
+   + + +

+Green componant. +

+ +

+Definition at line 511 of file rgba.h.

+

+ + + + +
+ + + + + +
+float NLMISC::CRGBAF::R +
+
+ + + + + +
+   + + +

+Red componant. +

+ +

+Definition at line 509 of file rgba.h.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1