libatomprobe
Library for Atom Probe Tomography (APT) computation
Public Member Functions | Public Attributes | List of all members
AtomProbe::RGBf Class Reference

Data holder for colour as float. More...

#include <misc.h>

Public Member Functions

std::string toHex () const
 Convert to hex-256 representation #rrggbb. More...
 
void fromHex (const std::string &s)
 
bool operator== (const RGBf &oth) const
 

Public Attributes

float red
 
float green
 
float blue
 

Detailed Description

Data holder for colour as float.

Definition at line 26 of file misc.h.

Member Function Documentation

◆ fromHex()

void AtomProbe::RGBf::fromHex ( const std::string &  s)
inline

Definition at line 40 of file misc.h.

References AtomProbe::parseColString().

Referenced by AtomProbe::MultiRange::copyDataFromRange().

Here is the call graph for this function:

◆ operator==()

bool AtomProbe::RGBf::operator== ( const RGBf oth) const
inline

Definition at line 50 of file misc.h.

References blue, green, and red.

◆ toHex()

std::string AtomProbe::RGBf::toHex ( ) const
inline

Convert to hex-256 representation #rrggbb.

Definition at line 34 of file misc.h.

References AtomProbe::genColString().

Referenced by AtomProbe::RangeFile::write().

Here is the call graph for this function:

Member Data Documentation

◆ blue

float AtomProbe::RGBf::blue

◆ green

float AtomProbe::RGBf::green

◆ red

float AtomProbe::RGBf::red

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