A.I.M.S


aims::ColorMap Class Reference

#include <aims/color/colormap.h>

Collaboration diagram for aims::ColorMap:

Public Member Functions

 ColorMap ()
 
 ~ColorMap ()
 
size_t nItem () const
 
const AimsRGBitem (int n) const
 
AimsRGBitem (int n)
 
void reserve (size_t size)
 
void push_back (const AimsRGB &item)
 
void erase ()
 
const std::string & name () const
 
void setName (const std::string &name)
 

Protected Attributes

std::string _name
 
std::vector< AimsRGB_data
 

Friends

std::ostream & operator<< (std::ostream &out, const ColorMap &thing)
 

Detailed Description

Definition at line 50 of file colormap.h.

Constructor & Destructor Documentation

aims::ColorMap::ColorMap ( )
inline

Definition at line 82 of file colormap.h.

aims::ColorMap::~ColorMap ( )
inline

Definition at line 88 of file colormap.h.

References _data.

Member Function Documentation

void aims::ColorMap::erase ( )
inline

Definition at line 129 of file colormap.h.

References _data.

const AimsRGB & aims::ColorMap::item ( int  n) const
inline

Definition at line 102 of file colormap.h.

References _data.

AimsRGB & aims::ColorMap::item ( int  n)
inline

Definition at line 109 of file colormap.h.

References _data.

const std::string & aims::ColorMap::name ( ) const
inline

Definition at line 136 of file colormap.h.

References _name.

Referenced by setName().

size_t aims::ColorMap::nItem ( ) const
inline

Definition at line 95 of file colormap.h.

References _data.

void aims::ColorMap::push_back ( const AimsRGB item)
inline

Definition at line 122 of file colormap.h.

References _data.

void aims::ColorMap::reserve ( size_t  size)
inline

Definition at line 115 of file colormap.h.

References _data.

void aims::ColorMap::setName ( const std::string &  name)
inline

Definition at line 143 of file colormap.h.

References _name, and name().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const ColorMap thing 
)
friend

Member Data Documentation

std::vector< AimsRGB > aims::ColorMap::_data
protected

Definition at line 76 of file colormap.h.

Referenced by erase(), item(), nItem(), push_back(), reserve(), and ~ColorMap().

std::string aims::ColorMap::_name
protected

Definition at line 75 of file colormap.h.

Referenced by name(), and setName().


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