OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | Friends | List of all members
ossimCmyVector Class Reference

#include <ossimCmyVector.h>

Public Member Functions

 ossimCmyVector (unsigned char c, unsigned char m, unsigned char y)
 
 ossimCmyVector (const ossimRgbVector &rgb)
 
ossim_uint8 getC () const
 
ossim_uint8 getM () const
 
ossim_uint8 getY () const
 
const ossimCmyVectoroperator= (const ossimRgbVector &rgb)
 

Protected Attributes

ossim_uint8 theC
 
ossim_uint8 theM
 
ossim_uint8 theY
 

Friends

std::ostream & operator<< (std::ostream &out, const ossimCmyVector &cmy)
 

Detailed Description

Definition at line 18 of file ossimCmyVector.h.

Constructor & Destructor Documentation

◆ ossimCmyVector() [1/2]

ossimCmyVector::ossimCmyVector ( unsigned char  c,
unsigned char  m,
unsigned char  y 
)
inline

Definition at line 27 of file ossimCmyVector.h.

30  :
31  theC(c),
32  theM(m),
33  theY(y)
34  {}
ossim_uint8 theY
ossim_uint32 y
ossim_uint8 theC
ossim_uint8 theM

◆ ossimCmyVector() [2/2]

ossimCmyVector::ossimCmyVector ( const ossimRgbVector rgb)

Definition at line 13 of file ossimCmyVector.cpp.

References ossimRgbVector::getB(), ossimRgbVector::getG(), ossimRgbVector::getR(), theC, theM, and theY.

14 {
15  theC = 255 - rgb.getR();
16  theM = 255 - rgb.getG();
17  theY = 255 - rgb.getB();
18 }
unsigned char getR() const
ossim_uint8 theY
unsigned char getB() const
unsigned char getG() const
ossim_uint8 theC
ossim_uint8 theM

Member Function Documentation

◆ getC()

ossim_uint8 ossimCmyVector::getC ( ) const
inline

◆ getM()

ossim_uint8 ossimCmyVector::getM ( ) const
inline

◆ getY()

ossim_uint8 ossimCmyVector::getY ( ) const
inline

◆ operator=()

const ossimCmyVector & ossimCmyVector::operator= ( const ossimRgbVector rgb)

Definition at line 20 of file ossimCmyVector.cpp.

References ossimRgbVector::getB(), ossimRgbVector::getG(), ossimRgbVector::getR(), theC, theM, and theY.

21 {
22  theC = 255 - rgb.getR();
23  theM = 255 - rgb.getG();
24  theY = 255 - rgb.getB();
25 
26  return *this;
27 }
unsigned char getR() const
ossim_uint8 theY
unsigned char getB() const
unsigned char getG() const
ossim_uint8 theC
ossim_uint8 theM

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const ossimCmyVector cmy 
)
friend

Definition at line 21 of file ossimCmyVector.h.

22  {
23  out << "<" << cmy.theC << ", " << cmy.theM <<", " << cmy.theY << ">" << std::endl;
24 
25  return out;
26  }
ossim_uint8 theY
ossim_uint8 theC
ossim_uint8 theM

Member Data Documentation

◆ theC

ossim_uint8 ossimCmyVector::theC
protected

Definition at line 51 of file ossimCmyVector.h.

Referenced by operator=(), and ossimCmyVector().

◆ theM

ossim_uint8 ossimCmyVector::theM
protected

Definition at line 52 of file ossimCmyVector.h.

Referenced by operator=(), and ossimCmyVector().

◆ theY

ossim_uint8 ossimCmyVector::theY
protected

Definition at line 53 of file ossimCmyVector.h.

Referenced by operator=(), and ossimCmyVector().


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