MorphoGraphX  2.0-1-227
Public Member Functions | List of all members
mgx::ColorMap Class Reference

#include <ColorMap.hpp>

Public Member Functions

 ColorMap (std::vector< Colorb > *cols, Point2f *bnds)
 
 ColorMap (std::vector< Colorb > *cols)
 
Colorb getColor (int index) const
 Get color by index. More...
 
Colorb getColor (float s, float sBegin, float sEnd, int iBegin, int iEnd) const
 Interpolate color. More...
 
Colorb getColor (float s, float sBegin, float sEnd) const
 
Colorb getColor (float s, int iBegin, int iEnd) const
 
Colorb getColor (float s) const
 
bool setColorMap (const QString &map, uint sz=0)
 Set a preset Color Map. More...
 
QStringList getColorMapList () const
 Get the list of preset Color Maps. More...
 
bool hasBounds () const
 Does Color Map have bounds. More...
 
std::vector< Colorb > & colors ()
 
const std::vector< Colorb > & colors () const
 
Point2fbounds ()
 
const Point2fbounds () const
 

Detailed Description

Definition at line 22 of file ColorMap.hpp.

Constructor & Destructor Documentation

◆ ColorMap() [1/2]

mgx::ColorMap::ColorMap ( std::vector< Colorb > *  cols,
Point2f bnds 
)
inline

Definition at line 25 of file ColorMap.hpp.

◆ ColorMap() [2/2]

mgx::ColorMap::ColorMap ( std::vector< Colorb > *  cols)
inline

Definition at line 27 of file ColorMap.hpp.

Member Function Documentation

◆ bounds() [1/2]

Point2f& mgx::ColorMap::bounds ( )
inline

Definition at line 47 of file ColorMap.hpp.

◆ bounds() [2/2]

const Point2f& mgx::ColorMap::bounds ( ) const
inline

Definition at line 48 of file ColorMap.hpp.

◆ colors() [1/2]

std::vector<Colorb>& mgx::ColorMap::colors ( )
inline

Definition at line 45 of file ColorMap.hpp.

◆ colors() [2/2]

const std::vector<Colorb>& mgx::ColorMap::colors ( ) const
inline

Definition at line 46 of file ColorMap.hpp.

◆ getColor() [1/5]

Colorb mgx::ColorMap::getColor ( float  s) const

◆ getColor() [2/5]

Colorb mgx::ColorMap::getColor ( float  s,
float  sBegin,
float  sEnd 
) const

◆ getColor() [3/5]

Colorb mgx::ColorMap::getColor ( float  s,
float  sBegin,
float  sEnd,
int  iBegin,
int  iEnd 
) const

Interpolate color.

◆ getColor() [4/5]

Colorb mgx::ColorMap::getColor ( float  s,
int  iBegin,
int  iEnd 
) const

◆ getColor() [5/5]

Colorb mgx::ColorMap::getColor ( int  index) const

Get color by index.

◆ getColorMapList()

QStringList mgx::ColorMap::getColorMapList ( ) const

Get the list of preset Color Maps.

◆ hasBounds()

bool mgx::ColorMap::hasBounds ( ) const
inline

Does Color Map have bounds.

Definition at line 43 of file ColorMap.hpp.

◆ setColorMap()

bool mgx::ColorMap::setColorMap ( const QString &  map,
uint  sz = 0 
)

Set a preset Color Map.


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